[Papervision3D] Cube primitive with different materials on each side
Kelvin Luck
kelvin at kelvinluck.com
Mon Apr 2 08:57:37 EDT 2007
Hi,
I've just started playing around with Papervision (and AS3) this morning
and I'm loving it :) After a long time lurking on the list I'm still
surprised at how easy it is to use...
Anyway, the first thing I did was create a spinning cube. I needed a
different material on each side of the cube and noticed that this hadn't
yet been implemented (although there was a message on the list [1] a
while back where Carlos suggested that he thought being able to pass a
materials list into the Cube constructor made sense). So I went ahead
and hacked support for this into the Cube class. It's almost certainly
not done the best way (like I said, I only started AS3 today) but could
maybe be useful to someone so I've put it up here:
http://www.kelvinluck.com/assets/papervision3d/cube_tweaks/
Hope it helps someone,
Kelvin :)
[1]
http://osflash.org/pipermail/papervision3d_osflash.org/2007-March/002929.html
More information about the Papervision3D
mailing list