Just tried this and it works:
var poli:RegularPolygon = new RegularPolygon({radius:750, sides:12});
var bmd:BitmapData = new BitmapData(400, 400, false, 0xFF0000);
bmd.perlinNoise(10, 10, 8, 1, false, true);
poli.material = new BitmapMaterial(bmd);
poli.bothsides = true;
_scene.addChild(poli);
On Wed, Feb 18, 2009 at 1:29 AM, Lucas Guilherme <[email protected]> wrote:
> Hello,
>
> I'm a beginner of away3d.
> Is it possible to apply BitmapMaterial in a polygon? Like in a plane:
>
> plane = new
> Plane({*material:my_material*,width:250,height:250,x:0,y:30,segmentsH:1,
> segmentsW:1});
>
> I'm creating my poligon like this:
>
> polygon = new RegularPolygon({radius:20000,sides:5});
>
> and want to apply some texture, material on my polygon.
>
> BR,
> LĂbiny
>