Sign in to follow this  

Mesh unhoped-for transparency.

Recommended Posts


I'm learning to load meshes from files.

My problem is that my result has some unhoped-for transparency.
Well, sorry for my English, I'll better show it in pictures.

Right picture- is how it should be(from DirectX SDK Viewer), and left – is what I have.

Why tires are always full visible?
I realized that it is unrelated to Lights and unrelated to different material types. Same problems with meshes containing only one material, some planes are visible trough others.

Help please. Any directions about what's could be wrong? Or what did I forget?

Share this post

Link to post
Share on other sites

Looks like you are culling the wrong winding order of polygons... change your cull mode to the oposite one. Make sure all your meshes have consistent winding order as well otherwise weird reults like that can happen as well (turn backface culling off to test that, should look the same with and without back face culling). Note that using a transform matrix with negative determinant also flips the winding order (typically if you mirror an object).


Could also be you disabled the depth buffer but I think the cull mode is most likely.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this