Hi,

Well, that was simple


Code:

virtual osg::BoundingBox computeBound() const
{
   osg::BoundingBox bbox;

   // Compute the min/max X and Y values for the grid
   float miny = (m_posY-(m_vHeight/2*m_zoom));
   float maxy = (m_posY+(m_vHeight/2*m_zoom));
   float minx = (m_posX-(m_vWidth/2*m_zoom));
   float maxx = (m_posX+(m_vWidth/2*m_zoom));

   bbox.set(minx, miny, -0.1, maxx, maxy, 0.1);

   return bbox;
}




That fixed it, no more clipping. 

Thank you!
Andrew

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16036#16036





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to