[Papervision3D] Procedurally generated models
Pete Hobson
pete at 99lives.co.uk
Fri Jan 5 07:34:16 EST 2007
Hi All,
As I dont have any 3d modeling experiance at all, right now im
particularly interested in procedurally generated models such as the
PaperPlane example included in the last release.
I've made a little (very un-optimized) class which iterates over a
bitmap, and creates colored cubes for each pixel, not useful in
itself but cetainly good for understanding how models are represented
in P3D.
demo - http://www.freesome.com/flobs/papervision3Dextrude1.swf
class - http://www.freesome.com/flobs/Sprite3D.as
A couple of questions from this experiment...
1) Materials. At the moment each pixel is represented by a cube with
six materials (varying shades of the pixel color - until we have
lights). I store each of these generated materials, then have a
method to push all these materials into the scene. Question - would
it make sense to add a "materials" array to DisplayObject3D which
would automatically be added to the scene when the object is added?
2) Glitches. At certain rotations the join marks of the individual
cubes are visible - i'm guessing this is as im not sharing vertices
between adjacent cubes - this is intentional as once we have child-
objects i want to be able to manipulate each cube seperatly - is
there any way round the glitch other than having a separate shared
vertex version for when all cubes are in their default position?
Great stuff everyone - the most fun i've had alone in my office for
years ;)
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070105/964f8388/attachment.htm
More information about the Papervision3D
mailing list