Рет қаралды 4,758
In this video we use the Tessellation feature in OpenGL 4.0 in order to render a Cubic Bezier Curve.
This video is based on the "OpenGL 4 Shading Language Cookbook" 3rd edition by David Wolff (pages: 299-305).
Timecodes:
00:00 Intro
01:03 Overview
02:30 The Patch
03:58 The role of the Vertex Shader
04:39 Tessellation Control Shader
06:30 The Tessellator (TPG)
08:07 Tessellation Evaluation Shader
09:15 Creating a Bezier Curve
12:27 Code review
16:14 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 'TUT_47_BEZIER_CURVE'
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:
Images:
* By Maurizio Pesce from Milan, Italia - Elon Musk, Tesla Factory, Fremont (CA, USA), CC BY 2.0, commons.wikimedia.org/w/index...
* Mr Beast - en.wikipedia.org/wiki/MrBeast...
* The Terminator by Gerhard Janson from Pixabay
* NVIDIA by Nana Dua from Pixabay
* Smartphone by 巻(Maki) from Pixabay
* Renault Logos from logowik.com
* Renault by Günther Schneider from Pixabay
* Renault by Emslichter from Pixabay
Videos:
* Circuit board by Tomislav Jakupec from Pixabay
* Blending functions by William McDonald from Pixabay
Music:
* Track: Calypso - Next Route [Audio Library Release]
Music provided by Audio Library Plus
Watch: bit.ly/3RSDTNI
Free Download / Stream: alplus.io/calypso
* Sound effects from zapsplat.com
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials