Zachernuk.com

February 20, 2010

Extrusion shapes in Papervision

Filed under: flash — Tags: , , , , , , , , , , , , — Brandel Zachernuk @ 1:51 pm

As part of the early phase of experimentation in a potential project, I started fiddling with creating custom geometry in pv3d, rather than tweaking the vertices of existing primitives.    The results so far aren’t perfect, but they’re looking good:

Extrusion-shapes

I’m not sure whether this is re-creating functionality that other people have already put into papervision, but it was a lot of fun! There are some issues with shaded materials, but so far I have bitmap- and colour materials displaying and it’s looking good.  You can try it for yourself!  Like the pale text says – click in the window to add a vertex, press space to close the shape.  It seems to work even on pretty low-powered machines, so give it a try!

Get Adobe Flash player

2 Comments »

  1. Hi.

    looks great! This is the effect I am after. Could you please provide a link to the code? or provide some hints?

    many thanks

    Farid

    Comment by Farid — May 22, 2010 @ 7:53 am

  2. Hi Farid, Thanks! I’m quite pleased with it. After looking around a little, it sounds like Away3D has a built-in extrusion package, described here: http://away3d.com/livedocs/3.5.0_lib/away3d/extrusions/package-detail.html

    Have you considered using that? According to benchmarks from May 2009 the two engines were performing on reasonably even ground, but Away has a lot more stuff built into it from what I can gather. I’d love to hear about what you’re using it for!

    Comment by Brandel Zachernuk — May 23, 2010 @ 10:49 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress