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
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
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
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
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
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
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
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
8 matches
Mail list logo