Having some fun with soft bodies in ofxBullet
Follow This! is a first person shooter game utilizing the Microsoft Kinect camera. Input a twitter search term to create birds, varying based on the loaded tweets. Once all of the tweets have been gathered, you are equipped with gatling gun arms. Aiming your arms in physical space is reflected in the game. Open your hands to fire and pulverize as many birds as possible, earning score multipliers for quick hits. You must blast an increasing minimum amount of birds to advance to the next level, if not, fail whale; game over.
Curious, having trouble, a debug screen displays the various digital images generated by the Kinect camera and provides some brief instructions / help.
Special thanks to Lauren Licherdell for Design / 3D Assets.
Thanks for all the help from the OF community!
The game uses the Kinect for user control
Users control their gatling gun arms independently by aiming their arms in physical space and fire by opening their hands.
Earn score multipliers by shooting birds in rapid succession.
When users have their hands closed, the guns do not fire.
The red rocket bird explodes into bird-seeking rockets when shot.
Shoot birds quickly to get a kill frenzy.
Check out the top highscores.
In this application, the text is dynamically created in 3D by using ofxDelaunay triangulation and then extruding along the text outline. I tested it on 5 fonts, two of them being rather complex outlines and it worked with a good amount of accuracy. There is a breakdown of the 3D text creation process at the end of the video, although it is not very descriptive, you get the general idea.
Both the decomposition of the dynamic text and loaded 3D models is done on the fly and is based on the examples provided by Bullet.
Didn’t spend too much time on the sounds as you can probably tell.
ofxBullet is an addon for OpenFrameworks for the incredible Bullet Physics library. Included are all of the primitive shapes; sphere, cone, capsule, box and cylinder. Joints are supported as well, between two shapes and a shape and a location. Collision events can be enabled to fire an event. The object passed contains information about the collision, including the two colliding objects, the location of the collision, etc. Mouse events can be enabled as well, and pass an event similar to the collision events. Mouse grabbing is also supported. The custom shape example illustrates passing a mesh from a loaded collada file (the OF logo) and building the bullet shape. This custom shape class also takes all of the primitives and supports multiple meshes.