Jump to content
  • Advertisement
Sign in to follow this  
Riviera Kid

.x file, strange design imo

This topic is 4380 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

Currently i am loading in mesh data from x files using the x file objects. I find x files very awkward to work with. The most awkward part being the MeshFace template. It stores the number of indices for the face! why?! 99.99% of the time that number is 3. I can understand that some software renderers might want to load an X File where it might render 4 vertex faces or whatever. But why put the burden onto the majority of users? All good renderers can render 3 vertex faces, additionally it is a Direct X File, not an api independant file. In my app, at the moment, i allocate space based on the number of faces. nFaces * 3. Great. But because some faces have 4 indices my algorithm is screwed. I now have to reallocate my memory and split the 4 index faces. Practically speaking this makes very little difference because i would be converting the models to a more practical format for later (faster) use. I hate loading files because you are forced to deal with someone elses design. And more often than not, their design doesnt suite your needs. Does this bother anyone else or is it just me?

Share this post


Link to post
Share on other sites
Advertisement
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!