Rabbi Robinson wrote:
Hi,

What is the best approach to change stateset based on the distance between the 
object and the camera?

You could attach an update callback to the StateSet in question. The callback could compute the distance and adjust the state as needed.

You could also duplicate the object and place all of the copies under an LOD node with different state for each one. This uses more memory, but would probably work just as well.

--"J"


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to