rifter1818 Posted March 18, 2004 Posted March 18, 2004 Ok this has got to be an even dumber mistake by me than the last one http://www.xtremedotnettalk.com/showthread.php?t=84160 but it none the less has baffled me. When i turn on my DepthStencil PP.AutoDepthStencilFormat = DepthFormat.D16 PP.EnableAutoDepthStencil = True My mesh disapears...what am i forgeting? Quote
*Experts* mutant Posted March 19, 2004 *Experts* Posted March 19, 2004 Are you clearing the depth buffer when using device.Clear? That is the first step. The next step is in Device.Clear too, it is the third argument which specifies how much of the data from the depth buffer you want to show. You probably have it set at 0.0F which will show nothing. To show everything use 1.0F which is the max value. Quote
rifter1818 Posted March 19, 2004 Author Posted March 19, 2004 I told you Are you clearing the depth buffer when using device.Clear? That is the first step. The next step is in Device.Clear too' date=' it is the third argument which specifies how much of the data from the depth buffer you want to show. You probably have it set at 0.0F which will show nothing. To show everything use 1.0F which is the max value.[/quote'] I told you it was something stupid i was forgetting, Thank you though for your help, simple mistakes are often the hardest to spot, note that turning on the depth buffer has now distroyed text (See the link in the first post of this thread) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.