Re: [osg-users] Collision detection using osgBullets

2013-11-18 Thread Paul Martz
Jan's advice is sound. For use with Bullet and osgBullet, ideally each Geode (or maybe Geometry) should be a convex object. If so, osgBullet can be used to create a Bullet compound shape for the entire model, consisting of sub-shapes that are all simple convex shapes. Bullet does not support conc

Re: [osg-users] Collision detection using osgBullets

2013-11-18 Thread Jan Ciger
On Mon, Nov 18, 2013 at 12:34 PM, Mots G wrote: > Thank you Paul and Jan for the explanations! > > You are welcome. BTW, that stuff is also in the Bullet's documentation *wink* :) > On digging further, I came across a post > (here),

Re: [osg-users] Collision detection using osgBullets

2013-11-18 Thread Mots G
Thank you Paul and Jan for the explanations! I have checked the collision example that comes with the osgBullet library. I was trying to modify the same example to get collision between two osg-models. I first modified the CF_KINEMATIC_OBJECT box by an osg mode (Cow.osgt). Collision worked fine

Re: [osg-users] Collision detection using osgBullets

2013-11-17 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On 11/17/2013 06:42 PM, Mots G wrote: > Hi Paul, I'm confused between static and dynamic objects. Does > dynamic object mean the rigid body dynamic object and the dynamic > world? I thought dynamic objects were only needed if I had to get > ine

Re: [osg-users] Collision detection using osgBullets

2013-11-17 Thread Paul Martz
There is an example called "collision" that comes with osgBullet. Take a look at the two objects that are created. The box on the left is created with CF_STATIC_OBJECT because it never moves. The box on the right is created with CF_KINEMATIC_OBJECT, and can be moved with ctrl-leftmouse. When you dr

Re: [osg-users] Collision detection using osgBullets

2013-11-17 Thread Mots G
Hi Paul, I'm confused between static and dynamic objects. Does dynamic object mean the rigid body dynamic object and the dynamic world? I thought dynamic objects were only needed if I had to get inertia and motion states properties to the objects. In my case I only need to test if the 3D models col

Re: [osg-users] Collision detection using osgBullets

2013-11-14 Thread Paul Martz
My guess is that you've somehow created the collision shapes as static instead of dynamic. Bullet uses the static classification for objects that never move. If you have two objects that never move, Bullet will assume they never collide. Although I've done quite a bit of work in the past with Bull

[osg-users] Collision detection using osgBullets

2013-11-14 Thread Mots G
Hi all, I'm trying to use osgBullets in my application for collision detection. The library comes with a sample example for detection between two box-geodes. I've modified it to use a cessna and a cow model and obtained a 'btCollisionObject' by calling: *osgbCollision::btCompoundShapeFromOSGGeodes