[osg-users] BoundingBox

2011-06-20 Thread Nilton Paulo
Hi, everybody! I am looking to use BoudingBox into my application. I want to avoid collison or transverse the walls of the buildings, when navigating with the camera. Here are my test using BoundingSphere: const osg::BoundingSphere& bs1 = viewer.getCamera()->getBound(); const osg::BoundingS

[osg-users] BoundingBox Problem

2008-01-22 Thread Paul Pocock
Hi, Wondering if anyone from the list can help me. I have a 3x3 grid of tiles from a terrain database, my aim is to get an outline representation of this 3x3 by just using lines to represent each tile. My solution is the following: osg::BoundingBox bbox ; bbox.expandBy(node->getBound()); v

Re: [osg-users] BoundingBox

2011-06-20 Thread Robert Osfield
Hi Nilton, Neither osg::BoundingBox or osg::BoundingSphere will be sufficient for the purpose of collision detection against polygon wall geometries, these bounding volumes are just suitable for very coarse grained intersections tests like required for culling. The osgUtil::IntersectionVisitor/*I

Re: [osg-users] BoundingBox

2011-06-21 Thread Jean-Sébastien Guay
Hi Nilton, This test does not work properly and IF always return TRUE. In addition to what Robert said, I'll add that the reason your test returns true is that you're using the camera's bounding sphere. Since the camera is the root of the scene graph, its bounding sphere contains the boun

Re: [osg-users] BoundingBox Problem

2008-01-23 Thread Robert Osfield
Hi Paul, There is an osg::ComputeBoundVisitor that will compute the tight bounding box of a subgraph, you can use this instead of the node->getBound(). Robert. On Jan 23, 2008 3:28 AM, Paul Pocock <[EMAIL PROTECTED]> wrote: > Hi, > Wondering if anyone from the list can help me. > > I have a 3x3

[osg-users] BoundingBox and Billboard

2009-12-07 Thread Romain Garnier
Hi, I have a problem with my billboards and their boundingbox. I create a vector of osg::billboard (vector_cibles) which contains a cylinder drawable and its position (position in a cibles array) Code: std::vector::iterator it=tableau_cibles.begin(); for (it;it!=tablea

[osg-users] BoundingBox centre location after PossitionAttitudeTransform translation/rotation

2014-03-31 Thread Petr Svoboda
Hi, I render a scene with objects on which I test linesegment intersection. I want to achieve this: If I point to an object I want to visualise it somehow (create BoundingSphere over that *.OSG model) and for that I use ShapeDrawable->Sphere with StateSet to PolygonMode which works nicely. Bu

Re: [osg-users] BoundingBox centre location after PossitionAttitudeTransform translation/rotation

2014-04-01 Thread Ulrich Hertlein
Hi Petr, Quoting Petr Svoboda : If I point to an object I want to visualise it somehow (create BoundingSphere over that *.OSG model) and for that I use ShapeDrawable->Sphere with StateSet to PolygonMode which works nicely. But the problem is: The intersection visitor "accepts" (finds intersecti