What's the meaning of m34 of the structure CATransform3D, I only know it can change the perspective, but what's the meaning when the value is -0.001 and 0.001?
相关问题
- My CALayer transform holds after animation, but th
- How to create a 3D perspective image with one elem
- gluPerspective code messy
- EaselJS perspective image transformation
- Perspective Image Transformation with tiling
相关文章
- Perspective Image Transformation with tiling
- CATransform3D rotate causes half of image to disap
- CSS 3 Perspective and z-index incompatibility
- How to texture a random convex quad in openGL
- Projecting a 3D point to 2D screen space using a p
- Custom Eclipse perspective, with initially invisbl
- Could I get a basic explanation of CATransform3DId
- Calculate absolute dimensions of a div rotated in
I read some articles including this one: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CoreAnimation_guide/AdvancedAnimationTricks/AdvancedAnimationTricks.html#//apple_ref/doc/uid/TP40004514-CH8-SW13
My resolutions is here:
Entities:
eye
- distance from screen to eyescale
- visual scale of transformed objectdistance
- distance to transformed objectConnecting formulas:
scale = eye / (eye + distance)
distance = eye * (1.0/scale - scale)
eye = distance / (1.0/scale - scale)
Example of computing z-distance for desized scale of selected eye distance:
You can find the full details here. Note that Apple uses the reversed multiplication order for projection (relative to the given link) so all matrix multiplications are reversed and all matrices are transposed.
A short description of the meaning: