[.net] My models are depth perception handicapped!
Ok, I've added the following lines to my code before creation of the device.
With only those modifications, my models now look totally screwed! :-p Have a look, rendering the same model as shown above, I get the following:
Any ideas what could be wrong now? Cull modes, depth testing, or anything?
presentParams.AutoDepthStencilFormat = DepthFormat.D16;presentParams.EnableAutoDepthFormatStencil = true;
With only those modifications, my models now look totally screwed! :-p Have a look, rendering the same model as shown above, I get the following:
Any ideas what could be wrong now? Cull modes, depth testing, or anything?
Looks like you aren't clearing the depth buffer. You do it with the clear function at the same time you clear the display, just by using | to binary OR the Zbuffer flag to the Target flag.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement