Jump to content
  • Advertisement
Sign in to follow this  
TheMaskedFace

[MDX/C#]Parsing .x files or other files

This topic is 4699 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 want to learn how to parse .x files or other kind of files that have vertex info,normal info etc. in Managed DirectX. I looked some other directX examples but can not convert them to the Managed DirectX

Share this post


Link to post
Share on other sites
Advertisement
In my opinion, the main aspect that you have to keep in mind when parsing files like these are the structure of the file itself. How it's laid out, since this helps you structure your code so that it can store the needed information. I could give you some advice as to how to actually parse a quake 3 map as I have done that... refer to this thread.
What I have done is did a little research into the Quake/Doom BSP structure and then parsed the file and stored the data needed to actually render the map/model if you wish. Take a look at the code and compare the structure to the structure found here.

I would suggest digging through the X File Format Reference in the SDK Documentation as it will give you alot of information on how to parse the .X file format.

I hope this helps.
Take care.

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!