Exporting to .X

Okay, I've been messing with this for like two days and I still can't get textures to work, so I figured I'd post here. I'm using Maya 7.0 and I've gotten the exporter installed and I can export geometry just fine, but I'm doing something wrong with where I'm putting the textures/what kinds of textures I'm using/parameters. I'm not sure. I export to a .x file and when I load it up in the DirectX Viewer, the object is there, but there is no texture. I downloaded the Deep Exploration trial and I get the same error, so it has to be a user error. How do you properly texture for export, export the texture reference, and where does the texture go


Answer this question

Exporting to .X

  • Shawn Ramey

    Open up the .x file in notepad or wordpad and check whether the texture location is there and/or correct. Just search for the extension such as .jpg and you will find a path where the texture is located.

    If it's not correct you can fix it and save the .x file.

    I hope this helps.
    Take care.


  • pranav kulkarni

    I Also have tried for a long time to use the SDK's maya .x exporter without luck with textures. Which should not be that hard. What I would like to know is what we can do to just use the Maya scene files directly with our DX App's. But I have yet to find anyone familure with the file structure of the files.
  • Prashanti

    I got it working two days ago and I want to kick myself for how stupidly simple it was. When exporting the scene set Make Relative Paths to True and simply either have the texture in the same directory as the .X files or put it in a folder relative to the file and retain that relativity.

  • Ashish757

    I've also never been able to get the DirectX Viewer to work with textures. Might be there is some "trick" to exporting your .X files to get the viewer to display them. I use the MESH Viewer that came with an older version of the SDK. This works very well for me.

    Regards


  • Exporting to .X