In this video I describe several methods that you can use in order to debug your OpenGL code, on the application side as well as on the shader side.
If you are not familiar with STB image you can check out my texture mapping tutorial at: • Basic Texture Mapping ...
Get the stb_image_write.h from my git repo below or from the original location: github.com/nothings/stb/blob/...
Online resource on debugging: learnopengl.com/In-Practice/D...
Make sure to 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/
OpenGL 4.6 specification: www.khronos.org/registry/Open...
Feel free to comment below.
Timecodes
0:00 Intro
0:34 Method #1: glGetError()
3:49 Method #2: Debug Context
9:09 Method #3: External Tools
12:25 Method #4: Geometry first, pixel second
15:11 Method #5: Use the framebuffer for step by step debugging
16:57 Method #6: Read the framebuffer values
19:12 Conclusion
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:
Video by cottonbro from Pexels
Video by Artem Podrez from Pexels
Video by Atakan Ozkan from Pexels
Video by Mikhail Nilov from Pexels
Image by Clker-Free-Vector-Images from Pixabay
Image by Gustavo Rezende from Pixabay
Image by Schmidsi from Pixabay
Sounds effect by Patricia Celso (youtube)
Sound effects by CLEREMTV (youtube)
Music: "Behold the Sun" by Topher Mohr and Alex Elena (youtube audio library)
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials
Негізгі бет Debugging Your OpenGL Code // OpenGL Tutorial #30
Пікірлер: 57