Thanks Roberto ( and Paul)
The Model-howto and simgear links were great for putting things into
perspective.
I'm still a little confused about how the
<condition>
<greater-than>
...
</greater-than>
</condition>
aspect works. From what I can see everything after the condition is either
applied or not depending weather the condition is satisfied.
so everything after;
<animation>
<type>Select</type>
<object-name>FlashingLight</object-name>
<condition>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.57</value>
</greater-than>
</condition>
</animation>
would be acted upon if the sun-angle-rad property was greater than 1.57 (ie
sun was below the horizon)
if this is correct then--------------------------------------------
"nesting" of conditions would be purely a matter of placing them in the
correct order; eg;
<if> the property "sun-angle-rad" > 1.57 THEN make night light visible </if>
<if> the property "elapsed seconds" is odd THEN turn night light off ELSE
turn on</if>
lacking documentation on the <condition> statement, i'm not exactly sure how
this would work though.
Looking through various xml files, using the "translate" animation seems to
be the most common way of making steady lights visible at night then
translating them underground during the day. This would explain the bright
light I've seen at the base of some models when positioned in mid-air (by
mistake of course :-} ).
any ideas where I can get explainations of the <select>, <timed> andimations
and <condition> ?
Regards
:=D ene
From: Robicd <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [Flightgear-users] XML required to make light in object flash
Date: Fri, 21 Apr 2006 23:12:47 +0200
I feel that part of my problem is that my knowledge (or lack of!!) of XML
is also causing frustration. Does anyone have a reference to XML
documaentation as used in FGFS?
I am familiar with conditional statements etc but some more information on
XML keyword and syntax would assist greatly
First step in order to understand the way FGFS uses XML is to read
model-howto.html
Next step is to look into existing fgfs xml files, start with the simpler
ones, where you can see how the easy syntax is used. I had a bad time with
xml animation transformations too, it takes a little patience to understand
how it works. model-howto.html is not updated (I didn't check the latest
updates though).
Try looking into Simgear docs too, it's Simgear doing all that animation
tricks
http://www.simgear.org/doxygen/
Roberto
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users
_________________________________________________________________
Need more speed? Get Xtra Broadband @
http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users