problem with the plane
hi all!
i created a plane in 3ds and exported in x format with panda exporter
all seems that works fine, but when i render in my project I look that the textures are only in the back side of the plane ( in fact the plane is not visible, but if i go down with my camera and look up I see the correct texture...)
what's the problem??
is in my program or in the exporter??
thanks
p.s. is my first post!!
hi all!
My guess is that the winding is reversed and that, consequently, the wrong face is being culled. DirectX assumes counterclockwise vertices by default, and the exportor (presumably) does it the other way around. Two possible solutions:
1) reverse the winding manually (or look for a switch in the exporter);
2) look at IDevice::SetRenderState( D3DRS_CULLMODE, D3DCULL_CW ); (or other options similar to this one)
1) reverse the winding manually (or look for a switch in the exporter);
2) look at IDevice::SetRenderState( D3DRS_CULLMODE, D3DCULL_CW ); (or other options similar to this one)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement