Oscarcha


I need to change the DepthStencilFormat of my grapichs device, from DepthFormat.Depth24 (the default value) to DepthFormat.Depth32.

I tried several ways to do itt, but none of them works.

Thanks for any help you can give me.

Osk


Re: XNA Framework Change the DepthStencilFormat of graphicDevice

Leaf.

Adding a line like this to your Game constructor should work, assuming your card supports 32bit depth buffer, mine doesn't.

graphics.PreferredDepthStencilFormat = DepthFormat.Depth32;





Re: XNA Framework Change the DepthStencilFormat of graphicDevice

Oscarcha

So simple.

Thanks