> > Hi Nike, > There is many way to get shadows and the shadowing technique choice shall depend of your scene data.
The two basic shadowing techniques are : - shadow maps ( image based ) - shadow volumes ( geometry based ) Shadow maps are very cheap and easy to implement but will works good only if your light is not far from what you are shadowing due to the image approach. So if you have a large terrain with an unique directional light ( as sun ), simple shadowmaps should do an ugly result. You could try "cascade shadowmaps" which is a technique used a lot in video games. It uses a kind of shadowmap LOD to avoid image based algorithms issues and stay cheap. Shadow volumes generate very accurate shadows but as it is based on geometry, if your scene geometry is complex you will experience some perf issues. Again, the shadowing technique choice depends of how many lights you have, where they are, what you are shadowing etc. Give a bit more details of your goal and i'm sure some osg pro will bring to you the ideal solution using osg :) Regards, Harold
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

