View Single Post
  #2  
Old 06-18-2005, 10:54 AM
Windcatcher
Demi-God
 
Join Date: Jan 2002
Posts: 1,175
Default

The "+0" is new to OpenZone. The plus sign is just a delimiter and is not part of the number -- I chose it specifcally because it's not a valid filename character and won't be found in filenames. The number is a floating-point value: for animated textures, it specifies the time in seconds to execute one animation sequence. If there is only one texture it is ignored, and if the number isn't present then OpenZone puts a zero in for the value (which is still ignored). If there is more than one texture and the number is not present, OpenZone will put in a default of 100ms (0.1 seconds) per animation frame (texture). If the number is present, then OpenZone will enforce a lower bound of 10ms per frame and an upper bound of 100s for the entire sequence. In any case, you can safely not include the "+" delimiter and number unless you want to have animated textures and want to specify the animation time.

I did it this way so that everything relating to animated textures--the textures themselves, their opacity maps, and the animation time all go together internally in one string, as a self-contained unit. It makes the internal management a lot easier and more reliable, as long as the string is always run through a single routine for breaking it up into its component parts.

Last edited by Windcatcher; 06-18-2005 at 06:57 PM..
Reply With Quote