Hi Jefferson,

Once again, a complement to the info David provided:

Create a shader - you can use the GLSL in ShadowMap.cpp as a starting point - and then bind it to your car node stateset with the "usual" methods

Or, attach an empty osg::Program to get the fixed pipeline. If you're just using the default shadow shader for your shadows, the fixed pipeline for your cars might be sufficient instead of having to write a shader without shadowing yourself.

    car_node->getOrCreateStateSet()->setAttributeAndModes(
        new osg::Program, osg::StateAttribute::ON);

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to