Hello, On Tue, Nov 26, 2013 at 10:11 AM, Χρύστος Γαλάτουλας <[email protected]>wrote:
> Hello community. I have one question that may be a little dumb. Well, I > have an osgviewer setup, projecting a 3d model based on rviz markers. I > used stl files but couldn;t make them change color, so after converting > them to osg files and adding colormode on, ambient color and diffuse color > I am able to change the color of the 3d model as I wish. My question is if > I can change the color dynamicaly, without having to exit the viewer and > reloading it again. > Not in the osgviewer itself. You would have to write some code that would modify or replace the osg::Stateset on the node in the scenegraph with the object in reaction to e.g. a keyboard input or something else. Regards, Jan
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

