On 8/29/2011 4:28 PM, Jose Navarro wrote:
Hi,

I am new on all this stuff. So, I apologize if my questions are so simple.

I am working in visual studio 2008 and OSG. In my scene, I load some .obj files 
and I want to detect collision between them. I want to retrieve the vertices of 
my .obj geometry to star working with them. does anybody know how can I do 
this? or have an advice?

If you use osgBullet.googlecode.com, you can convert your scene graph directly to a Bullet collision shape and use Bullet to perform collision detection. In this case, you wouldn't need to access the vertices directly.

Even if you don't want to use Bullet for collision detection, the osgBullet project contains the CollectVerticesVisitor, which collects a set of transformed vertices from a scene graph. You might find this code useful.
   -Paul

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

Reply via email to