Learn everything you need to know about shearing 3D models with OpenGL mathematics (GLM) in under 10 minutes. A picture is worth a 1000 words, but an animation is worth a 1000 pictures.
A 3D Model shearing transformation requires a 3x3 matrix (just like rotation and scaling transformations do), and so I decided to explain how shearing works by comparing it to both rotations and scaling as you’ll see throughout this tutorial.
I’ve included various animations to help show you exactly how shearing transformations work, and as usual we implement the code directly inside the vertex shader to extend our understanding even further!
Video 1: • How to rotate 3D Model...
Video 2: • How to Scale 3D Models...
Video 3: • How to Translate (Move...
Video 4: How to Shear Transform 3D Models in OpenGL... You're watching it now :)
00:00 - Introduction to shearing 3D Models with OpenGL
00:55 - Grasping the basics of model shearing transformations
03:58 - 3D Model shearing GLM programming examples
05:24 - OpenGL... glm::shearX3D (Across X-Axis)
07:30 - OpenGL... glm::shearY3D (Across Y-Axis)
08:26 - OpenGL... glm::shearZ3D (Across Z-Axis)
09:20 - Combining shearing transformations with rotations
Негізгі бет How to Shear Transform 3D Models in OpenGL - An Awesome Insight!
Пікірлер: 2