Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using 3DS Max 2010 with the KW x-porter plugin, which outputs a .X file (just downloaded the very latest version).

Been getting some odd results:

Looks like the culling is screwed up. Note, that models I make in Milkshape don't seem to be having these problems.

I've also tried to export an FBX file from 3DS Max 2010 and have been getting similar results.

What are your suggestions in terms of exporting *.3DS models to a workable XNA form? What tools do you use?.

To be clear, the model in question has none of these defects when viewed from similar angles in 3DS Max 2010.

Any ideas on this oddity would also be appreciated!

Edit 1 -- Add'l issue Forgot to mention, that the model otherwise seems alright, but that rotation seems to double -- in other words, when I scroll my camera view left to right, the model (whose draw I give the camera for the view and perspective matrices w/ BasicEffect seems to rotate twice as much as models I draw natively in XNA

share|improve this question
up vote 2 down vote accepted

Looks like you don't have depth testing enabled. Put this code before drawing your model:

GraphicsDevice.DepthStencilState = DepthStencilState.Default;
share|improve this answer
Great, that worked! Only problem is I think I need to reset it after to preserve my Milkshape models, as they're now messed up...… That also seemed to fix the rotation issue, fyi! – Jason R. Mick Apr 9 '12 at 17:33
Did you get my followup question? How do I reset the DepthStencilState to its previous value? – Jason R. Mick Apr 12 '12 at 17:15
Save it and then re-set it. DepthStencilState oldState = GraphicsDevice.DepthStencilState; GraphicsDevice.DepthStencilState = DepthStencilState.Default; // Your rendering GraphicsDevice.DepthStencilState = oldState; – r2d2rigo Apr 12 '12 at 20:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.