And there-in lies the key... read from bottom to top....
Simplifying the base-clape3 model
<animation>
<type>range</type>
...
</animation>
<animation>
<type>select</type>
<object-name>redlight</object-name>
<condition>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
</greater-than>
</condition>
</animation>
<animation>
<type>billboard</type>
<object-name>redlight</object-name>
...
</animation>
<animation>
<type>dist-scale</type>
<object-name>redlight</object-name>
<interpolation>
...
</interpolation>
</animation>
the interpolation animation on *redlight* would be performed first,
then the billboard animation on *redlight*
then the sun-angle conditional animation on *redlight* (in this case to turn
it on when the sun is below the horizon)
then finally setting the range that the whole model is visible from
yeah???????
:-D ene
From: Frederic Bouvier <[EMAIL PROTECTED]>
Reply-To: [email protected]
To
: [email protected]
Subject: Re: [Flightgear-users] XML required to make light in object flash
Date: Sat, 22 Apr 2006 11:21:51 +0200
I verified in the code and it looks like the condition is honored in most
animations.
if you want to conditionally translate :
<animation>
<type>translate</type>
<object-name>myTranslatableObject<object-name>
<condition>my condition</condition>
...translation params...
</animation>
You second case :
<animation>
<type>rotate</type>
<object-name>myObject<object-name>
<condition>my condition</condition>
...rotation params...
</animation>
<animation>
<type>translate</type>
<object-name>myObject<object-name>
...translation params...
</animation>
In this case, the object is first translated and then conditionally rotated
because the animation execution order is bottom up ( last in xml file
applied
first - this has to do with own animations are inserted in the original
static
model )
-Fred
Selon Frederic Bouvier :
> Not exactly. You don't apply a condition on an object. You apply a
condition
> on
> an animation on an object. And not all animations support conditions. Do
you
> get the difference ?
>
> -Fred
>
> Selon dene maxwell :
>
> > Thanks Fred,
> > (I think... ;-) ) ...I thought I understood it...
> >
> > would it be true to say then that if I;
> > 1) name an object
> > 2) apply a condition to that named object
> > 3) translate that named object
> >
> > the translationtion is only applied if the condition is met. Where-as
if I;
> >
> > 1) name an object
> > 2) translate that named object
> > 3) apply a condition to that named object
> > 4) rotate the named object
> >
> > the translation is applied all the time but the rotate is only applied
if
> > the condition is met?
> >
> > :=Dene
> >
> >
> > >From: Frederic Bouvier <[EMAIL PROTECTED]>
> > >Reply-To: [email protected]
> > >To: [email protected]
> > >Subject: Re: [Flightgear-users] XML required to make light in object
flash
> > >Date: Sat, 22 Apr 2006 10:20:34 +0200
> > >
> > >Selon dene maxwell <[EMAIL PROTECTED]>:
> > >
> > > > 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)
> > >
> > >No Dene, only the animation itself is conditionned. It this case it's
a
> > >select
> > >animation, so it's a switch on/off on the object "FlashingLight"
depending
> > >the
> > >position of the sun over the horizon.
> > >
> > >That's true that animations that come first have precedence over
those
> > >coming
> > >afterward, but only on the named object.
> > >
> > >-Fred
> > >
> > >--
> > >Frédéric Bouvier
> > >http://frfoto.free.fr Photo gallery - album photo
> > >http://www.fotolia.fr/p/2278 Other photo gallery
> > >http://fgsd.sourceforge.net/ FlightGear Scenery Designer
> > >
> > >
> > >-------------------------------------------------------
> > >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&kid0709&bid&3057&dat1642
> > >_______________________________________________
> > >Flightgear-users mailing list
> > >[email protected]
> > >https://lists.sourceforge.net/lists/listinfo/flightgear-users
> >
> > _________________________________________________________________
> > Need a new job? Check out XtraMSN Careers http://xtramsn.co.nz/careers
> >
> >
> >
> > -------------------------------------------------------
> > 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
> >
>
>
> --
> Frédéric Bouvier
> http://frfoto.free.fr Photo gallery - album photo
> http://www.fotolia.fr/p/2278 Other photo gallery
> http://fgsd.sourceforge.net/ FlightGear Scenery Designer
>
>
> -------------------------------------------------------
> 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&kid0709&bid&3057&dat1642
> _______________________________________________
> Flightgear-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-users
>
--
Frédéric Bouvier
http://frfoto.free.fr Photo gallery - album photo
http://www.fotolia.fr/p/2278 Other photo gallery
http://fgsd.sourceforge.net/ FlightGear Scenery Designer
-------------------------------------------------------
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&kid0709&bid&3057&dat1642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users
_________________________________________________________________
Check out the latest video @ http://xtra.co.nz/streaming
-------------------------------------------------------
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