<animation> <type>range</type> <min-m>0</min-m> <max-m>2000</max-m>
<object-name>lnavlt</object-name> <object-name>rnavlt</object-name> <object-name>topgunner</object-name> <object-name>leftgunner</object-name> <object-name>rightgunner</object-name> <object-name>astrodome</object-name> </animation>
This stuff just doesn't appear when I put this in the modedl.xml file. The external view is set to 100m.
<chase-distance-m type="double" archive="y">-100.0</chase-distance-m>
I can't figure out why this stuff isn't appearing at close range. There are other problems, but I'm trying to isolate stuff and deal with them one by one.
Josh
Frederic Bouvier wrote:
Josh Babcock wrote:
I'm having problems with the LOD animations in a model I'm working on.
I am wondering if the value that is queried in the range type of
animation is exposed anywhere. I have looked, but can't find it in the
property tree. I am also unsure of where to find references to this in
the code. Can anyone out there answer either of these questions?
The value used to compute the range is the distance between the viewer and the center of the model ( its relative ( 0,0,0 ) position ). It is not exposed in the property tree because it is computed every frame by plib itself. But you can setup your animation to read the min and max values in properties. Look in the XML files of the buildings in the scenery folder. Almost everyone as such an animation.
You can find the code in SimGear / simgear / scene / model / animation.[ch]xx
If you can expose what are exacly your problems, perhaps we can help you more.
-Fred
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
