[Flightgear-devel] Unexpected behaviour of FlightGear's material animation

2010-11-02 Thread Greg Hawkes

Hi all,

I have created some FlightGear scenery models that light up at night.  I 
have followed the directions contained on the Howto: Illuminate faces 
page on the FlightGear wiki. My model's XML file contains the following:


animation
typematerial/type
object-nameWalls/object-name
condition
greater-than
property/sim/time/sun-angle-rad/property
value1.70170/value
/greater-than
/condition
emission
red1/red
green1/green
blue1/blue
/emission
/animation

Using FlightGear 1.9.1 on Ubuntu 10.04, this works -- except the lights 
don't turn off.  The wiki says that the lights will turn off 
automatically when the condition is no longer true, but this did not 
work for me. To turn the lights off I needed to include the following:


animation
typematerial/type
object-nameWalls/object-name
condition
not
greater-than
property/sim/time/sun-angle-rad/property
value1.70170/value
/greater-than
/not
/condition
emission
red0/red
green0/green
blue0/blue
/emission
/animation

Can anyone confirm whether the behaviour works as described in the wiki? 
Should the lights automatically turn off, or is the wiki wrong and the 
second condition is required?


Also, using FlightGear v2.0.0 on Ubuntu 10.04 (compiled on 1-Nov-2010 
using the Download and Install script), the behaviour is different 
again: the lights are lit at all times.  Has the behaviour changed for 
this version, is it still under development, or have I missed a change 
in the animation properties?


Many thanks,
Greg Hawkes
--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Unexpected behaviour of FlightGear's material animation

2010-11-02 Thread Heiko Schulz
http://code.google.com/p/flightgear-bugs/issues/detail?id=165#c4


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel