Search found 35 matches

by ChicoGameDev
Tue Jun 11, 2019 5:34 pm
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 28
Views: 19685

Re: Luven - Minimalist light engine

Hi, I'm actually late too... Sorry for inactivity. Actually you just have to pass false as a third parameter to Luven.init. It will disable all the Luven camera system. You'll be able to use a custom or an already existing camera in your love.update and love.draw functions. My answer can be a bit ru...
by ChicoGameDev
Thu Feb 28, 2019 5:40 pm
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 28
Views: 19685

Luven v1.1 - Minimalist light engine

Hey everybody !!! Your requests have been heard ! So here I come with Luven v1.1 ! Lets grab it on my github : https://github.com/chicogamedev/Luven What's news ? More FPS... :rofl: More possibilities, cone lights by default (hardly requested). And if the lights by default don't suit your need : Che...
by ChicoGameDev
Thu Feb 28, 2019 10:43 am
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

Hum,

That's interesting. I'm surprised you'll add bounding box on every lights and on camera to check this, but why not. Of course in that case it's much simpler to understand.

I think this could be the subject of another post tho :rofl:


Regards
by ChicoGameDev
Thu Feb 28, 2019 6:36 am
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

Hi grump, Haha yeah it would have helped but I did not simplify that by giving you the full source x). Thanks however for you help. Draw only what is actually visible on the screen for best performance. LÖVE does not perform culling, so it will be done much later in the graphics pipeline, which is s...
by ChicoGameDev
Thu Feb 28, 2019 4:34 am
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

pgimeno strikes again !

I was totally aware that something stupid was going on, as I said in my first post :
I'm sure it's pretty simple [...]
And it was and again you've learned me something !

Thanks a lot.


Have a wonderful day.



Regards
by ChicoGameDev
Thu Feb 28, 2019 4:22 am
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

Hello, New day, new ideas and new participants :D Hi pgimeno ! Thank you for your explanation, I go try this right now ! Oops, I see you've dropped the shader. Yes sadly I had to, it asked too much to machines. Actually if you don't have a graphic card the shader was really slow. And since my knowle...
by ChicoGameDev
Wed Feb 27, 2019 8:13 pm
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

No problem, I thank you already to give some time. I'm not 100% sure I've understand what you mean. But maybe take a quick look when you have the will and motivation, and see if it's not what I'm already doing. For the moment the bigger canvas solution is working wonderfully well ! Thanks. Regards
by ChicoGameDev
Wed Feb 27, 2019 7:15 pm
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

To come to think of it - you don't need the offscreen space. Why don't you just wiggle the camera position around in each update when it shakes? It doesn't really need to be a special case. What you saying intrigues me ! But I cannot understand what you mean. Or do you mean : put the love.graphics....
by ChicoGameDev
Wed Feb 27, 2019 6:56 pm
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

I mean it's pretty straightforward - if the lightmap is translated by -offset/2, all its contents will shift by that amount, so you have to compensate for that ;) Yes, now that you say it I feel stupid ... But you know it feels kind of "not nice" x) That's why I thought it was not a good solution. ...
by ChicoGameDev
Wed Feb 27, 2019 6:42 pm
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 5273

Re: Canvas + camera shake

You need to add the (half) offset to all light coordinates. Ah so you are totally aware of that haha. :awesome: Alright I'll implement and see if it will be enough. I did press space to shake it haha. Sorry for not mentioning that too. But when it shakes, I don't see any issues like in the gif. Who...