Рет қаралды 5,528
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: www.amazon.com/Focus-Terrain-...
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 • OpenGL for Beginners
Please visit ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: github.com/emeiri/ogldev/blob...
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: www.khronos.org/registry/Open...
Feel free to comment below.
Email: ogldev1@gmail.com
Instagram: @ogldev1
Github: github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): ogldev.org/donate.html
Patreon: / ogldev
Credits:
Track: Eight - Land of Fire [Audio Library Release]
Music provided by Audio Library Plus
Watch: • Eight - Land of Fire |...
Free Download / Stream: alplus.io/eight
Sound effects obtained from www.zapsplat.com
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials