Create your own Cubemap // Intermediate OpenGL Series

Опубликовано: 28 Февраль 2025
на канале: OGLDEV
2,798
126

🔥To try everything Brilliant has to offer—free—for a full 30 days, visit https://brilliant.org/OGLDEV/ . You’ll also get 20% off an annual premium subscription.

In this video we learn how to convert an Equirectangular Image to a cubemap in OpenGL. The result can then be used for Skybox rendering.

🔥 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!).

📚 Timecodes 📚
0:00 Intro
01:00 Sponsored By Brilliant
02:16 Algorithm background
03:06 Start of code review
04:20 Traversing the cubemap
05:05 The Physics Coordinate System
10:09 The Spherical Coordinate System
12:06 The 2D texture coordinates
14:23 Initialize the OpenGL cubemap object
15:06 Bilinear sampling
15:30 Outro

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

This video was sponsored by Brilliant.

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:
🔹Image by Chen from https://Pixabay.com
🔹Video by Daniel from https://Pixabay.com
🔹Video by Julien Tromeur from https://Pixabay.com
🔹"Gemini" by The Soundings (Youtube Audio Library)
🔹"I Know That I Need You" by Bail Bonds (Youtube Audio Library)
🔹Sound effects and music by https://Zapsplat.com

Enjoy,

Etay Meiri

#opengl