Loading .X meshes

How do you load a DX8 .x mesh file  
My 3D modelling program (Blender) exports to DX8 format or just .X.
 I don't know what the difference is.
I tried it with the same code as for one of the meshes that came with the SDK, but it just gives an error.




Answer this question

Loading .X meshes

  • Michael Feingold

    I just downloaded the v2.37a of blender, ran it and exported the box that is initially created on the screen to .x format (i.e. I did nothing but run blender and choose export)

    Double clicked the .x file and it opened the DirectX viewer (October SDK).

    Maybe try that simple test and then work out what you did in blender that made the shape not export quite so well.



  • VishalR

    The model is a simple cube.  I am using the february SDK.
    I tried using the Meshviewer but it can't open them either, so I guess its just not a very good export script.
    I tried both DX8 and just .X exports, but neither worked.
    Well, at least I know what the problem is not. Big Smile


  • Ljubica

    Odd.. I tried that with 2.37a and the October SDK, but  "Mesh failed to load!".

    I'll get the newer SDK next time I'm at my friends house. (he has cable, I don't >.<)


  • newuseroverhere

    Does the DirectX Viewer open the .x file you created If so then its something in your code - check out the source for DX viewer.

  • Kered

    What kind of error are you seeing
    Which version of the SDK are you using
    How complex is the model

  • Loading .X meshes