Use regular Cube and pass cubedata. You can then define each sides materials

Sent from an iPhone without Flash

On Apr 17, 2010, at 17:54, Dimi <[email protected]> wrote:

Hi all.

I have been trying to understand how the cube builds up but i cant
figure out the variables for the bottom left right top.

I have the following code.

----------
var wireColorMaterial:WireColorMaterial = new WireColorMaterial();
       wireColorMaterial.color = 0xFFA500;
       wireColorMaterial.wireColor = 0xFF0000;



       cube = new Cube6();
       cube.width = 200;
       cube.height = 100;
       cube.depth = 300;
       cube.material = wireColorMaterial;
--------

I can change the color on all sides with this one.
But i would like to be able to manage side by side.

The only thing i have found about this is the following code fomr
flashmagazine.

---------
cube.cubeMaterials.left = new ColorMaterial(0xffffff,{alpha:.3});
---------

But no matter how i manipulate that code it wont work.

Can anyone help me please?

br
Dimi


--
Subscription settings: http://groups.google.com/group/away3d-dev/subscribe?hl=en

Reply via email to