Sign in to follow this  

X file parsing

This topic is 4226 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 Iam planning to write an X to my own format converter. Iam just wondering if its possible to use D3DX functions to get out all the data or do Ive to write my own parser? thanks

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The d3dx library with all its models classes give you pretty much all the information you need for exporting it out.

Reasons why you'd want to parse the x file is if you are dealing with multiple platforms where the d3dx library is not available.

Share this post


Link to post
Share on other sites
Quote:
Original post by ProblemBaby
Iam just wondering if its possible to use D3DX functions to get out all the data or do Ive to write my own parser?
As long as you mean the X File Reference and X File Reference (Legacy) functions rather than the specific ID3DXBaseMesh stuff, then yeah - you should be fine.

Jack

Share this post


Link to post
Share on other sites
I want to convert it to make it smaller and remove things I don't need.
It would be nice if it exist functions like LoadXFile, GetXVertex, GetXVertexColors etc, so I don't have to parse the format my myself.

Share this post


Link to post
Share on other sites

This topic is 4226 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this