On 4/12/09 10:46 PM, Danny Lesnik wrote:
>>> And the second question: Can OSG view animated gifs as model textures? 
>>
>> I haven't personally used this but the code is there so it should work.
>>
>> You probably have to start the animation manually.  To do that you need to 
>> find the
>> respective image, dynamic_cast<> it to an ImageStream and (if successful) 
>> call play() on
>> that object.
> 
> Hi Ulrich,
> 
> How can I find this respective  image?

You'll have to write a custom NodeVisitor.

This NV could collect all Images of type ImageStream or it could search for a 
specific
filename.  Have a look at the FindImageStreamsVisitor in 
examples/osgmovie/osgmovie.cpp
for an example.

HTH,
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to