Jump to content


Photo

100?


  • Please log in to reply
3 replies to this topic

#1 flexaplex

flexaplex

    GMC Member

  • Global Moderators
  • 4809 posts
  • Version:GM8

Posted 13 December 2011 - 01:26 PM

When you save a d3d model using d3d_model_save() it writes an 100 at the top of the file which never seems to vary in value, does anyone please know what this value is used for?

Thanks,
PR.
  • 0

#2 Yal

Yal

    Gun Princess

  • Global Moderators
  • 5813 posts
  • Version:GM8.1

Posted 13 December 2011 - 02:12 PM

My first guess is that it is some sort of version number. For instance, it might be the version number of the model format (v1.0.0) that is included for later backwards compability.


Have you tried changing the 100 to some other value sometime to see what happens?
  • 0

#3 hit172

hit172

    GMC Member

  • New Member
  • 189 posts
  • Version:GM8

Posted 13 December 2011 - 08:10 PM

The 100 is an identifier for a d3d model file. Its an easy way for the loader to check if the file is even remotely close to a d3d file. The next number is something like the number of lines remaining in the file. Here's an explanation of the rest of the format. linky
  • 0

#4 flexaplex

flexaplex

    GMC Member

  • Global Moderators
  • 4809 posts
  • Version:GM8

Posted 15 December 2011 - 04:16 AM

I was just seeing if anyone knew. It does seem just to be a basic identifier for models though, if the value of 100 is changed then the model doesn't load.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users