Jump to content
  • Advertisement
Sign in to follow this  
pimanian

parsing x files

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

Hi. I've been searching this forum & google for several weeks now, trying to find out how to parse an x file in DirectX. I tried the tutorial at http://www.gamedev.net/reference/articles/article1493.asp for parsing x files in an article, but it doesn't have all my needs. I need to be able to extract information of objects in the x file such as the position (x,y,z) and their dimensions. Is this even possible in the x file architecture? When I look at the x file, I don't see any information that would tell me their position. I'd like to be able to do this is C# (.NET) rather than C++, since I don't enjoy string manipulation in C++. The goal would be to have someone build a game level using MAX, export to x format, then I can extract the position & dimensions of objects and load it into a game for collision detections. If you could help out, point me to the right sources, that'd be great. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Damn I must be blind, someone wrote another tutorial for parsing x files as a sticky. I'll check that out to see if it fits my needs.

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!