Published On Jun 13, 2023
In this video we use binlinear interpolation on the hightmap to find the hight at the position of the camera so we can properly move it at the ground level.
"Focus on 3D Terrain Programming" by Trenk Polack: https://www.amazon.com/Focus-Terrain-...
Alternative method by @ThinMatrix: • OpenGL 3D Game Tutorial 22: Terrain C...
Timecodes:
0:00 Intro and background
1:53 Bilinear interpolation
2:56 Alternative method by ThinMatrix
3:43 Code review
6:12 Fake walking
6:58 Outro
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at • OpenGL for Beginners
Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: https://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 'TERRAIN10'.
OpenGL 4.6 specification: https://www.khronos.org/registry/Open...
Feel free to comment below.
Email: [email protected]
Instagram: @ogldev1
Github: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon: / ogldev
Music credits:
----
Scandinavianz - Visby
Creative Commons - Attribution 3.0 Unported (CC BY 3.0)
Free Download: hypeddit.com/scandinavianz/visby
---
Almost There by Artificial.Music / artificial-music Creative Commons — Attribution 3.0 Unported — CC BY 3.0 Free Download: https://bit.ly/3WwcxwW Music promoted by Audio Library
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials