Search found 70 matches
- Thu Feb 28, 2019 4:22 am
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
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...
- Wed Feb 27, 2019 8:13 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
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
- Wed Feb 27, 2019 7:15 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
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....
- Wed Feb 27, 2019 6:56 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
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 ...
- Wed Feb 27, 2019 6:42 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
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...
- Wed Feb 27, 2019 6:27 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
Re: Canvas + camera shake
you could use a lightmap that is large enough to cover the screen area + the maximum shake area I think I try that, do you mean : lightMap = love.graphics.newCanvas(screenWidth + Offset, screenHeight + Offset) and when the draw occurs : love.graphics.draw(lightMap, -( Offset / 2), - (Offset / 2)) I...
- Wed Feb 27, 2019 6:18 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
Re: Canvas + camera shake
Hi grump,
Thanks for participating !
What you say is interesting, I think it's the problem I faced when I tried to add a border to the lightmap.
Regards
Thanks for participating !
What you say is interesting, I think it's the problem I faced when I tried to add a border to the lightmap.
Regards
- Wed Feb 27, 2019 6:09 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
Re: Canvas + camera shake
Hello, Thanks for your participation. Of course I'm drawing multiple layers, and since it's designed to be integrated in a game, there always will be multiple layers. No ? And in your suggestion you want me to add a layer. But it seem a good idea, not sure to find the best way to do that but I'll tr...
- Wed Feb 27, 2019 5:49 pm
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
Re: Canvas + camera shake
Hi,
Press space to shake the place
Sorry didn't precise that... My bad.
Thanks for trying at least.
Regards
Press space to shake the place
Sorry didn't precise that... My bad.
Thanks for trying at least.
Regards
- Wed Feb 27, 2019 6:02 am
- Forum: Support and Development
- Topic: Canvas + camera shake
- Replies: 25
- Views: 15312
Canvas + camera shake
Hello everybody, As you probably now I'm working on a light engine called Luven, I'm currently working on optimizing the lib and experimenting with canvases... Everything is working insanely good BUT one thing I'm rolling my head on since 2 days and I just can't figure a way to solve it... Have a lo...