problem viewing .x file format done in Blender

Im having a problem when executing the first tutorial of xna tutorial documents in the msdn express, the model works just fine when i use the tutorial example "p1_wedge.fbx" but when I use my model, a .x model I made in blender and used the directx .x exporter, the model appears with transparency and I can see the colors at the other side of the model, really strange, are there any ideas why this happen

just for some explanation...

 the model is a human with some armature and armature animation, it is uv mapped, and in directx viewer it looks solid and the animation works good!




Answer this question

problem viewing .x file format done in Blender

  • Arran

    man it was just to set the:

    graphics.GraphicsDevice.RenderState.CullMode = CullMode.CullClockwiseFace;

    and everything worked great!!

    really thx man!!!


  • Catalin Zima

    That sounds like your depth buffer is turned off at the point when you are rendering this. Make sure the DepthBufferEnable renderstate is true.

    Alternatively it is possible that your model has the faces pointing in the wrong direction. I don't know Blender but it might have (or the exporter might have) some option to flip the winding order

    If not you could use a custom processor to apply the flip while building your content, or change the CullMode renderstate to change it at runtime.


  • problem viewing .x file format done in Blender