Hi, I have been experimenting with Shadows lately for a pretty large scene I have. After reading some posts on the forum I realized I have to go with LiSPSM since it was optimized for large scenes.
So I setup LiSPSM, passed in the variables and rendering using shaders. Everything seems to be working fine, until I noticed that LiSPSM doesn't seem to cull the objects in my scene graph. Even when I am viewing a building or two my triangle count is pretty high. If I turn off the shadows I get a much better performance and triangle count drops down to whatever there is on the screen. I have my ShadowScene as a root node, and the models are divided into regions and added as children to their respective regional group. I noticed in the LiSPSM there is a setMaxFarPlane() parameter. When I set a value it seems to only display shadows up to the far plane I specified, however the triangle count is still pretty high, almost as much as the entire scene. Am I missing something to make Shadows cull the models? Thank you! Ramy ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33374#33374 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

