Real-time 2D shadows with WebGL

  Рет қаралды 14,739

Jordan West

Jordan West

Күн бұрын

Пікірлер: 21
@unformedvoid2223
@unformedvoid2223 2 жыл бұрын
Omg I was playing around like this with lighting shaders in Game Maker 8.0 almost ten years ago! And I was using exactly the same technique with shadows! What a nostalgic feeling. Great video!
@nosh5935
@nosh5935 2 жыл бұрын
i've been coding in javascript for about a year now and am studying to become a professional with it. a lot of my classes have revolved around p5.js, which is a great library, but seeing stuff like this simply put just makes me simultaneously excited about coding and also so aware of how little i know great job, i love these videos, amazing work. i genuinely feel inspired to make things because of them
@JordanWest
@JordanWest 2 жыл бұрын
That's awesome, creative coding you can get excited about is definitely the best way to learn
@mraine9266
@mraine9266 2 жыл бұрын
Great video. Dynamic lighting always seemed like a black magic, so it’s great to know it’s actually pretty easy
@debonairrose
@debonairrose 2 жыл бұрын
beautiful music
@mharti7984
@mharti7984 4 жыл бұрын
Awesome, exactly what I needed.
@chenchen1256
@chenchen1256 4 жыл бұрын
nice job, I love it,
@al20ov87
@al20ov87 4 жыл бұрын
Excellent video!
@chris_burrows
@chris_burrows 3 жыл бұрын
Thank you, that was really helpful, but what specifically were the pitfalls you mentioned earlier about this approach? It seems like it out performs the raycast method every time no?
@JordanWest
@JordanWest 2 жыл бұрын
One potential issue is that you're wasting a bunch of triangles for walls that are behind other walls. Probably not an issue in most cases, but if you have a lot of walls it might mean extra load on the GPU. Though iterating through all the walls on the CPU to calculate lit areas could be slow too!
@flameofthephoenix8395
@flameofthephoenix8395 2 жыл бұрын
@@JordanWest This could I believe be fixed by taking the sum of the area of the triangles, and seeing which sum is smaller, then checking if the small sum is entirely inside the large sum, and if it is you have to not render the small sum shadow.
@flameofthephoenix8395
@flameofthephoenix8395 2 жыл бұрын
You can easily check if a triangle fits in another one, by taking each point on the triangle and checking if it is in the other triangle.
@flameofthephoenix8395
@flameofthephoenix8395 2 жыл бұрын
@@SheepUndefined So, how does that relate to what I said?
@Eltaurus
@Eltaurus 2 жыл бұрын
What is the name of the vector graphics editor in the video?
@The-cyber-imbiber
@The-cyber-imbiber Жыл бұрын
Madness
@The-cyber-imbiber
@The-cyber-imbiber Жыл бұрын
Thanks for the video, very great stuff!
@ynxinl2555
@ynxinl2555 3 жыл бұрын
Magic~
@Fine_Mouche
@Fine_Mouche 2 жыл бұрын
and what was the real time to code this ?
@flameofthephoenix8395
@flameofthephoenix8395 2 жыл бұрын
I've thought of a method similar to this to get a double shadow effect, although it's not been tested yet.
@oamioxmocliox8082
@oamioxmocliox8082 2 жыл бұрын
;)
@D-K-C
@D-K-C 2 жыл бұрын
Ъ
Real-time 2D shadows | HUGE improvements!
9:32
Barney Codes
Рет қаралды 39 М.
Deferred Lights - Pixel Renderer Devlog #1
8:41
aarthificial
Рет қаралды 407 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
A simple procedural animation technique
8:31
argonaut
Рет қаралды 566 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 1 МЛН
Line Of Sight or Shadow Casting in 2D
50:23
javidx9
Рет қаралды 145 М.
Realtime shadow casting on 2D terrain
4:33
Barney Codes
Рет қаралды 116 М.
How Big Budget AAA Games Render Bloom
13:23
SimonDev
Рет қаралды 114 М.
Blender Tutorial for Complete Beginners - Part 1
17:57
Blender Guru
Рет қаралды 7 МЛН
Moebius-style 3D Rendering | Useless Game Dev
8:12
Useless Game Dev
Рет қаралды 871 М.
How Big Budget AAA Games Render Clouds
10:45
SimonDev
Рет қаралды 286 М.
Is 8-Bit Minecraft Possible?
12:58
Inkbox
Рет қаралды 1,4 МЛН
How I Implemented Shadows in my Game Engine
7:45
ThinMatrix
Рет қаралды 101 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН