Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
lib
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Join the chat at https://gitter.im/bullet-physics-playground/bpp

Bullet Physics Playground

Features:

  • Lua scripting (experimental, sometimes segfaults)
  • OpenGL-2 GUI (experimental, no OpenCL features)
  • OpenSCAD import (experimental, sometimes crashes)
  • POV-Ray / Lightsys export (stable)

Build

Select your operating system:

Run

Start with GUI:

$ ./bpp

Start without GUI and render a 400 frames animation with POV-Ray from the command-line:

$ echo "render = 1" | ./bpp -f demo/basic/00-hello-pov.lua -n 400 -i

Pipe bpp simulation data into gnuplot:

$ ./bpp -n 200 -f demo/basic/00-hello-cmdline.lua | gnuplot -e "set terminal dumb; plot for[col=3:3] '/dev/stdin' using 1:col title columnheader(col) with lines"

For more demos, see demo/.

For a list of Lua-accessible classes, functions and properties, run:

$ ./bpp -f demo/basic/00-luabind.lua

Basic Usage HOWTO

Viewer

Keyboard shortcuts

  • "s" starts/stops the physics simulation
  • "p" toggles the POV-Ray export mode
  • "g" toggles the PNG screenshot saving mode
  • "a" toggles display of world axis
  • "f" toggles FPS display
  • Enter starts/stops the animation
  • Space toggles between fly/revolve camera modes
  • Use arrow keys to move the camera
  • "h" shows QGLViewer help window: note the above shortcuts overwrite the QGLViewer ones under the "Keyboard" tab.

Mouse usage

Press "h" to show QGLViewer help window, and click on the "Mouse" tab to see all the possible mouse actions.

Editor

The editor has a few known problems:

  • It will crash if you try to use a non-existant file for a Mesh object. It will crash too if you try to edit the file name. The workaround is to comment out the Mesh and v:add() lines before editing them.

  • With scripts which load many objects, or big meshes, the typing can be very slow.

Wiki

Authors

  • © 2008 – 2021 @koppi – Initial release.
  • © 2012 – 2016 @jaimevives – POV-Ray export.