Slightly blurred text and bitmaps AFTER 3d conversion

I have a series of movie clips containing both bitmaps and text. After applying some 3D transforms and moving around in 3d space, my text and bitmap images are slightly blurry. This AFTER I reset all three-dimensional coordinates (i.e. Z = 0, rotation X = 0, rotation Y = 0) has anyone else encountered this? Is there a solution to bring crisp text and bitmaps back?

+3
source share
4 answers

You need to make sure that the matrix3D property is set to null for any objects to which you applied the 3D transform.

+1
source

.

, . 3D- matrix3D :

myTextContainer.transform.matrix3D = null;

:

myTextContainer.transform.matrix = new Matrix();

flash.geom.Matrix.

reset x y , , , .

, , , . , .

12- , . 3D-, rotationY.

enter image description here

, 90%, :

enter image description here

.

, Flash Player 9/AVM2. , Flash-, , , - .

+2

3D- . 3D-, transfrom.matrix

var tempMatrix: Matrix = new Matrix();           this.transform.matrix = tempMatrix;

0

. , .

    /**
     * Fixes the slight distortion that occurs when an object has a 3D transform associated with it.
     * @param   di:DisplayObject    The DisplayOjbect to fix.
     */
    public function fix3DBlur(di:DisplayObject):void {
        di.scaleX = di.width / (di.width - 1);
        di.scaleY = di.height / (di.height - 1);
    }

X scaleY. , , 3D- , 3d, . 3DTransform, , .

I put this function in the Utilities3D class that I have.

0
source

Source: https://habr.com/ru/post/1731009/


All Articles