Page 1 of 1

Is anyone working on openscenegraph + bullet?

Posted: Mon Dec 11, 2006 3:05 pm
by HeroIsNotBorn
Is anyone working on openscenegraph + bullet?

Re: Is anyone working on openscenegraph + bullet?

Posted: Tue Dec 12, 2006 2:17 pm
by Erwin Coumans
HeroIsNotBorn wrote:Is anyone working on openscenegraph + bullet?
Probably not yet. Are you interested in starting an integration?

If so, You can post your results here, and get some feedback/help on this forum.
Erwin

Thin Box Problem

Posted: Fri Dec 15, 2006 10:46 pm
by HeroIsNotBorn
I created multiple thin boxes with size of (1.6, 0.1, 1.6) in my scene, some of them occasionally will penetrate into each other.

Like, with a scene including hundreds of thin boxes and one thin box to represent the ground, one box occasionally will penetrate the ground.

Posted: Sat Dec 16, 2006 12:26 am
by Erwin Coumans
I created multiple thin boxes with size of (1.6, 0.1, 1.6) in my scene, some of them occasionally will penetrate into each other.

Like, with a scene including hundreds of thin boxes and one thin box to represent the ground, one box occasionally will penetrate the ground.
It's easier to break a rigidbody dynamics engine then to make effective use of it. Some rules of thumb might help: sizes of less then 0.2 are not supported. Large mass ratios are not supported either (avoid 100kg on top of 1kg), don't use huge sizes for collision shapes (<10 units). If you need a larger static environment, use either triangle meshes with reasonable sized triangles (< 10 units), or a plane shape.

This and much more should go in the manual (Bullet_User_Manual.pdf)
Hope this helps,

Do you have some demo using OpenSceneGraph?
Erwin

I made a video

Posted: Sat Dec 16, 2006 9:20 pm
by HeroIsNotBorn
I guess I can work around the thickness problem by changing the world dimension unit.

My application is for visualizing hurricane damage process.
I made a video showing shingles fell to the ground under gravity force. but I donot know how to paste here. It's about 4 megabytes.
And I am still working on that.

Re: I made a video

Posted: Sat Dec 16, 2006 9:33 pm
by Erwin Coumans
HeroIsNotBorn wrote:I guess I can work around the thickness problem by changing the world dimension unit.

My application is for visualizing hurricane damage process.
I made a video showing shingles fell to the ground under gravity force. but I donot know how to paste here. It's about 4 megabytes.
And I am still working on that.
Perhaps you can upload it to YouTube?

It's best to use meters for units: 1 meter = 1 unit. Then gravity around 10.
And keep object sizes 'reasonable' above 20 centimeter (in any direction) and at most 10 meters.
Also, never make the margin totally zero or too small (setCollisionMargin/setMargin), that's destined to fail. Best to use at least 0.02 - 0.05 units. Other improvements include making the internal timesteps smaller.
The internal timestep is normally 60 hertz, and you can change this by changing the 3rd parameter of 'stepSimulation'. The second should be large enough too:
This would use an internal timestep of 240 hertz:

Code: Select all

dynamicsWorld->stepSimulation(timeStep, 1000, 1.0 / 240.0);
It will allow at most 1000 times 240 hertz internal fixed steps to reach your 'timeStep'. Don't pass 0 as second argument.

Hope this helps,
Erwin

Re: Open Scenegraph and Bullet?

Posted: Tue May 20, 2008 5:54 pm
by janoc
Hello,

I have posted an example of OSG 2.4 with Bullet 2.68 on the OSG wiki:
http://www.openscenegraph.org/projects/ ... /Tutorials

You need to make a makefile or project, it is using an Eclipse CDT project at the moment.

The example runs the update of the physics in the main rendering loop,
however that is trivial to move either into a callback of a special node
or a thread or whatever you need.

Re: Open Scenegraph and Bullet?

Posted: Thu Nov 12, 2009 10:39 pm
by PaulMartz
Anyone interested in using OSG and Bullet should see the topic "Announcing osgBullet" in this forum:
http://www.bulletphysics.org/Bullet/php ... =17&t=4308