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

Started by
2 comments, last by GeekSharp 18 years, 10 months ago
Hello, I'm just curious, anyone know what the first line in a .x file means? "xof 0303txt 0032" Thanks =)
---------------------------------------------------------------"The problem with computers is they do what you tell them.""Computer programmers know how to use their hardware."- Geek#
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..
Take a look here [wink]
Quote:
HeaderThe 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 MeaningMagic Number (required) 4 bytes  "xof "         Version Number (required) 	Major Number 	        2 bytes  03 	        Major version 3Minor Number 	        2 bytes  02 	        Minor version 2Format Type (required) 	4 bytes  "txt " 	Text File			         "bin " 	Binary File			         "tzip" 	MSZip Compressed Text File			         "bzip" 	MSZip Compressed Binary FileFloat size (required) 	4 bytes   0064 	        64-bit floats			           0032 	32-bit floatsExamplexof 0302txt 0064



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

Neat, thanks.
---------------------------------------------------------------"The problem with computers is they do what you tell them.""Computer programmers know how to use their hardware."- Geek#

This topic is closed to new replies.

Advertisement