¡@

Home 

2014/10/15 ¤U¤È 10:11:13

iphone Programming Glossary: m34

Where can I find an explanation of all transform matrix fields?

http://stackoverflow.com/questions/1260741/where-can-i-find-an-explanation-of-all-transform-matrix-fields

That struct looks like this struct CATransform3D CGFloat m11 m12 m13 m14 CGFloat m21 m22 m23 m24 CGFloat m31 m32 m33 m34 CGFloat m41 m42 m43 m44 typedef struct CATransform3D CATransform3D This is simply a 4x4 transform matrix used to transform..

How do I create/render a UIImage from a 3D transformed UIImageView?

http://stackoverflow.com/questions/1949003/how-do-i-create-render-a-uiimage-from-a-3d-transformed-uiimageview

void transformImage float degrees 12.0 float zDistance 250 CATransform3D transform3D CATransform3DIdentity transform3D.m34 1.0 zDistance the m34 cell of the matrix controls perspective and zDistance affects the sharpness of the transform transform3D.. degrees 12.0 float zDistance 250 CATransform3D transform3D CATransform3DIdentity transform3D.m34 1.0 zDistance the m34 cell of the matrix controls perspective and zDistance affects the sharpness of the transform transform3D CATransform3DRotate.. void transformImage float degrees 12.0 float zDistance 250 CATransform3D transform3D CATransform3DIdentity transform3D.m34 1.0 zDistance the m34 cell of the matrix controls perspective and zDistance affects the sharpness of the transform transform3D..

iPhone image stretching (skew)

http://stackoverflow.com/questions/2351586/iphone-image-stretching-skew

the structure definition is struct CATransform3D CGFloat m11 m12 m13 m14 CGFloat m21 m22 m23 m24 CGFloat m31 m32 m33 m34 CGFloat m41 m42 m43 m44 typedef struct CATransform3D CATransform3D So you can directly change the matrix elements instead..

How do I stack images to simulate depth using Core Animation?

http://stackoverflow.com/questions/2834985/how-do-i-stack-images-to-simulate-depth-using-core-animation

three rotate image 3 around the z axis THIS IS INCORRECT CATransform3D theTransform three.layer.transform theTransform.m34 1.0 1000 three.layer.transform theTransform display image 2 UIImageView two UIImageView alloc initWithImage UIImage imageNamed.. addSubview one rotate image 3 around the z axis THIS IS INCORRECT theTransform one.layer.transform theTransform.m34 1.0 1000 one.layer.transform theTransform release the images one release two release three release rotate the parent view.. images one release two release three release CATransform3D theTransform self.view.layer.sublayerTransform theTransform.m34 1.0 500 self.view.layer.sublayerTransform theTransform super viewDidLoad In your code you are only setting the perpective..

How do I apply a perspective transform to a UIView?

http://stackoverflow.com/questions/347721/how-do-i-apply-a-perspective-transform-to-a-uiview

trick to get perspective working as described here is to directly access one of the matrix cells of the CATransform3D m34 . Matrix math has never been my thing so I can't explain exactly why this works but it does. You'll need to set this value.. layer myView.layer CATransform3D rotationAndPerspectiveTransform CATransform3DIdentity rotationAndPerspectiveTransform.m34 1.0 500 rotationAndPerspectiveTransform CATransform3DRotate rotationAndPerspectiveTransform 45.0f M_PI 180.0f 0.0f 1.0f..

objective-? CALayer UIView real rotation

http://stackoverflow.com/questions/8271416/objective-calayer-uiview-real-rotation

be able to achieve it something like this float distance 50 CATransform3D basicTrans CATransform3DIdentity basicTrans.m34 1.0 distance view.layer.transform CATransform3DRotate basicTrans M_PI_4 1.0f 0.0f 0.0f To achieve this effect you need to.. M_PI_4 1.0f 0.0f 0.0f To achieve this effect you need to manipulate one of the transformation values directly m34 . The lower distance gets the stronger the effect gets. Then you can do the rotation transformation around the x axis to..