Uploaded July 2017 | Updated November 2026, 3 hours ago
Tutorial about OpenGL occlusion queries with an example of how they can be used for lens flare effects.
Try out the runnable demo (Windows only):
dropbox.com/s/86kh0p7usc2dwoz/Demo.jar?dl=0
Starting code download (needs to be set up in a project with lwjgl.jar, lwjgl_utils.jar, and PNGDecoder jar, as well as the relevant natives):
dropbox.com/sh/syn3i78zfup6oki/AADoo9mfYxSabCpjZXQ5cbAJa?dl=0
Finished Code:
dropbox.com/sh/qkzbzfyltc3kjdx/AACOUY8kkwb5sjXknb_rWbsma?dl=0
Finished Code on GitHub:
github.com/TheThinMatrix/OcclusionQueries
Article about occlusion queries:
developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch29.html
Support the series on Patreon: patreon.com/thinmatrix
Facebook Page: facebook.com/thinmatrix
Twitter: twitter.com/ThinMatrix
Tumblr: thinmatrix.tumblr.com
Instagram: instagram.com/thin_matrix
Check out my game on IndieDB: indiedb.com/games/equilinox
End of video music- Kai Engel, "Waking Stars":
freemusicarchive.org/music/Kai_Engel/Evening_Colors/01_-_Waking_Stars
Tutorial about OpenGL occlusion queries with an example of how they can be used for lens flare effects.
Try out the runnable demo (Windows only):
dropbox.com/s/86kh0p7usc2dwoz/Demo.jar?dl=0
Starting code download (needs to be set up in a project with lwjgl.jar, lwjgl_utils.jar, and PNGDecoder jar, as well as the relevant natives):
dropbox.com/sh/syn3i78zfup6oki/AADoo9mfYxSabCpjZXQ5cbAJa?dl=0
Finished Code:
dropbox.com/sh/qkzbzfyltc3kjdx/AACOUY8kkwb5sjXknb_rWbsma?dl=0
Finished Code on GitHub:
github.com/TheThinMatrix/OcclusionQueries
Article about occlusion queries:
developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch29.html
Support the series on Patreon: patreon.com/thinmatrix
Facebook Page: facebook.com/thinmatrix
Twitter: twitter.com/ThinMatrix
Tumblr: thinmatrix.tumblr.com
Instagram: instagram.com/thin_matrix
Check out my game on IndieDB: indiedb.com/games/equilinox
End of video music- Kai Engel, "Waking Stars":
freemusicarchive.org/music/Kai_Engel/Evening_Colors/01_-_Waking_Stars










