HI Wilbur,

My guess it's small feature culling the small spheres when the model
extents are larger which causes the initial viewpoint to be further
away.

You can swtich off small feature culling via

   camera->setCullingMask( camera->getCullingMask() &
~osg::CullingSet::SMALL_FEATURE_CULLING);

For other related settings see the osg::CullingSet class that
osg::Camera inherits from.

Robert.

On 7 May 2013 13:54, Wilbur McFerrin <[email protected]> wrote:
> Hi,
>
> I have a small OSG application in which I want to place one of a fixed number 
> of spheres at a location determined by a click's intersection with the 
> terrain. I am initializing the spheres beforehand. All of this works, with 
> one caveat: If I initialize the spheres at or close to the origin, they don't 
> appear when I click, even though I am sure their positions (and radii) are 
> changed to the appropriate value. If I initialize the spheres close to the 
> middle of the terrain, all works as expected. What could cause this sort of 
> behaviour?
>
> Thank you!
>
> Cheers,
> Wilbur
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53942#53942
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to