HI Michele, I'm not the author of osgFX:Cartoon so am too familiar with the details of the implementation, but I just test a couple of models here with osgfxbrowser and it shoes the the Cartoon effect does support underlying colour, but this doesn't show for all models. It looks to me like the shader ignores OpenGL lighting & glMaterial(osg::Material), and the colour problem just comes from glColor (i.e. colour array attached to your osg::Geometry.)
Robert. On Dec 17, 2007 10:56 AM, Michele Bosi <[EMAIL PROTECTED]> wrote: > 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 > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

