Camera/View Space // OpenGL Tutorial #13

Опубликовано: 09 Январь 2025
на канале: OGLDEV
21,830
558

AEJuice Free Plugins https://aejuice.com/free-plugins/?ref...
AEJuice I Want It All Bundle https://aejuice.com/product/i-want-it...
AEJuice YouTube Channel    / @aejuice  

In this video I describe the Camera/View space and provide a full overview of all the coordinate system transitions that are involved in 3D rendering. For the camera I use a well known model called the UVN camera and I describe the steps for creating the camera/view transformation matrix based on that model.

Watch all the previous tutorials in the "OpenGL For Beginners" playlist at    • OpenGL for Beginners  

Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.

Link to source: https://github.com/emeiri/ogldev/blob...
If you want to get the same version that was used in the video checkout the tag TUT_13_CAMERA_SPACE.

OpenGL 4.6 specification: https://www.khronos.org/registry/Open...

🔥 I'm using the following books as background information for my tutorials and I highly recommend them for learning more about OpenGL and Vulkan.
These are affiliate links so if you use them to buy the books the price is the same for you and I will get a small commision (thank-you!).

📖 OpenGL 4 Shading Language Cookbook - Third Edition: Build high-quality, real-time 3D graphics with OpenGL 4.6, GLSL 4.6 and C++17 3rd ed. Edition: https://amzn.to/3XO2J3S

📖 3D Graphics Rendering Cookbook: A comprehensive guide to exploring rendering algorithms in modern OpenGL and Vulkan: https://amzn.to/3MMJQbf
(Watch my short video review on this book:    • The 2nd book I'm using for my Vulkan ...  )

📖 Vulkan Programming Guide: The Official Guide to Learning Vulkan: https://amzn.to/3XwBjhr
(Watch my short video review on this book:    • The book I'm using for my Vulkan seri...  )

Timecodes
0:00 Intro
0:30 Background
1:18 Local Coordinate System
1:42 World Coordinate System
3:15 Camera / View Coordinate System
4:43 Camera / View Transformation
5:40 Coordinate Systems Summary
6:48 The WVP matrix
7:38 Building the view transformation
8:45 The UVN camera model
11:45 Coordinate system change of basis
15:02 Chage of basis in matrix form
17:03 Code review
20:42 Conclusion

Feel free to comment below.

Email: [email protected]
Facebook:   / ogldev-188319114585587  
Github: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon:   / ogldev  

Credits:
Music - "Summer" from https://bensound.com
View Frustum image: https://upload.wikimedia.org/wikipedi... (MithrandirMage, CC BY-SA 3.0 https://creativecommons.org/licenses/..., via Wikimedia Commons)

Enjoy,

Etay Meiri

#opengl #ogldev #opengtutorials