Search found 42 matches
- Sun Jan 04, 2015 12:52 pm
- Forum: Libraries and Tools
- Topic: Dynamic lighting in LÖVE
- Replies: 27
- Views: 25574
Re: Dynamic lighting in LÖVE
Sprite DLight and Light vs Shadow in action:
Thanks to you both for your awesome work !!- Sun Jan 04, 2015 8:00 am
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Is it possible to apply the light/shine map to the drawn objects, so that tiles hidden behind other tiles (casting a shadow on them) are actually hidden (but objects the light shines on aren't)? I am using the engine together with STI if that is relevant. To clarify, I marked the areas that I don't...
- Wed Dec 31, 2014 3:25 pm
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
I think I did it !
I pass to the shadow shader an image with only the non-floor normals. I apply the shadow attenuation over normals only if not on a non-floor normal. I can do a pull request if you want - Wed Dec 31, 2014 6:34 am
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Alright. Maybe you could include that behaviour with a setting to turn it on or off. And preserve the optimization for those who do not need normals to behave like that
- Tue Dec 30, 2014 3:42 pm
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Is it possible to have shadows cast over bodies that do not cast shadows ? I would like to use the normal map effect on the floor tiles but when I add bodies that do not cast shadows, the character's shadow does not cast over them: Without floor bodies: withoutnormalfloor.png With floor bodies and n...
- Mon Dec 22, 2014 7:17 pm
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Yes, it's your fork that prompted me to start this project. Thanks man !
- Mon Dec 22, 2014 12:44 pm
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Light directions are still messed up :( I also get an issue when two rectangle bodies are next to each other. Light should not be able to pass between them but I still get this: Before: before.png Now: (don't mind the completely black rectangles, they are out of the player's sight and thus, not draw...
- Sun Dec 21, 2014 7:48 pm
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Shadow blur was set by default. Do I have to set it manually now ? I set bloom like this: lightWorld.post_shader:addEffect('bloom', {2.0}) Also :setDirection on light is messed up (or it doesn't represent the same thing as before). I'll do some benchmarking and get back to you for the optimization p...
- Sun Dec 21, 2014 1:52 pm
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Do you think there's room for improvements in terms of performances ? My FPS drops really quickly the more I add bodies and lights. Edit: Another weird issue is that FPS seems to drops relative to the screen size regardless of the number of lights/bodies. 800x450: 50fps 1280x720: 20fps with the sam...
- Fri Dec 19, 2014 2:18 pm
- Forum: Libraries and Tools
- Topic: Löve "Light vs. Shadow" Engine v2
- Replies: 140
- Views: 120867
Re: Löve "Light vs. Shadow" Engine v2
Sounds like a canvas not being cleared.