problem + question ("noob one here")

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)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

betajaen

18-11-2006 09:22:53

There isn't a DotScene loader yet.

DieHard has been working on one, and I have been working on a terrainShape but they haven't been linked together.

p.s. The darkness is there because the tutorials are meant to be a spotlighted area. Remove or adjust the lighting and fog and it'll be fine.

yarock

18-11-2006 16:03:08

thx for your post, but the material( terrain) isnt work, don show the alfa maps, if you see , is black, and the black part is " rocks", dont you see somethig wrong in the material file??

betajaen

18-11-2006 16:56:07

The material is probably fine if not you should be consulting the main Ogre forum, however since the previous shot is the same terrain and material then...

If your just rendering it in a tutorial then your going to get the blackness, because of the lighting and spotlight effect.

yarock

18-11-2006 17:29:40

the material problem, was the fog n shadows, very thnx, but i still, wonder how load ecene collisionable