Page 1 of 1

Simple example of bullet with a GUI + bouncing ball

Posted: Thu Dec 31, 2015 8:38 pm
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?

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

Posted: Fri Jan 01, 2016 4:09 am
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.

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

Posted: Sat Jan 02, 2016 8:08 am
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,

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

Posted: Fri Jan 08, 2016 2:38 pm
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?

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

Posted: Tue Jan 12, 2016 6:11 pm
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.