are there any differences when exporting .X models?

Started by
5 comments, last by eudora 18 years, 3 months ago
Hi, I have a .x model which i exported from Maya using the DirectX SDK 9.0 (Oct 2005). However, I seem to have lots of problems with it, so I am wondering if there is something wrong with it? The .x file can be downloaded here: http://www.comp.nus.edu.sg/~chiobing/downloads/X%20File%20Models/handSkin3.x Its texture: http://www.comp.nus.edu.sg/~chiobing/downloads/X%20File%20Models/pCubeShape1_color.tga I have first tried to load it into the DirectX sample code SkinnedMesh. It fails in loading.. The second example I tried with is using toymaker.info code on X File Hierarchy Loading : http://www.toymaker.info/Games/html/load_x_hierarchy.html Using his code I can load the .x file with animation.. however its UV textures seems to be gone. :( Can anyone help me or advise me on what I did wrong? I suspect there is something about the model which I am missing out..
Advertisement
If you still have access to the August SDK release, you can try to see if it loads correctly in the MeshViewer (the DXViewer from later releases may work too, but it's less fancy). If it doesn't load, there is probably something wrong with the mesh.

Edited:

I tried loading the mesh you linked to in the MeshViewer, but it indeed doesn't seem to have proper texture coordinates (no uv coordinates in the mesh properties and also no normals) and it seems to be missing a good portion of the thumb. I can only go from my limited experience in Max, but I guess that the Maya exporter is having some problems with the combined UWV map and skinning modifiers.

In 3D studio max, you can solve this problem by collapsing the modifiers on the object/mesh onto the object (Collapse to), essentially baking any modifiers into the mesh. Can't Maya do something similar?

[Edited by - remigius on January 11, 2006 3:13:35 AM]
Rim van Wersch [ MDXInfo ] [ XNAInfo ] [ YouTube ] - Do yourself a favor and bookmark this excellent free online D3D/shader book!
Hi, thanks for the reply. I tried to load my mesh to the Mesh Viewer and it fails to load.. :(

I am not too sure abt the baking the modifiers to the mesh on Maya.. let me go look around for it..
Hi, I tried to look around within Maya for something like you mentioned.. the only thing related to bake does not seem to be right. Its Baking to textures and vertices.. [depressed]
Well, I don't know much about Maya, so I'm afraid I can't help you there. Are you sure you've set up your exporter properly? With the Panda .X exporter for Max for example, you need to check a box to have it export the textures/materials/property you want.

Perhaps you'll have more luck posting this question in the Visual Arts forum, since this seems to be more of an issue with exporting from Maya, rather than something DirectX related. Some of the Visual Arts people should be dealing with this stuff on a daily basis, so they might be able to tell you more.
Rim van Wersch [ MDXInfo ] [ XNAInfo ] [ YouTube ] - Do yourself a favor and bookmark this excellent free online D3D/shader book!
Thanks, I reposted over at that section to see if there is any help. I am using the default exporter that comes with the sdk and it is supposedly be able to export everything at one go.. :(

I saw the Panda exporter.. but its for 3d Studio Max right?
I have uploaded the Maya mb file here.. http://www.comp.nus.edu.sg/~chiobing/downloads/X%20File%20Models/handAnim2.mb

This topic is closed to new replies.

Advertisement