How to Scale 3D Models in OpenGL – An Awesome Insight!

Опубликовано: 28 Март 2026
на канале: Code Imposter
675
16

Learn everything you need to know about scaling 3D models with OpenGL mathematics (GLM) in about 10 minutes. In the previous tutorial we looked at how 3x3 matrices can be used to rotate models. This tutorial continues on from there by explaining how scaling can be combined with rotations.

Just as we did last time, we start by using GLM to create our matrices for us, and then we compare those results to our own scaling rotation code that we enter directly inside the vertex shader.

Video 1:    • How to rotate 3D Models in OpenGL – An Awe...  
Video 2: How to Scale 3D Models in OpenGL... You're watching it now :)
Video 3:    • How to Translate (Move) 3D Models in OpenG...  
Video 4:    • How to Shear Transform 3D Models in OpenGL...  

00:00 - Introduction to scaling 3D Models with OpenGL
01:50 - Complications of scaling directly inside the vertex shader
03:36 - What does scaling rotated models look like geometrically?
06:34 - How to combine scaling matrices with rotation matrices
08:23 - Combining scaling with rotations (without GLM Maths)