Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've used the following lines of code, and passed presentParams into the device constructor.

 

presentParams.Windowed = true;

presentParams.SwapEffect = SwapEffect.Discard;

presentParams.EnableAutoDepthStencil = true;

presentParams.AutoDepthStencilFormat = DepthFormat.D16;

 

However, this does not put the closest stuff in front. I think it's placing the ones that are rendered last in front. What am I doing wrong?

 

Thanks.

 

-Nick

Posted
I have it on debug' date=' but it didn't give me any warnings. Maybe I don't have the thing set up specifically. How do I do that?[/quote']

 

If you installed the Debug Runtime then there will be a DirectX icon in the control panel. Run that and go to the Direct3D tab. Set the Debug Level to the second highest setting (The highest setting warns about a LOT of stuff so isn't recommended for regular use).

 

In Visual Studio go to the Project Settings and somewhere in there is a Enable Unmanaged Debugging (or something similar). Set that to true and the debug output will be routed to the Output window.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...