Posted By: broozar
caves fully made out of hmps - 02/17/06 13:18
hi all,
many of you searched for a method to make caves using terrains, but they failed with the ceiling. "hmp file format is a simplified mdl format, and to turn hmps, you must make them mdls first", was the main answer. but there is a better, faster way. i cannot believe i am the first one who thought of that... surely i am not.
look, this is a shot from the floor to the ceiling:

i know it is just an ugly test level... but look: both terrains are hmp files, the lower one has nothing applied, the upper one uses a simple effect -->
that is all the code:
Code:
no more need to make it an mdl.
many of you searched for a method to make caves using terrains, but they failed with the ceiling. "hmp file format is a simplified mdl format, and to turn hmps, you must make them mdls first", was the main answer. but there is a better, faster way. i cannot believe i am the first one who thought of that... surely i am not.
look, this is a shot from the floor to the ceiling:

i know it is just an ugly test level... but look: both terrains are hmp files, the lower one has nothing applied, the upper one uses a simple effect -->
that is all the code:
Code:
texture entSkin1;
technique vegetation
{
pass p0
{
Texture[0]=<entSkin1>;
ZWriteEnable=True;
CullMode=None; // CCW when sigle sided polys, or None when double sided polys
ColorArg1[0]=Texture;
ColorOp[0]=Modulate2X;
ColorArg2[0]=Diffuse;
}
}
no more need to make it an mdl.

.. and have a mother seam between them ^^