Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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: http://www.picvalley.net/u/2930/2265240220441812321333990933PAStFeSONWQslOrMQC5q.PNG

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.

http://www.picvalley.net/u/2563/151728957814855401111333991302mSvEJ03Zv22GwHFgIhiV.PNG

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
add comment

1 Answer 1

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... picvalley.net/u/1919/… 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
1  
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
add comment

Your Answer

 
discard

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.