lighter: another lib for light and shadows

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Alexar
Party member
Posts: 174
Joined: Thu Feb 05, 2015 1:57 am
Location: Chengdu,China

lighter: another lib for light and shadows

Post 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 18341 times
GIF.gif
GIF.gif (5.91 MiB) Viewed 18341 times
lighter.love
(2.98 KiB) Downloaded 1173 times
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: lighter: another lib for light and shadows

Post 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.
User avatar
Alexar
Party member
Posts: 174
Joined: Thu Feb 05, 2015 1:57 am
Location: Chengdu,China

Re: lighter: another lib for light and shadows

Post 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 18248 times
lighter.love
(6.12 KiB) Downloaded 1007 times
User avatar
rudiem
Prole
Posts: 1
Joined: Tue Jan 29, 2019 7:07 pm
Location: Springfield

Re: lighter: another lib for light and shadows

Post 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?
If you want to improve your skills in programming view the site https://assignment.essayshark.com/compu ... -help.html, where you can perform various assignments and study embedded development.
User avatar
astrochili
Prole
Posts: 7
Joined: Sun Jun 17, 2018 8:23 am

Re: lighter: another lib for light and shadows

Post by astrochili »

Wow, it's great! But I found a small bug - looks like light 'reflections' :oops:
Attachments
Screenshot 2019-08-06 at 13.42.31.png
Screenshot 2019-08-06 at 13.42.31.png (64.64 KiB) Viewed 14237 times
miaturner95
Prole
Posts: 3
Joined: Wed Mar 31, 2021 5:58 am

Re: lighter: another lib for light and shadows

Post by miaturner95 »

yes, it looks like a reflection
User avatar
mozt
Prole
Posts: 5
Joined: Tue Sep 07, 2021 3:11 am

Re: lighter: another lib for light and shadows

Post by mozt »

Pardon me !would you mind telling me the name of your IDE ?
Last edited by mozt on Tue Sep 07, 2021 4:33 am, edited 1 time in total.
:awesome: Bon appetite
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 6 guests