Michele Bosi schrieb: > Hello, > I am using osgFX::Cartoon node to optionally draw some molecules using > cel-shading, > the problem is that osgFX::Cartoon makes everything look gray and the > color of the > objects seems to be lost, is that intentional or am I missing something? > > All I do is to set the osgFX::Cartoon as the root node of the scene > and then all the > other nodes are made child of it. > > Thanks, > Michele
You have to set a 1D texture to texture unit 0 for the cartoon shader. This texture defines the intensity or color ramp used for the cartoon lighting. You can use different colored ramps for different objects. regards Ralph _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org