Home > Flex, Math > Path Animation with Papervision 3D

Path Animation with Papervision 3D

August 26, 2007

I finally got around to implementing a 3D version of the Catmull-Rom spline.  My primary intended use is for path animation in Papervision 3D.  The 3D version of the C-R spline does not have the 2D draw() method, but it maintains support for arc-length parameterization and automatic closure (with smooth transition through the closure).

The former property is useful for velocity control and proper easing during path animation while the latter is useful for continuous fly-throughs.  An online demo is available, but be warned.  It is distilled down to a very simple level in order to make the code easier to understand. The result is probably the ugliest PV3D demo you will ever see :)

The red cubes represent markers, indicating control-point placement in 3D space.  The green sphere is animated (using arc-length parameterization) along the path.

Check out the online demo here, which includes a link to download the Singularity package (now containing the alpha 3D Catmull-Rom spline).

About these ads
Categories: Flex, Math
  1. August 27, 2007 at 6:45 am

    VERY nice Jim!

  2. August 28, 2007 at 11:06 pm

    Very cool, big fan of pathing in 3d with the boom in 3d flash engines. There are so many possibilities for flash games and tools with 3d its an exciting time.

  3. April 8, 2008 at 5:59 pm

    Really cool :)

  1. November 17, 2007 at 7:39 pm
Comments are closed.
Follow

Get every new post delivered to your Inbox.

Join 1,333 other followers

%d bloggers like this: