OpenGL - shadow maps (for directional lights)

  Рет қаралды 22,686

Brian Will

Brian Will

Күн бұрын

Пікірлер: 22
@phyyl
@phyyl 3 жыл бұрын
So clear! Thanks a lot for the video.
@ciberman
@ciberman 4 жыл бұрын
Amazing explanation! Very clear!
@DMmaster335
@DMmaster335 3 жыл бұрын
Increadable explenation, big ups
@iamarugin
@iamarugin Жыл бұрын
This was a brilliant explanation, thank you very much!
@Vagelis_Prokopiou
@Vagelis_Prokopiou 5 жыл бұрын
Very nice stuff dear Brian. Thanks!
@retroscooter2119
@retroscooter2119 4 жыл бұрын
Hi linux pingu
@Vagelis_Prokopiou
@Vagelis_Prokopiou 4 жыл бұрын
@@retroscooter2119 hi to you too.
@KropedStudio
@KropedStudio Жыл бұрын
@@Vagelis_Prokopiou yo
@nandukrishna8142
@nandukrishna8142 2 жыл бұрын
This video truly needs more likes and comments 🙁
@cmedia425
@cmedia425 Жыл бұрын
Since this is for directional lights why is there a lightPosition variable needed for the glm::lookat function? My interpretation of the directional light was that it only needed a direction.
@WowPlusWow
@WowPlusWow 4 жыл бұрын
The explanation you gave at 11:45 makes no sense. How would the z coordinate of the position relative to the light be higher than 1 when we multiplied it by the view matrix, effectively converting it into NDC space, which ranges from [-1,1]???
@WowPlusWow
@WowPlusWow 4 жыл бұрын
It's because of the fragments that extend beyond the frustum of the orthographic projection.
@cmdlp4178
@cmdlp4178 5 жыл бұрын
Is there a good way to calculate shadows (without using a temporary buffer), which consists of only the triangles projected on each other triangle?
@briantwill
@briantwill 5 жыл бұрын
Self-shadowing of a model without constructing a shadow map or shadow volume? Only other option I'm aware of is ray-casting.
@cmdlp4178
@cmdlp4178 5 жыл бұрын
@@briantwill I heard/read about a game engine, which does the shadow calculations on the CPU. It projects each triangle onto other triangles, it splits each triangle into dark and light triangles and simply sends these to the GPU and renders these. No shaders needed. I think this was done years ago, before shaders even were added to OpenGL. But I forgot where I heard/read about it and how the engine was called
@briantwill
@briantwill 5 жыл бұрын
@@cmdlp4178 Huh, that kinda sounds like shadow volumes, but probably less efficient. Doesn't seem like it would scale well for today's typical triangle counts.
@cmdlp4178
@cmdlp4178 5 жыл бұрын
@@briantwill this could be a good topic for a video
@andrewh111
@andrewh111 5 жыл бұрын
sooo shadow volumes next?
@RJC65__
@RJC65__ 4 жыл бұрын
I really don't know why my code isnt working, when I got up to the point of where you had shadow acne, I didn't have any shadow acne and my shadows are all random and no where near the correct places they should be, I made sure to follow your code exactly, any reasons why this is happening?
@douggale5962
@douggale5962 2 жыл бұрын
Do you create a debug rendering context? It helps, a lot, with that kind of issue. If it goes nuts, most likely there is a call with an invalid parameter somewhere, a properly initialized debug context will report it. Really check your matrix code, make sure you are transposing or not, as appropriate. Vector multiplication with a matrix is not commutative, the order of multiplication makes a huge difference.
@ps_lol
@ps_lol 4 жыл бұрын
Hi can you help me on shadow mapping pleasee for 330 version
@Al-Hebri
@Al-Hebri 4 жыл бұрын
Please I need a link to the code to revise my code because I have a problem here
OpenGL - lighting with the Phong reflection model (part 1 of 2)
16:32
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Shadow Mapping Strikes Back // OpenGL Tutorial #36
10:56
A Visual Explanation of Cascaded Shadowmaps
6:22
Wesley LaFerriere
Рет қаралды 8 М.
Interactive Graphics 16 - Shadow Mapping
1:06:47
Cem Yuksel
Рет қаралды 13 М.
OpenGL - gamma correction, HDR tone mapping, bloom
15:26
Brian Will
Рет қаралды 12 М.
OpenGL - deferred rendering
9:42
Brian Will
Рет қаралды 32 М.
How I Implemented Shadows in my Game Engine
7:45
ThinMatrix
Рет қаралды 100 М.
Basic Shadow Mapping // OpenGL Tutorial #35
16:54
OGLDEV
Рет қаралды 25 М.
OpenGL - normal maps
13:23
Brian Will
Рет қаралды 11 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 572 М.