How to scale UVs in BitmapMaterials?

Software: Away3D 4.x

Jason Latta, Newbie
Posted: 09 September 2011 07:08 PM   Total Posts: 16

I have tried the following:

var targetSideMat:BitmapMaterial = new BitmapMaterial(new targetBitmapSide().bitmapDatatruetrue);
targetSideMat.lights [light1,light2,light3];
targetSideMat.specular .6;
targetSideMat.alphaBlending true;
targetSideMat.animateUVs true;

var 
targetSides3:Cylinder = new Cylinder(targetSideMat,435,435,300,24,1,falsefalse);
targetSides3.position = new Vector3D(0,0,150);
targetSides3.rotationX = -90;
targetSides3.subMeshes[0].scaleU 6;
targetSides3.material.bothSides true;
targetContainer.addChild(targetSides3); 

But I get this error

WarninganimateUVs is set to true with an IRenderable without a uvTransformIdentity matrix assumed

I am not sure where I read to use “targetSideMat.animateUVs = true” but it works for a .3DS file I loaded but not for a simple cylinder without giving that error/warning.

What is the proper way?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X