User Clip Planes // OpenGL Tutorial #44

Опубликовано: 20 Апрель 2026
на канале: OGLDEV
4,323
137

In this video we learn how to use user clip planes in OpenGL in order to dynamically cut the geometry.

🔥 See the list of the books that I'm using as background information for my tutorials: https://ogldev.org/books.html. I highly recommend them for learning more about OpenGL and Vulkan. These are affiliate links so if you use them to buy any of the books the price is the same for you and I will get a small commission (thank-you!).

Use the keys 'f', 'v', 'c' and 'x' to play with the clip plane.

Timecodes:
0:00 Intro
01:43 Geometric planes background
04:04 Relationship between 'd' and the normal
05:42 Distance between a point and a plane
06:17 User Clip Planes and OpenGL
08:07 Implementation
12:24 Outro

Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at    • All OpenGL Tutorials  

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 'TUTORIAL44'.

OpenGL 4.6 specification: https://www.khronos.org/registry/Open...

Feel free to comment below.

Credits:
Music from StreamBeats by Harris Heller (https://www.senpai.tv/streambeats/)
‪@harrisheller‬
‪@Senpai‬

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  

Enjoy,

Etay Meiri

#opengl #ogldev #opengtutorials