Viewing items tagged with: Interactive 3D Physics

Please Log In or Register

Smash it, Shoot it, Break it

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

ofxBullet Examples from Nick Hardeman on Vimeo.

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.
MORE INFO