Hi Jean,
Yes, I have the local bounding spheres of each of the child nodes. But I'm
still not clear what I need to do to join all the bounding spheres of the child
nodes for the entire model ?
In the code below I'm loading the lwo files and creating local bounding spheres
for each of the
Hello Sanat,
Yes, I have the local bounding spheres of each of the child nodes. But I'm
still not clear what I need to do to join all the bounding spheres of the child
nodes for the entire model ?
Please search the archives, this has been discussed before. Actually, if
you have a hierarchy
Hi Jean,
I used bounding spheres on the transform nodes and that helped me get the
distance.
Thanks
Sanat
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30983#30983
___
osg-users mailing list
Hi,
I tried the following code:
Code:
//BoundingSphere using computeBound()
osg::BoundingSphere bh1Sphere = backhoe1Group-computeBound();
osg::BoundingSphere bh1PATSphere = backhoe1PAT-computeBound();
//BoundingSpere using computeBound():
osg::BoundingSphere bh2Sphere
Hi Sanat -- I posted to osgBullet-users with a possible fix for your osgBullet
crash, but didn't see a reply from you. Did my suggestion resolve the issue you
were encountering?
-Paul
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hello Sanat,
However, both the spheres (1 and 2) have the same centre coordinates. When I
try the same thing using spheres that are bounds for the top-most PATNodes, I
again get the same result (i.e. centre coordinates are the same).
I find this confusing as both the nodes have different
Hi,
maybe you can use spheres to get an initial vector between the objects
and then use this vector in the OSG intersection code to get more
precision for where this vector intersects the two objects.
jp
On 16/08/10 19:00, Sanat Talmaki wrote:
Hi Paul,
That is the method I had initially
Hi,
My 3d model is a number of nodes linked by PATs and a Group node right on top.
So when I was going through the methods, I observed that the getBound() works
only for nodes.
Then I also came across the computeBound() which can be used with Group nodes.
Code:
virtual BoundingSphere
Sanat Talmaki wrote:
I am interested in knowing if there is some tool in osg that I can use to
perform proximity queries between a pair of objects. I looked at osgbullet.
But it offers a lot more than what I basically need.
osgBullet doesn't do collision detection -- that would be
Hi Jean,
I am looking at osgBullet but for some reason all the binaries dont run after
building it.
Also, is there any tutorial that explains how to link osgbullet with an already
existing osg project ?
Thanks
Sanat
--
Read this topic online here:
Hi Paul,
That is the method I had initially thought of (i.e. the distance between
centres of spheres obviously :) and not the other one !)
I was building osgbullet and am able to build the projects in visual studio
successfully. All my dependencies are built right as osgWorks' binaries run
Hi,
I am interested in knowing if there is some tool in osg that I can use to
perform proximity queries between a pair of objects. I looked at osgbullet.
But it offers a lot more than what I basically need.
One approach that I have thought of is using distance formula between the
Hello Sanat,
So, I wanted to know if there is some way in OSG I can compute the shortest
distance between the boundaries of two objects.
Well, in OSG you have access to an approximated bounding sphere and
bounding box of your geometry (these may be very approximate though,
i.e. they may
13 matches
Mail list logo