How to build osgBullet library in windows ?

29 views
Skip to first unread message

Sachin Jose

unread,
May 9, 2018, 1:19:53 PM5/9/18
to osgbullet-users
I am new to osg and osgBullet. I need to do a test project in collision detection. How do I build osgBullet library in windows? I have downloaded the opensource code and I tried to create an sln solution (visual studio 2015 ) using cmake gui, but when I tried to configure it is showing some error!

Paul Martz

unread,
May 9, 2018, 1:31:55 PM5/9/18
to osgbull...@googlegroups.com
The instructions for building osgBullet are here:
https://github.com/mccdo/osgbullet/blob/wiki/BuildingOsgBullet.md
See the wiki branch on github for other useful info. (It’s kind of hidden in that branch, sorry. That’s the way it imported into github when Google Code shut down.)

You didn’t say what error you’re getting, but I would guess CMake is failing to find one of the dependencies. There are three: Bullet, OSG, and osgWorks. Check the link above for instructions on resolving those dependencies in CMake.

It’s been a long time since I’ve done anything with osgBullet. Last I remember, it required some changes to build with current OSG. Check the compatibility matrix, as noted in the build instructions link, for compatibility with OSG versions.

I hope that helps.
-Paul

> On May 9, 2018, at 10:56 AM, Sachin Jose <sachinj...@gmail.com> wrote:
>
> I am new to osg and osgBullet. I need to do a test project in collision detection. How do I build osgBullet library in windows? I have downloaded the opensource code and I tried to create an sln solution (visual studio 2015 ) using cmake gui, but when I tried to configure it is showing some error!
>
> --
> You received this message because you are subscribed to the Google Groups "osgbullet-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to osgbullet-use...@googlegroups.com.
> To post to this group, send email to osgbull...@googlegroups.com.
> Visit this group at https://groups.google.com/group/osgbullet-users.
> For more options, visit https://groups.google.com/d/optout.

Sachin Jose

unread,
May 9, 2018, 3:04:10 PM5/9/18
to osgbullet-users
Thanks. that was very helpful. I have one more query about the implementation part. Do I have to use osgBullet to find the collision detection of custom shapes (3d shapes) or is osg lib enough to find that? Is there any API help document which I could use for osgBullet. I haven't found much docs/sample codes for my specific scenario.

Paul Martz

unread,
May 9, 2018, 4:19:25 PM5/9/18
to osgbull...@googlegroups.com
The only documentation is what we generated with Doxygen:
http://vesuite.org/external/docs/osgbullet/

OSG has no collision detection. Bullet does collision detection. osgBullet marries the two libraries—allows mappings between OSG and Bullet data structures, and allows Bullet to control OSG transformations. Before trying to use osgBullet, you should already know how to use both OSG and Bullet. osgBullet just provides tools to let you use both libraries together. It is not a wrapper. The primary intent of osgBullet was to use OSG to visualize Bullet dynamics.

The osgBullet example called osgbpp takes an OSG model on the command line, turns it into a Bullet collision shape, then simulates dropping it on a plane using Bullet rigid body dynamics, rendered by OSG.

If you are just interested in collision detection and not rigid body dynamics, then you can take a look at osgBullet’s osgbCollision library. It will let you convert between geometry described in an OSG scene graph and Bullet collision shapes. In theory, it’s possible to use Bullet just to detect collision (and not rigid body dynamic response). I think Bullet has an example that shows how to do that natively.

-Paul
Reply all
Reply to author
Forward
0 new messages