Frustum Culling // Terrain Rendering episode #9
In this video we implement Frustum Culling in order to avoid rendering patches which are outside the camera's field of view.
"Focus on 3D Terrain Programming" by Trenk Polack: https://www.amazon.com/Focus-Terrain-Programming-Game-Development/dp/1592000282
Timecodes:
0:00 Intro
0:38 Example
2:40 Frustum Culling for terrains
3:33 Recap of the 3D pipeline
5:31 Clipper example
6:42 Method #1: View Space Culling
8:06 Code review
11:02 Demo #1
11:29 Method #2: World Space Culling
16:38 Code review
19:54 A problem with the implementation
20:40 Next steps and outro
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at https://youtube.com/playlist?list=PLA0dXqQjCx0S04ntJKUftl6OaOgsiwHjA
Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: https://github.com/emeiri/ogldev/blob/master/Terrain9
If you want to get the same version of the code that was used in the video checkout the tag 'TERRAIN9'.
OpenGL 4.6 specification: https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf
Feel free to comment below.
Email: ogldev1@gmail.com
Instagram: @ogldev1
Github: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon: https://www.patreon.com/ogldev
Credits:
Track: Eight — Land of Fire [Audio Library Release]
Music provided by Audio Library Plus
Watch: https://www.youtube.com/watch?v=lvL3L9HzMYY&t=0s
Free Download / Stream: https://alplus.io/eight
Sound effects obtained from https://www.zapsplat.com
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials
Видео Frustum Culling // Terrain Rendering episode #9 автора JavaScript: разработка социальных сетей
Видео Frustum Culling // Terrain Rendering episode #9 автора JavaScript: разработка социальных сетей
Информация
4 декабря 2023 г. 17:48:39
00:21:44
Похожие видео