Jump to content
  • Advertisement
Sign in to follow this  
GeekSharp

"xof 0303txt 0032" Anyone know what this line in .x means?

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

Advertisement
Perhaps, magic?

"xof" = every .x file contains this so programs know it's an .x file
"0303txt" = to tell the programs it's ascii, not binary
"0302" = another thing to show it's an .x file

Perhaps..

Share this post


Link to post
Share on other sites
Take a look here [wink]
Quote:


Header

The variable length header is compulsory and must be at the beginning of the data stream. The header contains the following:
Type Sub Type Size Contents Content Meaning
Magic Number (required) 4 bytes "xof " Version Number (required)
Major Number 2 bytes 03 Major version 3
Minor Number 2 bytes 02 Minor version 2
Format Type (required) 4 bytes "txt " Text File
"bin " Binary File
"tzip" MSZip Compressed Text File
"bzip" MSZip Compressed Binary File
Float size (required) 4 bytes 0064 64-bit floats
0032 32-bit floats
Example

xof 0302txt 0064



So for you, you have an Ascii .X file that uses Major version 3, minor version 3, and has 32bit floats.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!