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

2014-04-01 Thread Ulrich Hertlein
Hi Petr, Quoting Petr Svoboda upd...@seznam.cz: 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

[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.

Re: [osg-users] BoundingBox

2011-06-21 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

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

[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-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());