Search found 70 matches

by ChicoGameDev
Sat Feb 16, 2019 3:34 pm
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Re: Question about shader and camera

Hello, I was surely on the wrong lane hahaha. I was missing and misunderstanding the importance of Transform:setTransformation. Thanks for your contribution to this project! I think that my light library will include this camera with maybe some more features like screenShake and so on. I'll be happy...
by ChicoGameDev
Sat Feb 16, 2019 9:41 am
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Re: Question about shader and camera

Just to keep information going and avoid wasting too much your time... I've got "result" when I changed the formula in the shader to : float distance = length(light_pos - vec4(norm_screen, 0.0, 1.0)) / (light.power); (Note the power being divided...) And when I set a power of 150 in the li...
by ChicoGameDev
Sat Feb 16, 2019 9:18 am
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Re: Question about shader and camera

Hi again, Here is my demo_v2.love I managed to implement the new camera system with the Transform object, it is working great! But now as I mention in my previous post, I'm not able to make the light work without your previous solution with love.graphics.transformPoint(). I will keep trying tho. But...
by ChicoGameDev
Sat Feb 16, 2019 4:33 am
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Re: Question about shader and camera

"Everyday is another chance to do it right." Hello, I will print your answer and keep it like a very preciousssssss treasure. Your explanation is worthy of a famous book. Amazing quality. So actually just to make things clear, I just started to give interest about shaders and such complex ...
by ChicoGameDev
Fri Feb 15, 2019 7:57 pm
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Re: Question about shader and camera

Oh mister I used your second suggestion because I'm not able to understand the first one. And I was so surprised to see it working like heaven! But I need more explanation :P And sorry about the units I'm confused myself... :? Maybe you could point out some changes you'll make or just explain why yo...
by ChicoGameDev
Fri Feb 15, 2019 5:49 pm
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Re: Question about shader and camera

Hello again,

Here we go !

A nice simplified playing field to search for the solution. I will use it too for trying to solve my issue.

I'm very grateful to everybody who will try out to find a solution to this issue! Thanks very very much!

Have a nice and lövely weekend !


Regards
by ChicoGameDev
Fri Feb 15, 2019 12:35 pm
Forum: Support and Development
Topic: Quad vs SpriteBatch
Replies: 6
Views: 4561

Re: Quad vs SpriteBatch

You're welcome Malmik, Actually yes switching canvas is probably bad but actually mind the fact that my tilemap never change so when I procedurally generate my dungeon, I prerender it once on my canvas and then I just draw it. So I assume I'm reducing draw calls by a lot by doing so and there is no ...
by ChicoGameDev
Fri Feb 15, 2019 12:27 pm
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Re: Question about shader and camera

Hello Sir, First of all thanks for your answer! Yes I already tried what you mention, but maybe I did it wrong... I tried so many things... Hard to tell now! But no my problem is still here and I don't mind the wait don't worry :D I will work on a demo.love file for you to visualize and be able to m...
by ChicoGameDev
Thu Feb 14, 2019 7:44 pm
Forum: Support and Development
Topic: Question about shader and camera
Replies: 11
Views: 6675

Question about shader and camera

Hello, This is my first question here and I hope to find someone that have good knowledge about Love2D graphics and shaders. I'm actually working on a minimalistic light system for my game but actually I'm building it for the Love2D community, but not ready for release yet. That's why I'm asking her...
by ChicoGameDev
Thu Feb 14, 2019 7:41 pm
Forum: Support and Development
Topic: Quad vs SpriteBatch
Replies: 6
Views: 4561

Re: Quad vs SpriteBatch

Hello, I just done the exact same thing this very morning! I can suggest you to preRender your tilemap on a canvas and then as you said, render the canvas each frame : function preRender() love.graphics.setCanvas(canvas) for i = 1, #map do self.map[i]:draw() end -- for love.graphics.setCanvas() end ...