you need to declare a CubeMaterialsData object
and pass it to the roundedcube.

cubedata = new CubeMaterialsData({top:mat1,
                bottom:mat2,
                 front:mat3,
                 back:mat4,
                 left:mat5,
                 right:mat6})

mat1,2,3,4,5,6 can be all different


roundedcube = new RoundedCube({name:"roundedcube",
                 faces:cubedata,
                 width:_width,
                 depth:_depth,
                 height:_height,
                 radius:_radius,
                 subdivision:_subdivision,
                 cubicmapping:true,
                 bothsides:false});

Fabrice


On Oct 26, 2009, at 8:10 AM, h0mestar wrote:


Hey Guys,

Just getting started with Away3D - and I'm creating a 3D navigation
panel.

The objects are working fine, but I'm getting frustrated by materials.

As soon as I use BitmapMaterial to put a bitmap texture onto an
object, it squeezes the whole bitmap onto each face by default. That's
fine, but I can't find a single tutorial on the net that explains how
to change it, and control what appears on each face!

I'm using a rounded cube, and here's what I'm after -

1. Bitmap texture on the face that's facing the camera
2. Flat colour on the other 5 faces.

I don't know why this information doesn't seem to be available in
tutorials, but I can't find it!

Anyone feel like helping out a newbie on this one?

Best Regards,
Rick

Reply via email to