133 reputation
5
bio website
location
age
visits member for 2 years, 10 months
seen Mar 24 at 22:59

May
18
awarded  Popular Question
Feb
7
awarded  Scholar
Feb
7
accepted Grid/cell based light system
Feb
7
revised Grid/cell based light system
added 339 characters in body
Feb
6
comment Grid/cell based light system
Ok I've created a prototype using your simple distance suggestion and my max() approach and it seems to work fine, I'm just wondering if there's a more efficient way of doing it. Here's a jsFiddle with the prototype.
Feb
6
comment Grid/cell based light system
What do you mean by drawing a square? All I need is this lightning array, I can take it from there.
Feb
6
awarded  Student
Feb
6
comment Grid/cell based light system
Thanks but as I've said I'm not looking for a point of view solution, so I don't need to treat the light as fluid and block it using blocks, plus I can use libraries like libfov.
Feb
6
comment Grid/cell based light system
Just a thought, should it be max(distance_a, distance_b, ...)?
Feb
6
awarded  Editor
Feb
6
revised Grid/cell based light system
short clarification
Feb
6
comment Grid/cell based light system
Well a round light is good (as seen here). Your algorithm works well but only for one light source, any suggestions for handling multiple light sources? Let's say I have a list of light sources, should I, for each cell, calculate the distance from those light sources and sum up illumination - is that efficient? How should I add up illumination?
Feb
6
awarded  Supporter
Feb
6
asked Grid/cell based light system