Hi. I've been reading Cookbook's chapter 6 describing various visual effects with OSG. However, the g-buffer and deferred shading code were producing wrong results. I took one of the tutorials that I found on the web ( http://steps3d.narod.ru/tutorials/ds-tutorial.html ) starting off from g-buffer sample and got it working as seen here: http://youtu.be/TYUbrBRr25o Complete source code: https://bitbucket.org/kornerr/osg-deferred-shading
I don't know how to add shadows. Can anyone tell me how get them? I'm bad at math and don't understand all the funny formulas in the shaders, so I'd like to hear some OSG specific close-to-code explanations or even code sample at best! Thanks.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

