On Sat, 20 Oct 2007 15:53:14 +0100 Jon Stockill <[EMAIL PROTECTED]> wrote:
> I'm having problems with material animations under the osg version of > flightgear. Melchior has confirmed that it's working for him with the > plib version, and that the config is correct. It's an extremely somple > model that consists of 2 buttons that turn a light on and off, so the > xml looks like this: > > <PropertyList> > > <path>ELT.ac</path> > > <animation> > <type>pick</type> > <visible>true</visible> > <object-name>Enable</object-name> > <action> > <button>0</button> > <repeatable>false</repeatable> > <binding> > <command>property-assign</command> > <property>/instrumentation/elt/enabled</property> > <value type="bool">true</value> > </binding> > </action> > </animation> > > <animation> > <type>pick</type> > <visible>true</visible> > <object-name>Reset</object-name> > <action> > <button>0</button> > <repeatable>false</repeatable> > <binding> > <command>property-assign</command> > <property>/instrumentation/elt/enabled</property> > <value type="bool">false</value> > </binding> > </action> > </animation> > > <animation> > <type>material</type> > <object-name>LED</object-name> > <emission> > <red>1</red> > <green>0</green> > <blue>0</blue> > <factor-prop>/instrumentation/elt/enabled</factor-prop> > </emission> > </animation> > > </PropertyList> > > Clicking the Enable and Reset objects results in the relevant node being > toggled in the property tree, but the LED object is never illuminated. > > Anyone got a fix, or a workaround? > > Jon > I havent tested this one but Ive found that I have to put the material animation first before any others for it to work .... -- Syd&Sandy <[EMAIL PROTECTED]> ------------------------------------------------------------------------- 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