uv shifting and scaling

Software: Away3D 4.x

mcarp, Newbie
Posted: 05 February 2015 05:14 AM   Total Posts: 2

so theres this mesh.geometry.scaleUV(u, v);
where the ache is the equivalent offsetUV or shiftUV??

   

mcarp, Newbie
Posted: 05 February 2015 06:53 AM   Total Posts: 2   [ # 1 ]

eh hurm…. er nm, this works

var mat:TextureMaterial = new TextureMaterial(Cast.bitmapTexture(new ImageEmbed()));
 
mat.animateUVs true;
.
.
.
mesh.material _babel;
mesh.material.repeat true;
mesh.subMeshes[0].offsetU i/33.0 1/33.0;
mesh.subMeshes[0].offsetV = -j/31.0 2/31.0;
mesh.subMeshes[0].scaleU 33.0;
mesh.subMeshes[0].scaleV 31.0
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X