Billboarding With The Geometry Shader // OpenGL Tutorial #45

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

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 9 ай бұрын
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 9 ай бұрын
Very clear explanation of GS, thank you!
@OGLDEV
@OGLDEV 9 ай бұрын
Glad you enjoyed it!
@cheerwizard21
@cheerwizard21 6 ай бұрын
Horror intro 👀😄 Thanks for tutorial!
@OGLDEV
@OGLDEV 6 ай бұрын
No problem 😊
@idratherbewithmycatrightnow
@idratherbewithmycatrightnow 8 ай бұрын
Is this method for billboarding more efficient than instancing? Love your videos btw they are a godsend 🙏
@OGLDEV
@OGLDEV 8 ай бұрын
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 8 ай бұрын
@@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 9 ай бұрын
do you have any video on how to generate normal maps?
@OGLDEV
@OGLDEV 9 ай бұрын
Sorry, I don't have a video about that. AFAIK, you usually accomplish that using tools like gimp or Photoshop.
@_jose_antonio_
@_jose_antonio_ 7 ай бұрын
this white code editor burns my eyes, but great tutorial.
@OGLDEV
@OGLDEV 7 ай бұрын
Thanks! In the last two tutorials I've switched to a dark theme.
Introduction To Tessellation // OpenGL Tutorial #47
16:57
OGLDEV
Рет қаралды 4,8 М.
The OpenGL Software Ecosystem
13:51
OGLDEV
Рет қаралды 715
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 59 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 12 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
Introduction to shaders: Learn the basics!
34:50
Barney Codes
Рет қаралды 279 М.
All OpenGL Effects!
30:21
Low Level Game Dev
Рет қаралды 55 М.
Rotations in 3D Graphics With Quaternions
8:23
Manifolds in Maryland
Рет қаралды 6 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 911 М.
Render a Wireframe On a Solid Mesh // OpenGL Tutorial #49
10:11
How To Render CIRCLES (OpenGL/Vulkan/DirectX/Metal)
39:56
The Cherno
Рет қаралды 95 М.
Programming Particle Effects in my Game Engine
13:00
ThinMatrix
Рет қаралды 77 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 595 М.
Quad Tessellation // OpenGL Tutorial #51
9:40
OGLDEV
Рет қаралды 2,7 М.
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 59 МЛН