OpenGL Tutorial 54: Occlusion Queries
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):
https://www.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):
https://www.dropbox.com/sh/syn3i78zfup6oki/AADoo9mfYxSabCpjZXQ5cbAJa?dl=0
Finished Code:
https://www.dropbox.com/sh/qkzbzfyltc3kjdx/AACOUY8kkwb5sjXknb_rWbsma?dl=0
Finished Code on GitHub:
https://github.com/TheThinMatrix/OcclusionQueries
Article about occlusion queries:
http://developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch29.html
Support the series on Patreon: https://www.patreon.com/thinmatrix
Facebook Page: https://www.facebook.com/thinmatrix
Twitter: https://twitter.com/ThinMatrix
Tumblr: http://thinmatrix.tumblr.com/
Instagram: http://instagram.com/thin_matrix
Check out my game on IndieDB: http://www.indiedb.com/games/equilinox
End of video music- Kai Engel, "Waking Stars":
http://freemusicarchive.org/music/Kai_Engel/Evening_Colors/01_-_Waking_Stars