Using .x files from 3ds Max 7

Hello everyone,

My question is in regards to loading a mesh from 3d studio max in the .x format.

I already have my classes setup to render models.
I can render all of the models that are included in the Direct X (dec) version.

But now for some reason any models i create in 3ds max 7 will not display.
When trying to run the application with a model i created i do not get any errros, just a blank screen.

When debugging i see in fact that my mesh is being found and loaded into the application.

So i am just wondering if anyone has any idea what i may be doing wrong.
For instance in 3ds max i am just creating a simple sphere with a radius of 6', then applying a .bmp of the earths surface to this sphere. After which i go to the modifiers and add a UVW Map modifer. I save the scene, export to .x file, grab the file and throw in my applications directory for use, along with the .bmp.

Doing some poking around on my own, i opened one of the direct x model samples and noticed that the file contains at the top this code

xof 0302txt 0064
template Header {
<3D82AB43-62DA-11cf-AB39-0020AF71E433>
WORD major;
WORD minor;
DWORD flags;
}

Where as my models dont contain that Is this something import

Anyway if anyone else has had trouble figuring out how to load 3ds max models into there applciation and then got it, perhaps you can inform me or direct me to some type of information i could read to see what i am doing wrong.

Thank You,
Andy



Answer this question

Using .x files from 3ds Max 7

  • rob_a89

    The first thing that I would check is to make sure that the mdel loads up in the mesh viewer tools that are included in the SDK, this will make sure that you model is correctly exported to the x format.



  • Clive Townsend

    Yea i that was the first thing i checked :)

    Thanks for the repli but i figured out what the problem was....

    Quite embarrising but i was essentially inside the earth:P
    Forgot to move my camra back becuase i had made the earth a 10' radius in 3ds max and had the camra pos. 0.0f, 0.0f, -5.0 :P

    Thanks again,
    Andy


  • Using .x files from 3ds Max 7