1
\$\begingroup\$

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

\$\endgroup\$
0

1 Answer 1

2
\$\begingroup\$

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

GraphicsDevice.DepthStencilState = DepthStencilState.Default;
\$\endgroup\$
3
  • \$\begingroup\$ 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! \$\endgroup\$ Commented Apr 9, 2012 at 17:33
  • \$\begingroup\$ Did you get my followup question? How do I reset the DepthStencilState to its previous value? \$\endgroup\$ Commented Apr 12, 2012 at 17:15
  • 1
    \$\begingroup\$ Save it and then re-set it. DepthStencilState oldState = GraphicsDevice.DepthStencilState; GraphicsDevice.DepthStencilState = DepthStencilState.Default; // Your rendering GraphicsDevice.DepthStencilState = oldState; \$\endgroup\$
    – r2d2rigo
    Commented Apr 12, 2012 at 20:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .