Papervision 3D Programming Tutorial - Trails

Mar 1st, 2009 by mcasperson

Add trails to moving objects in a Papervision 3D scene. Demo and source code included.

VIEW THE DEMO
DOWNLOAD THE CODE

There is a blog entry over at http://blog.zupko.info/?p=264 which sows you how to add trails to Papervision objects. If you ever played the game Wipeout you'll know what these trails look like. Needless to say they are pretty cool, and with the code supplied in the blog entry very easy to add to your own project.

The demo at http://lab.zupko.info/trails shows a bunch of coloured blobs moving around along a Bezier curve. It's a nice effect, but rather than simply repeat the same code here I have modified the Tweening example from earlier to show a similar bunch of blobs with trails moving around. I have also allowed you to select the transition type (as shown at http://hosted.zeh.com.br/tweener/docs/en-us/) from a dropdown combo box.

Once thing I did notice about the trails is that they appear to smooth the movement of anything moving in a straight line. Check out the linear transition type and you'll see what I mean. The blobs are actually moving in a straight line from one random point to another, but because the trails curve around you get the impression that the blobs are actually following a more natural, curved path.

As always I big thanks to Andy Zupko (http://blog.zupko.info/) for the inspiration and code that made this demo possible. I encourage anyone looking for some cool Papervision examples and source code to check out his blog.

Go back to Papervision Tutorials

mcasperson

Written by mcasperson

Rate this Article:

Be the first to rate me.

Add new comment

(required)

(required)


Comments

No comments yet, be the first to comment on this article.