Hi,
Thanks to a few people giving me good hints I finally got those dist-scale/billboard/translate animations to work (reading the donauturn.xml example was very usefull).

It was a try and guess exercise (because of the lack of docs) but it worked. Now I have three billboard lights which scale according to an interpolation table.


That's the point now, there's some syntax in the dist-scale section I do not fully understand. The line <dep alias="../../../../params/light"/> seems to be related to the lines:
        <params>
         <light>1</light>
        </params>
I interpret this as setting a variable called "light" and reading that value with alias="../../../../params/light" Well, I'd like to know more about that particular path-like string (the "../../../../" before params/light) in order to use it in a correct manner in the future. How do I have to read that? It looks like a property tree path to traverse? If it is, what kind of property tree is that? What's the root? I don't find it in FG property browser.



Second point is I used the following syntax (from donauturm example) in order to get the translation of the poly light:
                <offset-m>67.5</offset-m>
                <axis>
                        <z>0.20</z>
                        <x>-0.62</x>
                        <y>-0.17</y>
                </axis>
Is that fully interchangable with:
                <offsets>
                  <x-offset-m>22.0</x-offset-m>
                  <y-offset-m>-15.0</y-offset-m>
                  <z-offset-m>-62.0</z-offset-m>
                 </offsets>
Are there any difference in the way that's used in the animation code?

  cheers,
     Roberto


p.s. I changed the object and param names according to my 3d model but the syntax is still the same as the donauturm example.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to