Page 1 of 1

lighter: another lib for light and shadows

Posted: Fri Dec 14, 2018 9:34 am
by Alexar
This lib is an implement of the contents from page https://ncase.me/sight-and-light/
Just have a try. :awesome:
GIF2.gif
GIF2.gif (3.1 MiB) Viewed 9329 times
GIF.gif
GIF.gif (5.91 MiB) Viewed 9329 times
lighter.love
(2.98 KiB) Downloaded 465 times

Re: lighter: another lib for light and shadows

Posted: Fri Dec 14, 2018 12:12 pm
by Sir_Silver
Pretty neat, I remember I looked at that article and had a lot of trouble trying to understand what it was saying and implement it myself, so props for doing it.

I noticed some problems when using the .love you posted that, like the light not behaving in a way you might expect it to. I think it would be really cool if you continued to work on it and make it something fully fleshed out, I would love to be able to use a light library that performs well and is easy to use.

Re: lighter: another lib for light and shadows

Posted: Mon Dec 17, 2018 2:51 am
by Alexar
updated, fixed some bugs.
i ignored this condition : polygons in the world intersect each other should make new nodes for the rays.
GIF.gif
GIF.gif (2.49 MiB) Viewed 9236 times
lighter.love
(6.12 KiB) Downloaded 461 times

Re: lighter: another lib for light and shadows

Posted: Wed Jan 30, 2019 10:41 am
by rudiem
Good implement. And thanks for updates. I just had some bugs with functions (perhaps this is my personal problem), but now everything seems to be ok. I would like to know where I can find similar tutorials or materials on this topic?

Re: lighter: another lib for light and shadows

Posted: Tue Aug 06, 2019 10:46 am
by astrochili
Wow, it's great! But I found a small bug - looks like light 'reflections' :oops: