The Endless Grid
OGLDEV OGLDEV
10.6K subscribers
3,384 views
259

 Published On Oct 1, 2024

In this video we learn how to create an infinite grid using OpenGL. It is based on an article from the '3D Graphics Rendering Cookbook' (see link below).

đź“š Timecodes đź“š
0:00 Intro and background
1:42 Start with two triangles
3:19 Locking the square to the camera
4:23 Output the world space position
4:47 Modulate the position by the grid cell size
6:25 GLSL derivative functions
11:10 Render the vertical lines
12:23 Stabilizing the derivatives
13:47 Improving the aliasing situation
14:35 Level Of Detail
18:50 Cell size per LOD
20:00 Use the correct alpha
20:33 The Opacity Factor
21:30 Outro

🔥 I'm using the following books as background information for my tutorials and I highly recommend them for learning more about OpenGL and Vulkan.
These are affiliate links so if you use them to buy the books the price is the same for you and I will get a small commision (thank-you!).

đź“– OpenGL 4 Shading Language Cookbook - Third Edition: Build high-quality, real-time 3D graphics with OpenGL 4.6, GLSL 4.6 and C++17 3rd ed. Edition: https://amzn.to/3XO2J3S

đź“– 3D Graphics Rendering Cookbook: A comprehensive guide to exploring rendering algorithms in modern OpenGL and Vulkan: https://amzn.to/3MMJQbf
(Watch my short video review on this book:    • The 2nd book I'm using for my Vulkan ...  )

đź“– Vulkan Programming Guide: The Official Guide to Learning Vulkan: https://amzn.to/3XwBjhr
(Watch my short video review on this book:    • The book I'm using for my Vulkan seri...  )

Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.

🔥Link to source:
https://github.com/emeiri/ogldev/tree...
If you want to get the same version of the code that was used in the video checkout the tag 'TUT_54_ENDLESS_GRID'

Feel free to comment below.

đź”—Contacts:
🔹Email: [email protected]
🔹Instagram: @ogldev1
🔹Github: https://github.com/emeiri/ogldev.git
🔹TikTok -   / ogldev  
🔹Twitter: @ogldev
🔹One time donations (Paypal): https://ogldev.org/donate.html
🔹Patreon:   / ogldev  

🙏Credits:
🔹Log image by wikipedia (https://commons.wikimedia.org/wiki/Fi...)
🔹Log image by Krishnavedala (https://commons.wikimedia.org/wiki/Fi...)
🔹Sound effects by https://zapsplat.com
🔹Music by Julius H. from https://Pixabay.com
🔹All Gone by LiQWYD / liqwyd
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / All Gone: https://tinyurl.com/y4a6at8j
Music promoted by Audio Library https://tinyurl.com/3x53jd8c
🔹Melody – Luke Bergs & Waesto
  / bergscloud  
  / waesto  
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://tinyurl.com/2x5b6nb6
Music promoted by Audio Library https://tinyurl.com/y6nsx9yz

Enjoy,

Etay Meiri

#vulkan

show more

Share/Embed