Re: [osg-users] Different colors for a node shared scene graph

2019-06-13 Thread Catalin Flower
Hi,

My current solution to this is to have the same geode added twice (each with 
different color) in scene graph with a common parent and during rendering, by 
using a cull callback I can choose which geode to cull based on the camera 
object.

I was hoping a more elegant/canonical solution.

Thank you!

Cheers,
Catalin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76288#76288





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Different colors for a node shared scene graph

2019-06-13 Thread Catalin Flower
Hi,

I have a situation in which I need different colors for a node in different 
views, scene graph is shared between views. Can you have a different StateSet 
for a node in different View to change the color?

Is this even possible?

Thank you!

Cheers,
Catalin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76284#76284





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org