Hi Roman,
There are many ways to do this, how you do it will depend on what you
find more convenient... Ulrich's solution is one.
You could create two Geodes with different textures (summer/winter) that share
the same
geometry.
Or you could have two Geometry objects that share the same
arrays/primitivesets, but have different statesets, if you insist on
putting your textures directly on the Geometry objects.
Or you could have an osg::Switch, with under it two osg::Groups that
have the different textures, and under each Group the same osg::Geode.
Excuse my ASCII art:
switch
/ \
group(t1) group(t2)
\ /
geode
|
geometry
Then you could use the osg::Switch to decide which texture to use.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org