Рет қаралды 18,220
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 ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: 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: www.khronos.org/registry/Open...
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: ogldev1@gmail.com
Facebook: / ogldev-188319114585587
GIthub: github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): ogldev.org/donate.html
Patreon: / ogldev
My gear (Amazon affiliate links):
Camera - Canon EOS M50: amzn.to/3duVIOh
Camera mic - Rode Videomic: amzn.to/3dsGVDs
Desktop mic - Rode NT-USB-Mini: amzn.to/3giMoif
Credits:
Music - "Summer" from bensound.com
View Frustum image: upload.wikimedia.org/wikipedi... (MithrandirMage, CC BY-SA 3.0 creativecommons.org/licenses/..., via Wikimedia Commons)
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials