Typo!!! (see inline)
> Why?
> The order of computation is (example for digit2, propertyvalue=500):
> 1. get property value (500)
> 2. apply stepping ( 500 step 1000 = 0)
> 3. apply factor (0 * 0.0001 = 0 --> don't shift texture)
> or for propertyvalue=5500
> 1. get property value (500)
1. get property value (5500) [not 500, certainly]
> 2. apply stepping ( 5500 step 1000 = 5000 )
> 3. apply factor (5000 * 0.0001 = 0.5 shift texture by 50%)
> 
> Your values were
> 1. get property value (500)
> 2. apply stepping (500 step 0.1 = 500 )
> 3. apply factor (500 * 0.0001 = 0.05 --> shift texture by 5%, wrong.)

Rule of thumb: 

scale * factor = 0.1 to shift the texture by 10% on each step. 
Your digit2 is for thousands, so you are interested in steps of thousands (aka 
step=1000)
You want to shift by 10% for each digit, so scale 1000 down to 0.1 (aka factor 
is 0.1/1000 = 0.0001)

Torsten

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to