Deformable Chipmunk Terrain

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
880 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 20, 2011

OSX executable available here: http://files.slembcke.net/temp/DeformableChipmunk.app.tgz

A demo for Chipmunk Pro's auto-geometry module. It works by using a sampling function, so you can make it trace an image mask, procedural noise such as perlin noise, or any other function you can think of.

For this demo I stored the terrain density in a point cloud, a list of fuzzy dots. This uses very little memory and doesn't have any bounds. While you can't scroll in this demo, if the same technique was used in a game you could keep digging in any direction and never hit any limits or edges.

The demo also breaks the terrain up into tiles. Whenever a chunk is taken out of the terrain, it only updates the tiles that it overlaps. This allows it to run very fast, requiring only 0.2 milliseconds on a Core 2 Duo machine for each chunk of terrain removed.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • That's really fantastic!

    Is it only ChipmunkPro?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more