> On Wed, 31 Oct 2007 20:51:40 +0000 > > Jon Stockill <[EMAIL PROTECTED]> wrote: > > I'm having problems with the following seemingly simple bit of animation > > (running the cvs osg version): > > > > <animation> > > <object-name>WarnLoVolt</object-name> > > <object-name>WarnGen</object-name> > > <object-name>WarnLoOil</object-name> > > <object-name>WarnFuel</object-name> > > <object-name>WarnStarter</object-name> > > <condition> > > <not> > > <property>instrumentation/warning-panel/test</property> > > </not> > > </condition> > > <type>material</type> > > <emission> > > <red>0.0</red> > > <green>0.0</green> > > <blue>0.0</blue> > > <factor-prop>instrumentation/warning-panel/brightness</factor-prop> > > </emission> > > </animation> > > > > <animation> > > <object-name>WarnLoVolt</object-name> > > <object-name>WarnGen</object-name> > > <object-name>WarnLoOil</object-name> > > <object-name>WarnFuel</object-name> > > <object-name>WarnStarter</object-name> > > <condition> > > <property>instrumentation/warning-panel/test</property> > > </condition> > > <type>material</type> > > <emission> > > <red>1.0</red> > > <green>0.0</green> > > <blue>0.0</blue> > > <factor-prop>instrumentation/warning-panel/brightness</factor-prop> > > </emission> > > </animation> > > > > It's supposed to light all the lamps on a warning panel when the test > > button is pressed. If used as shown, the lamps never light. Switching > > the order of the 2 <animation> blocks results in the lamps lighting when > > the test switch is pressed - but they remain on when it is released (the > > controlling property value in the browser does change). With the lamps > > lit if the brightness is changed and the test button pressed again the > > brightness of the lamps changes - so the first animation can still be > > triggered - it appears that the second is always ignored though. > > > > Have I done something silly, or have I discovered a bug? > >
IMHO, it's a bug. Sequence of <material> animation of one object work wrong. Suppopse, we have this code: <animation> <type>material</type> <object-name>lamp</object-name> <emissive> <red>1.0</red> <green>1.0</green> <blue>1.0</blue> <factor-prop>mycraft/lamp-flag</factor-prop> </emissive> </animation> <animation> <type>material</type> <object-name>lamp</object-name> <emissive> <red>1.0</red> <green>1.0</green> <blue>1.0</blue> <factor-prop>mycraft/another-lamp-flag</factor-prop> </emissive> </animation> Now, second animation not work at all. But some times ago (around half of year), such code work properly - object has control of last animation . I don't know - may be, rules of multiply animations of one objects was changed. It's appear only in OSG version, old PLIB branch work correct. -- Wbr, Yurik ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel