Jump to content
  • Advertisement
Sign in to follow this  
cistar

.X Files

This topic is 3778 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been loading .X files from 3ds Max 9 into directX however I have a problem now that I care about each vertex that is loaded. I am using the Kilowatt .X exporter and have run into some problems. The .X file that is written contains more vertices than the actual mesh does in 3ds. Say if I create a sphere mesh with 84 verticies the resulting .X file will say something around 115 vertices. Im not sure if this is a problem with the file exporter or if the .X file is required to contain that many vertices to be correctly loaded into directX. The exporter works fine for simple meshes such as boxes and planes. I would just like to know a little more on why there are so many duplicate vertices.

Share this post


Link to post
Share on other sites
Advertisement
The exporter is probably triangulating faces. I've noticed the same behaviour in the Maya exporter to .x files. Sometimes vertices get duplicated in that process. If you want to be sure that's what's happening, look at the model in 3ds to see if the number of triangles (not faces) matches the number of faces in the .x file, and also that every face in the .x file has 3 vertices (assuming you're using ascii .x files). Hope that helps.

Share this post


Link to post
Share on other sites
I believe it is hosted on sourceforge and has a mailing list but you may get some clarification if this is a result of the exporter by talking to John (hplus0603) or by commenting in the latest exporter thread on these forums.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!