Тёмный

Billboarding With The Geometry Shader // OpenGL Tutorial #45 

OGLDEV
Подписаться 10 тыс.
Просмотров 3,6 тыс.
50% 1

This video is an introduction to the Geometry Shader in OpenGL. We use the Geometry Shader to develop a billboarding demo where a texture is always presented in front of the camera.
Timecodes:
0:00 Introduction
0:56 Geometry Shader overview
3:59 Demo 1
5:52 GS code review
8:47 Demo 2 - Billboarding
10:20 Demo 2 code review
11:59 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_45_BILLBOARDING'.
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:
* Sounds from zapsplat
* Music | "Lose You" by LiQWYD
Watch: • LiQWYD - Lose You [Off...
License: www.liqwydmusic.com/how-to-use
Download/Stream: hypeddit.com/liqwyd/loseyou-free
* Images by OpenClipart-Vectors from Pixabay
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials

Опубликовано:

 

24 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@OGLDEV
@OGLDEV 11 месяцев назад
Clone the sources: git clone --recurse-submodules github.com/emeiri/ogldev.git If you want to get the same version that was used in the video you can checkout the tag 'TUT_45_BILLBOARDING'. Build on Linux: cd ogldev/tutorial45_youtube && ./build.sh Build on Windows: Open the Visual Studio solution: ogldev\Windows\ogldev_vs_2022\ogldev_vs_2022.sln Build the project 'OpenGL Tutorials\Tutorial45' Things to try: - The Billboard presented here may not be optimal because it "grows" from the bottom left corner which mean that it turns around this corner which looks a bit weird. With a minor change you can make it turn around its center.
@SkyGrel19
@SkyGrel19 11 месяцев назад
Very clear explanation of GS, thank you!
@OGLDEV
@OGLDEV 11 месяцев назад
Glad you enjoyed it!
@cheerwizard21
@cheerwizard21 8 месяцев назад
Horror intro 👀😄 Thanks for tutorial!
@OGLDEV
@OGLDEV 8 месяцев назад
No problem 😊
@idratherbewithmycatrightnow
@idratherbewithmycatrightnow 10 месяцев назад
Is this method for billboarding more efficient than instancing? Love your videos btw they are a godsend 🙏
@OGLDEV
@OGLDEV 10 месяцев назад
Thanks! It is difficult to say up front which is more efficient. There may be differences between hw vendors and drivers. The GS approach sends less data to the GPU but the extra vertices will be generated on the GPU anyway. I think the calculations with the GS approach are simpler.
@idratherbewithmycatrightnow
@idratherbewithmycatrightnow 9 месяцев назад
@@OGLDEV I wish youtube sent me a notification of your answer... Thanks so much again! I will go with your method thank you!
@miguelmyers8929
@miguelmyers8929 11 месяцев назад
do you have any video on how to generate normal maps?
@OGLDEV
@OGLDEV 10 месяцев назад
Sorry, I don't have a video about that. AFAIK, you usually accomplish that using tools like gimp or Photoshop.
@_jose_antonio_
@_jose_antonio_ 8 месяцев назад
this white code editor burns my eyes, but great tutorial.
@OGLDEV
@OGLDEV 8 месяцев назад
Thanks! In the last two tutorials I've switched to a dark theme.
Далее
Introduction To Tessellation // OpenGL Tutorial #47
16:57
Introduction to shaders: Learn the basics!
34:50
Просмотров 304 тыс.
Maybe i need to add instructions @popflexactive
00:14
It seems Sonya's choice was obvious! 😅 #cat #cats
00:20
How Do Games Render So Much Grass?
15:52
Просмотров 322 тыс.
Modern OpenGL Tutorial - Tessellation Shaders
7:59
Просмотров 18 тыс.
Bevy: A quick introduction
7:20
Просмотров 555
GRASS RENDERING in OpenGL // Code Review
47:23
Просмотров 115 тыс.
How Ray Tracing Works - Computerphile
20:23
Просмотров 81 тыс.
An introduction to Shader Art Coding
22:40
Просмотров 944 тыс.
We Need to Rethink Exercise - The Workout Paradox
12:00
OpenGL Tutorial 49: Geometry Shader Introduction
11:48
Просмотров 104 тыс.
Maybe i need to add instructions @popflexactive
00:14