Search found 62 matches

by ChicoGameDev
Wed Feb 27, 2019 5:49 pm
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 8708

Re: Canvas + camera shake

Hi,

Press space to shake the place ;)

Sorry didn't precise that... My bad.

Thanks for trying at least.


Regards
by ChicoGameDev
Wed Feb 27, 2019 6:02 am
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 8708

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...
by ChicoGameDev
Mon Feb 25, 2019 11:55 am
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

With that said, do you plan to add more features to the camera side? Of course I do ! I just couldn't think of more simple features for the first release. In my opinion the shake feature is the most useful :crazy: ! Stalker-x is a really good camera lib for reference Thanks for suggestion I will ta...
by ChicoGameDev
Mon Feb 25, 2019 10:44 am
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

Hello everybody, Hm, not sure - I don't use camera alike systems alot or transform objects at all (my project is using Löve 0.10.2). But in the end, what's required would be to transform any light on the screen to just the scaled down canvas so I guess what you'd have to do is to add the scaling to ...
by ChicoGameDev
Sun Feb 24, 2019 7:28 pm
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

Hi, The light would have a controllable width with a max value essentially being a normal light. This would allow for directional lighting such as flash lights. Maybe later yeah! Please feel free to make an feature request in the repo : https://github.com/chicogamedev/Luven/issues (So I keep a trace...
by ChicoGameDev
Sun Feb 24, 2019 1:11 pm
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

Hi again,

That's great, thanks for sharing !

Have a nice day :D !


Regards
by ChicoGameDev
Sun Feb 24, 2019 9:35 am
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

Thanks grump, I'll work on a new update and this will probably be better for everybody ! The biggest optimization for the canvas approach is a lower resolution canvas for the lightmap - it's probably rendered over the final display using filtering anyway, so you may get away with way lower resolutio...
by ChicoGameDev
Sun Feb 24, 2019 8:42 am
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

Hi, Yes since there is no graphic card it hurts ! I test now Luven on my MacBook Air and I feel the slow. Thanks a lot for your example ! Very inspiring, but I wonder, actually I can manage light powers dynamically and give the user the possibility to add flickering lights that Luven manage for them...
by ChicoGameDev
Sat Feb 23, 2019 11:28 pm
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

Hi, A simple change that would make it scale a lot better would be to have the enabled lights all at the start of the array and limit the loop in the shader to process only these lights. That way you would also get rid of that nasty if(light.enabled) in the shader that hurts performance. Yes I've al...
by ChicoGameDev
Sat Feb 23, 2019 3:44 pm
Forum: Libraries and Tools
Topic: Luven - Minimalist light engine
Replies: 29
Views: 38722

Re: Luven - Minimalist light engine

Hello, The way this is implemented requires super beefy hardware, even without any active light sources. Reducing the maximum number of light sources (two NUM_LIGHTS constants in luven.lua) should improve fps considerably for you. Yeah you are right I will work on optimization ! But if you have any ...