Chage static texture to animated texture (osg file)

Community support forum for users of the GPL-licensed osgART Standard Edition v1.0 and proprietary-licensed osgART Professional Edition v1.1
almirb
Posts: 2
Joined: Mon Feb 14, 2011 5:26 pm

Chage static texture to animated texture (osg file)

Postby almirb » Mon Feb 14, 2011 5:33 pm

Hi,

I'm new to Osgart and OpenSceneGraph, and I have the following scenario:

A OSG file exported from 3DS Max, using OSGExp0.9.8....
That file has 3 textures... 2 should be static, and 1 should be animated. When playing the exported OSG file, all 3 textures still static.

I read few things about osg imagesequence, that can read a lot of sequential images to produce a animated texture effect. And that's what I'm looking for!!

My dificultie is to change (in code) the static texture exported from 3DSMax to a imagesequence texture.

Can anyone say me how to do that?

...

Thank you!

Cheers,
Almir

almirb
Posts: 2
Joined: Mon Feb 14, 2011 5:26 pm

Re: Chage static texture to animated texture (osg file)

Postby almirb » Tue Feb 15, 2011 6:17 pm

Ok, here is the code... It's a modified version of osgartsimple.cpp:

(see attachment)

The OSG file - karsten.osg - (generated with 3ds Max) has 3 main textures. I want to change one of them with a imagesequence or movie file (quicktime .mov)
(I have both of them).

I haven't a Geode object, only a VideoGeode... how can I create a stateset to change the texture?

Thanks!
Attachments
osgartsimple.cpp
My file.
(4.75 KiB) Downloaded 292 times

retrakker
Posts: 125
Joined: Mon Dec 18, 2006 5:00 pm
Contact:

Re: Chage static texture to animated texture (osg file)

Postby retrakker » Tue Mar 15, 2011 5:48 am

Sorry, but this seems to be a general OpenSceneGraph + OSGExp question.


Return to “[ARCHIVED] osgART Standard & Professional Editions”

Who is online

Users browsing this forum: No registered users and 2 guests