Hi I have a number of cubes touching each other to form a seemless surface. I am trying to apply a single image across the front faces of these cubes so it appears seemless.
I am using copyPixels to first 'slice' the source bitmapdata BEFORE I apply it to each of the cube front faces. it seems to work, no compile errors, however, the final bitmapData on each of the faces is scaled WAY too large for some strange reason. Each cube face image seems large and blurred. Copy pixels is straightforward, can't see why this isn't working. Can't see anything wrong with my code...pulling my hair out...any help appreciated!!! //CODE START var _frontBMD:BitmapData var _frontBM:BitmapMaterial //following in a loop, rectX and rectY defined on each iteration var rect:Rectangle = new Rectangle(rectX, rectY, 30, 30); var bmd2:BitmapData = new BitmapData(30, 30, false); var pt:Point = new Point(0, 0); bmd2.copyPixels(_frontBMD, rect, pt); _frontBM=new BitmapMaterial(bmd2); myCube.faces[0].material =_frontBM; //end loop //CODE END