>On 6/18/07, Tomas Larsson <[EMAIL PROTECTED]> wrote:
>> Does OSG support animation of material attributes like opacity, color
etc?

>Yes, you can use update callbacks on nodes, geometry and state
>attributes in the scene graph to update various parameters, or just
>updating them directly in your own main loop.

Ok, but is it supported in the animation system so if I load an scene that
has material there the transparency is animated it will get animated
automatically?

Thanks

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: den 18 juni 2007 13:59
To: osg users
Subject: Re: [osg-users] Animate material attributes & texture updates

On 6/18/07, Tomas Larsson <[EMAIL PROTECTED]> wrote:
> Does OSG support animation of material attributes like opacity, color etc?

Yes, you can use update callbacks on nodes, geometry and state
attributes in the scene graph to update various parameters, or just
updating them directly in your own main loop.

> And is it possible to update texture data dynamically? I want to use my
own
> video code to play movies in textures.

Yes, the OSG support texture subloading so you can just update your
imagery and call dirty on it, and the OSG will automatically subload
your data.  You can also take advatange of Pixel Buffer Objects where
supported.  There is also a Quicktime plugin for Windows and OSX, and
a xine-lib plugin under Linux.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to