Debugging Your OpenGL Code // OpenGL Tutorial #30

preview_player
Показать описание
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.

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

Twitter: @ogldev

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
Рекомендации по теме
Комментарии
Автор

You are an OpenGL god. Thanks for all the tutorials

dan_pal
Автор

I’ve been working with OpenGL for years. Debugging this black box is always a rocky road. Thank you for this tutorial, I found out a lot of new.

serheiartuh
Автор

This tutorial was very useful, thanks! I've been working with OpenGL for years now and some of these techniques are ones I wasn't aware of or haven't thought of.

FrankGennari
Автор

I don't remember exactly how I found you. I had a BIG problem as I am learning OpenGL (modern). But your video and the comment down saved me and I could after some days find all issues I had.
So, thank you very much.. If I could find this video earlier for sure I could resolve my issues also earlier.
Thank you very much.

kumu
Автор

holy shit this works so much better than the ole "Stare at the monitor until random quantum fluctuations results in the solution manifesting itself to you" method.

onogrirwin
Автор

You saved a tonns of hours for me, thx

БорисНайман-жх
Автор

This is great! I wish I'd seen it 2 years ago :-)

PaulEmsley
Автор

Thanks for ur video. I really recomend renderdoc to people who encounter problems. It is awesome.

gokalpates
Автор

My compiler can't resolve glDebugMessageCallback() and glDebugMessageControl(). Do I need some additional package?

PaCCKal
Автор

In my opinion as a beginner, debugging tool such as RenderDoc should be introduced in any graphics programming tutorial on the first day, after drawing the first triangle.

linearz
Автор

I could not install APITRACE, it seems the package used to exist but not anymore, on install I get "unable to locate package" and even looking apitrace up in the ubuntu repository gives no result. I tried first to install it by cloning the git repository and following instructions, it installed without problem and the apitrace command works, but the command for gui qapitrace isn't available anyway. Same as with apitrace, the bash suggest installing the apitrace-gui package that no longer exists. I looked into it in docs and found out that Qt version 5.2.1+ is required, but I struggle to find a way to install it.

MrFacciolone
Автор

Wow I've been using the DebugMessageCallback without "DebugOutputSynchronous" for months, thanks for that lol

kermalis
Автор

renderdoc won't work unless with gl context 3.2. my opengl app is using gles 2.0 :(

I'll check apitrace

glowiever
Автор

can i use freeglut with opengl 2.0 o more with glsl language? o it work just with glfw?

MrMariozzz
Автор

Glut hasn't been widely used in several years. Neither has header guards.

prezadent