Billboarding With The Geometry Shader // OpenGL Tutorial #45

  Рет қаралды 3,628

OGLDEV

OGLDEV

Күн бұрын

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

Пікірлер: 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 11 ай бұрын
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
Transformer Neural Networks Derived from Scratch
18:08
Algorithmic Simplicity
Рет қаралды 131 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 169 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 9 МЛН
How to Program in C# - Loops (E04)
18:28
Brackeys
Рет қаралды 486 М.
Normal Mapping Adventures // OpenGL Intermediate Series
18:42
Introduction to shaders: Learn the basics!
34:50
Barney Codes
Рет қаралды 305 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,7 МЛН
Bevy: A quick introduction
7:20
Isaac Corbrey
Рет қаралды 698
3D Gaussian Splatting! - Computerphile
17:40
Computerphile
Рет қаралды 124 М.
GRASS RENDERING in OpenGL // Code Review
47:23
The Cherno
Рет қаралды 115 М.
The OpenGL Software Ecosystem
13:51
OGLDEV
Рет қаралды 4,3 М.
A Competition for Unreadable Code?
12:33
LaurieWired
Рет қаралды 157 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 169 МЛН