Godot: 2d light effects in my top-down adventure game (Shadow Quest)
ฝัง
- เผยแพร่เมื่อ 28 ส.ค. 2020
- This is my first attempt at making a little 2d top-down game with Godot (v 3.2)
Light effects are rendered using normal maps and a custom "shadows cast" algorithm
The wolf and the character were modeled with blender first, then converted to spritesheet with a python script.
Let me know if you have some suggestions or if want some infos / tutos about the rendering technic ;)
Music:
Ekzil - Hang Alchemy
/ ekzil
Thanks For Watching ! - เกม
that's REALLY good!
Amazing job!
Looks really nice.
If possible, then can you do some tutorial on:
- how you achieved that 3D feel on terrain and building
- character animation of 2D to 3D
Thanks :)
I plan to do a tutorial when I have the time ..
The 3D feel on the terrain is achieved with normal map.
For buildings, I used a normal map + a displacement map, that gives the 3d position for each 2d pixel (in relative coordinates)
disp and normal maps are generated with blender.
@@ekzil35 I'd be interested in how you're using a displacement map on something like the house as well. I can't wrap my head around it :-)
damn, that's so cool !!
Impresionante! me suscribo!
absolutely stunning :)
Very creative, well done. Hope it turns out great, God bless.
Please make a full tutorial on your development process
l'll try it to do it in pure javascript
I didnt get is terrain 3d or you used normal map. It seems awesome
Thanks ! For the terrain, I just used a normal map on a independant layer, on top of the tilemap. I plan to do a tutorial on this when I have time.
Normal maps?
Can you please tell me how to do shadow casting?
I done this using a custom fragment shader. Light positions and occluders are passed as uniform. I used Liang-Barsky Algorithm to detect intersections between light rays and obstacles. Performance are good, even on mobile platforms :)
@@ekzil35 Could you go into more details regarding how you passed the light positions and occluders? Do you pre-render the entire scene and use the images as input, or use custom viewports?
I really like archery 👍 would be really cool to see your code) or even full tutorial)
Thank you ! I would have to get back into it, I left the project aside for lack of time..
@@ekzil35 dont leave it. Its really good
make a tutorial