-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[EMAIL PROTECTED] wrote:
| With the following model:
|
| world '' (2)
|         group 'testgroup1' (2)
|                 poly 'test1'
|                 group 'testgroup2' (1)
|                         poly 'test2'
|
| I can use a material animation on testgroup1 and both test1
| and test2 respond, which is what I would expect. I can't
| seem to get a material animation to work for testgroup2
| though, as long as there is a material animation for it's
| parent group. It does not matter what order the animations
| are given in the model.xml file, it always fails. Removing
| the animation for testgroup1 allows the animation for
| testgroup2 to work. Also, using <name> tags for the
| animations doesn't change the behavior.
|
| This was not the case before the OSG changeover, and breaks
| a few important animations in the ch53e cockpit. I can work
| around this, but it will be inelegant and require a lot of
| extra animations as I will have to flatten out the
| structure of the cockpit. Any ideas?
|
| Josh
|
|
Yeah, this is a side effect of the way I implemented material animations in OSG,
in which the material animations set on a parent group override the values of
materials in the children, including those set by animations in the children. 
I'm
going to rewrite this soon, so I think you'll see this problem disappear. 
However,
would you expect to animate red-prop in a parent and blue-prop in a child? I 
don't
think that will work in the future.

Tim

|
|
| PS, here are the animations:
|
| <animation>
|     <type>material</type>
|     <object-name>testgroup2</object-name>
|     <property-base>sim/model/ch53e/test-mat-2</property-base>
|     <diffuse>
|         <red-prop>diffuse/red</red-prop>
|         <green-prop>diffuse/green</green-prop>
|         <blue-prop>diffuse/blue</blue-prop>
|     </diffuse>
|     <ambient>
|         <red-prop>ambient/red</red-prop>
|         <green-prop>ambient/green</green-prop>
|         <blue-prop>ambient/blue</blue-prop>
|     </ambient>
|     <specular>
|         <red-prop>specular/red</red-prop>
|         <green-prop>specular/green</green-prop>
|         <blue-prop>specular/blue</blue-prop>
|     </specular>
|     <emission>
|         <red-prop>emission/red</red-prop>
|         <green-prop>emission/green</green-prop>
|         <blue-prop>emission/blue</blue-prop>
|     </emission>
|     <shininess/>
| </animation>
|
| <animation>
|     <type>material</type>
|     <object-name>testgroup1</object-name>
|     <property-base>sim/model/ch53e/test-mat-1</property-base>
|     <diffuse>
|         <red-prop>diffuse/red</red-prop>
|         <green-prop>diffuse/green</green-prop>
|         <blue-prop>diffuse/blue</blue-prop>
|     </diffuse>
|     <ambient>
|         <red-prop>ambient/red</red-prop>
|         <green-prop>ambient/green</green-prop>
|         <blue-prop>ambient/blue</blue-prop>
|     </ambient>
|     <specular>
|         <red-prop>specular/red</red-prop>
|         <green-prop>specular/green</green-prop>
|         <blue-prop>specular/blue</blue-prop>
|     </specular>
|     <emission>
|         <red-prop>emission/red</red-prop>
|         <green-prop>emission/green</green-prop>
|         <blue-prop>emission/blue</blue-prop>
|     </emission>
|     <shininess/>
| </animation>
|
|
|
| -------------------------------------------------------------------------
| This SF.net email is sponsored by: Microsoft
| Defy all challenges. Microsoft(R) Visual Studio 2008.
| http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
| _______________________________________________
| Flightgear-devel mailing list
| Flightgear-devel@lists.sourceforge.net
| https://lists.sourceforge.net/lists/listinfo/flightgear-devel
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHlY8YeDhWHdXrDRURAnsFAJ4uTuirFvgRwQKCm8Cxkwsdm/3a7ACfRcD5
YVQv5U3ZBC5fiNRNz1RtLcM=
=pRqF
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to