affine and 3d transforms for sprites