yarock
18-11-2006 04:54:58
i have a simple terrain with some trees and bushes, here is ( in ogre3d)-->
dont look the trees the material, it very poor, but the terrain has that material, now i need some "physx", and i use nxogre, and i load the same terrain and it looks like this->>
This is the material file( i put this if somebody knows how to put alpha maps in nxogre)
thats is the problem, and the question is, how i can make work nxogre with a Dot Scene loader, (.scene files)?, i need some help, i hope somebody can help me.. thnx
dont look the trees the material, it very poor, but the terrain has that material, now i need some "physx", and i use nxogre, and i load the same terrain and it looks like this->>
This is the material file( i put this if somebody knows how to put alpha maps in nxogre)
material terreno_mesh_material
{
technique
{
pass
{
texture_unit
{
texture NewLayer.png
scale 0.05 0.05
}
}
pass
{
texture_unit
{
texture NewLayer1.png
colour_op_ex modulate src_current src_texture
scale 0.05 0.05
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture terr_rock-dirt.jpg
scale 0.05 0.05
}
texture_unit
{
//alpha mask
colour_op_ex blend_diffuse_alpha src_current src_texture
texture newlayer2_alpha.png 2d unlimited alpha
tex_address_mode clamp
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture newlayer3.png
scale 0.05 0.05
}
texture_unit
{
//alpha mask
colour_op_ex blend_diffuse_alpha src_current src_texture
texture newlayer3_alpha.png 2d unlimited alpha
tex_address_mode clamp
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture newlayer4.png
scale 0.05 0.05
}
texture_unit
{
//alpha mask
colour_op_ex blend_diffuse_alpha src_current src_texture
texture newlayer4_alpha.png 2d unlimited alpha
tex_address_mode clamp
}
}
}
}
thats is the problem, and the question is, how i can make work nxogre with a Dot Scene loader, (.scene files)?, i need some help, i hope somebody can help me.. thnx