Shadow Mapping Strikes Back // Intermediate OpenGL Series

  Рет қаралды 4,844

OGLDEV

OGLDEV

Күн бұрын

In this video we continue our journey with Shadow Mapping and we learn how to use Orthographic Projection in order to implement shadows with a directional light.
Watch the previous tutorial for background on Shadow Mapping: • Basic Shadow Mapping /...
Timecodes
00:00 Intro
00:23 Recap and background
01:36 Directional light VS spot light
02:15 Orthographic Projection background
03:41 Orthographic Projection matrix
05:18 Mapping the view volume to NDC
07:01 Creating the matrix
07:50 Right handed VS left handed system
08:08 Matrix code review
08:31 Testing Orthographic Projection
08:55 Changes to the main application code
10:06 Changes the lighting fragment shader
10:23 Conclusion
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...
OpenGL 4.6 specification: www.khronos.org/registry/Open...
Feel free to comment below.
Email: ogldev1@gmail.com
Github: github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): ogldev.org/donate.html
Patreon: / ogldev
Credits:
Model by TastyFish (blendswap.com/blend/20163)
Sun Image by OpenClipart-Vectors from Pixabay
CAD images:
* • Computer-aided design ...
* • Design Warehouse ,
* • reading structural dra...
Music: "Dream Avenue" by CreatorMix (creatormix.com/)
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials

Пікірлер: 14
@WesleySales1
@WesleySales1 Жыл бұрын
One more here! ✋🏼 Thanks for another great video for the community! Nice explanations.
@OGLDEV
@OGLDEV Жыл бұрын
Glad you enjoyed it!
@therealjtgill
@therealjtgill Жыл бұрын
This series is fantastic
@OGLDEV
@OGLDEV Жыл бұрын
Thank you :-)
@L.K.82
@L.K.82 Жыл бұрын
Great series. I like the way you explain the math behind it all. Out of curiosity: which approach for calculating a better bias do you choose for the upcoming tutorials?
@OGLDEV
@OGLDEV Жыл бұрын
Thanks! I'd like to explore several options and compare them. Will probably start with the approach taken by learnopengl.com (dot product between the normal and the light direction) and then maybe slope scale depth bias. Will see how it goes.
@L.K.82
@L.K.82 Жыл бұрын
@@OGLDEV makes sense. So far I have not seen an approach that is „fire and forget“ when it comes to shadow mapping. You always have to tweak per scene or make some other sacrifices (light leaks). Looking forward to it!
@OGLDEV
@OGLDEV Жыл бұрын
I think that "fire and forget" is just another name for a game engine... ;-) When you are in the trenches of the graphics API you need to take care of yourself.
@alvpjh
@alvpjh Жыл бұрын
nice tutorial. what about smooth shadows?
@OGLDEV
@OGLDEV Жыл бұрын
Sure, I plan to address this as part of a "shadow improvements" video.
@samgilk5693
@samgilk5693 2 ай бұрын
It seems like my shadows may be rendering backwards or flipped L/R hand on my model. Any tips?
@OGLDEV
@OGLDEV 2 ай бұрын
Probably left vs right handed coordinate system. Are you using GLM? Because it is right handed by default and I'm on a left handed system.
@dimension-ji7xk
@dimension-ji7xk Жыл бұрын
Looks like no one else is here yet
@OGLDEV
@OGLDEV Жыл бұрын
Yep...
Shadow Mapping Unleashed! // Intermediate OpenGL Series
17:07
Introduction To Tessellation in OpenGL
16:57
OGLDEV
Рет қаралды 4,5 М.
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 31 МЛН
Buy Feastables, Win Unlimited Money
00:51
MrBeast 2
Рет қаралды 89 МЛН
The Math behind (most) 3D games - Perspective Projection
13:20
Brendan Galea
Рет қаралды 358 М.
SHADOWS! // Hazel Engine Dev Log
26:09
The Cherno
Рет қаралды 64 М.
Introduction To Shaders  // OpenGL Beginners Series
24:31
OGLDEV
Рет қаралды 10 М.
How I Implemented Shadows in my Game Engine
7:45
ThinMatrix
Рет қаралды 92 М.
Direct State Access // Modern OpenGL Tutorial
22:56
OGLDEV
Рет қаралды 4 М.
Render Your First Dot  // OpenGL Beginners Series
19:48
OGLDEV
Рет қаралды 13 М.
Frustum Culling // Terrain Rendering episode #9
21:44
OGLDEV
Рет қаралды 5 М.