Alberto,

>
> skydome->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR).
>
> > a class osg::Camera inherits from


Sorry - missed a step. Put a Camera in above your skydome.

A solution that comes to my mind is to use a pair of cameras, one rendering
> the skydome with the setting you said, DO_NOT_COMPUTE_NEAR_FAR, and the
> other
> rendering the rest of the scene.


Exactly. That's what I do (although I control a bunch of other stuff in the
camera, like projection matrix, in order to avoid the later issues).

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

Reply via email to