[.net] My models are depth perception handicapped!

Started by
13 comments, last by Swamii 18 years, 7 months ago
No problem I hope this works out for you :D
My JournalComputer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter. (Eric Raymond)"C makes it easy to shoot yourself in the foot. C++ makes itharder, but when you do, it blows away your whole leg."-- Bjarne Stroustrup
Advertisement
Ok, I've added the following lines to my code before creation of the device.

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?
------Tech, life, family, faith: Give me a visit.
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.
Turring Machines are better than C++ any day ^_~
Thanks, I'll give that a try.
------Tech, life, family, faith: Give me a visit.
That works! Thanks guys for helping me solve these problems, I appreciate it.
------Tech, life, family, faith: Give me a visit.

This topic is closed to new replies.

Advertisement