Search found 75 matches

by drunken_thor
Tue Dec 30, 2014 9:36 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

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: Yeah I will have to rewrite a bit though, I use normal maps to sten...
by drunken_thor
Sun Dec 28, 2014 2:19 am
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

Re: Löve "Light vs. Shadow" Engine v2

soulaymenc wrote:Uhh, sorry I got no where else to ask, how can I rotate the normal map ?
There is no way to do that currently I can add in rotation to image and normal modifiers. while I am at it I might as well add scaling as well.
by drunken_thor
Mon Dec 22, 2014 3:26 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

Re: Löve "Light vs. Shadow" Engine v2

Also, that is a good looking game! It has come a long way since the first screenshots. Glad I could help out with that.
by drunken_thor
Mon Dec 22, 2014 2:37 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

Re: Löve "Light vs. Shadow" Engine v2

Okay sorry about that, I took out some functionality because I didnt think it added that much but I didnt think about how you are using it. I just push a commit adding that back in, you shoud not see the shadow overlap any more.
by drunken_thor
Sun Dec 21, 2014 9:02 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

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 ...
by drunken_thor
Sun Dec 21, 2014 8:57 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

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 ...
by drunken_thor
Sun Dec 21, 2014 6:16 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

Re: Löve "Light vs. Shadow" Engine v2

Important! just published an update that will now require update to be called on your light world. This optimizes range checking of light bodies.

Please see the git page for the examples.
by drunken_thor
Sun Dec 21, 2014 5:09 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

Re: Löve "Light vs. Shadow" Engine v2

Shadows are not blurred anymore. Also bloom is not working even though drawBloom is called. I have tested it all and the current code on master works for both shadow blur and bloom. can I see your code of how you are setting shadow blur and how you are setting bloom on the postshader? Also any ment...
by drunken_thor
Sun Dec 21, 2014 1:22 am
Forum: Support and Development
Topic: Nested Stencils?
Replies: 4
Views: 2560

Re: Nested Stencils?

mask off the shadow bodies By shadow bodies do you mean the bodies that cast the shadows or the actual shadow darkness? The actual shadow darkness, for now I have settled to just use a sentcil for the range of the light and integrate the shadow stenciling into the shader being used. Not as optimal ...
by drunken_thor
Sat Dec 20, 2014 4:04 am
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 119878

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...