Simple example of bullet with a GUI + bouncing ball

Post Reply
shlomok
Posts: 3
Joined: Thu Dec 31, 2015 8:22 pm

Simple example of bullet with a GUI + bouncing ball

Post by shlomok »

Dear All,
I am looking for a simple HelloWorld example (https://bullet.googlecode.com/svn/trunk ... oWorld.cpp) that also has a *UI* to display a simulation, possibly a bouncing ball.
I run the new https://github.com/bulletphysics/bullet ... pleBrowser demo, but this is an over kill for me, I just want a simple GUI window with for instance a bouncing ball (maybe like this http://www.bulletphysics.org/Bullet/php ... =9&t=10935).

Does anyone have such an example?
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Simple example of bullet with a GUI + bouncing ball

Post by Basroil »

Just use the default browser, and then change the code in one of the examples so that there is a single ball spawned. You can also look at the older code on the google code section that has fewer fancy things, but even that won't have an example that simple because it's nearly trivial.
shlomok
Posts: 3
Joined: Thu Dec 31, 2015 8:22 pm

Re: Simple example of bullet with a GUI + bouncing ball

Post by shlomok »

Thanks but the example browser has too many moving parts, I just wanted a HelloWolrd in a single file.

I found https://github.com/Polytonic/Glitter, which has rendering by OpenGL and full support for bullet physics. I tested it on OSX/Xcode and it works out of the box.
Once I write a simple HelloWorld with rendering I shall upload it here.

thanks,
amatic
Posts: 13
Joined: Sun Oct 25, 2015 10:17 am

Re: Simple example of bullet with a GUI + bouncing ball

Post by amatic »

Any luck with Glitter? I would appreciate the source code of the example. The ExampleBrowser seems pretty complicated to me, too.

Also, what GUI widget library might be used with glitter?
amatic
Posts: 13
Joined: Sun Oct 25, 2015 10:17 am

Re: Simple example of bullet with a GUI + bouncing ball

Post by amatic »

Basroil wrote:Just use the default browser, and then change the code in one of the examples so that there is a single ball spawned. You can also look at the older code on the google code section that has fewer fancy things, but even that won't have an example that simple because it's nearly trivial.
Could you please point to which classes and header files would be needed for just the minimal graphics functionality with the new libraries? Sorry if this is very basic, I can't seem to figure it out.

I am using bullet 2.82 at the moment because all the examples were separate projects.
Post Reply