Ok I 've got this site with a papervision-based 3d transition; basically the page gets cut into a grid of 3d squares that flip to reveal the next page.
So I have this function that takes ob1:DisplayObject as a parameter
pageFrontBmp = new BitmapData(obj1.width,obj1.height);
pageFrontBmp.draw(obj1)
for(var currCol:Number = 0;currCol<=3;currCol++){
currCoordY = sqrSize*currCol
for(var currRow:Number = 0; currRow<=3;currRow++){
currCoordX = sqrSize*currRow
bmpFront.copyPixels(pageFrontBmp,new Rectangle(currCoordX,currCoordY,sqrSize,sqrSize),new Point(0,0));
var square3d:Square3D = new Square3D(sqrSize,bmpFront,bmpBack)
square3d.planeFront.x=currCoordX
square3d.planeFront.y=currCoordY
square3d.go()
trace(square3d)
square.push(square3d)
scene.addChild(square[square.length-1].planeFront)
}//end of for loops for colons
}//end of for loop for rows
square3D is a custom class that holds two papervision planes, one for the front, and one for the back.
What is weird is: the 3d square gets the right x and y, and is placed where it should be, on the screen; but the bitmapData applied on the face is always the same, a weird squished part of my main pageFrontBmp, I can’t even understand which part.
Anyone understands what the problem is?
Ps: edit: a weird squished FLIPPED part of the original image