Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] General Discussion => Topic started by: Guillermo Leal on 2015-10-05, 19:53:30

Title: more then 255 lights
Post by: Guillermo Leal on 2015-10-05, 19:53:30
I have been using the daily build (2015-09-24), and keep getting the message light sampler can only handle 255 lights efficiently.
for this particular project there is no way around it i need a lot more lights, is there a way to get rid of the message, it pop ups every time i render, clicking ignore or dismiss all, makes no difference.

by the way is it planed to support more then 255 lights? it seems like a limitation to me.

enabling develop mode shows options for solver and sampling mode, can we get some information about the options there? there are no tooltips for them.

thanks,
Guillermo Leal.
Title: Re: more then 255 lights
Post by: Ondra on 2015-10-05, 19:59:00
will be possible in next daily
Title: Re: more then 255 lights
Post by: Guillermo Leal on 2015-10-05, 20:36:29
That's great.  Do you have a date?

It would also be grate to have the option to enable/disable the message window.
Title: Re: more then 255 lights
Post by: Ondra on 2015-10-05, 21:35:55
just released
Title: Re: more then 255 lights
Post by: atelieryork on 2015-10-05, 22:52:51
100% good news! Working on a job at the moment with easily 300+ lights and having to stick to 255 was very problematic.

Nice work!
Title: Re: more then 255 lights
Post by: arqrenderz on 2015-10-05, 23:00:38
Still you are going to have a lot of noise..... No matter the hours of rendeing....
Title: Re: more then 255 lights
Post by: Ondra on 2015-10-05, 23:26:38
Still you are going to have a lot of noise..... No matter the hours of rendeing....

That is why we are working on scalable solution. We have a reasonably working prototype already done, and it will be probably release in 1.4 stable release (together with adaptivity)
Title: Re: more then 255 lights
Post by: Siahpoosh on 2015-10-06, 01:45:58
in this project i have thousands of light . but i made an script to grouping lights together  by distance , and then my render is faster and also cleaner :
Not a valid vimeo URL

with this technique you will have less light count and calculation will be faster , see the attachment to get the idea ,
Title: Re: more then 255 lights
Post by: atelieryork on 2015-10-06, 09:36:23
This is interesting, vrMan. So are they "grouped" as in instances?

Ondra - very good to hear there's efforts being made in this area. We frequently work on scenes with many hundreds of lights (even if there's perhaps only 30 or so unique ones and the rest are instances), and it's currently manageable but speed could be better.

Look forward to trying these dailies...
Title: Re: more then 255 lights
Post by: romullus on 2015-10-06, 11:49:53
I think there is some miscommunication going on. There's only improvements in error / warning system in recent daily builds. Improvements on many light performance is planned in V1.4. Am i right?
Title: Re: more then 255 lights
Post by: arqrenderz on 2015-10-06, 14:25:25
in this project i have thousands of light . but i made an script to grouping lights together  by distance , and then my render is faster and also cleaner :
Not a valid vimeo URL

with this technique you will have less light count and calculation will be faster , see the attachment to get the idea ,

You mean that the light are turned ON as the camera aproaches?
Does the lights count as 1 even if there is 100  instances of the same?
Title: Re: more then 255 lights
Post by: pokoy on 2015-10-06, 15:06:06
I have a project with thousands of lights and got some help from Ludvik, here's my layman's conclusion, devs please feel free to correct me:

- the important thing here is 'light groups' displayed in brackets next to the lights count in the stats
- for light objects and geometry with a LightMtl assigned, a single face counts as a 'light', whereas a mesh consisting of - let's say - 32 faces, counts as 32 'lights' but one 'light group'
- the limit of 255 lights applies to 'light groups'
- example: if you have 1000 spheres with a LightMtl assigned, they'll count as 1000 'light groups' and Corona will use a slower algorithm. Now if you collapse these spheres and you end up with 10 objects, each consisting of 100 spheres, they'll count as 10 'light groups' and will use the faster algorithm.
- the rule is to limit the number 'light groups' to 255

Instances are still separate geometries so they'll still count as separate 'light groups', these would still need to be collapsed to larger groups of objects.
This does not apply to CoronaMtls with self-illumination, these are not handled as lights and are sampled separately.

There may be side effects to this but I'll let this one to the devs to explain in detail. I wish I'd known this earlier and there would be a sticky thread explaining this somewhere (or maybe there is...?)
Title: Re: more then 255 lights
Post by: Ondra on 2015-10-06, 15:37:59
this is correct with one important note, collapsing light objects may trigger using the better algorithm, but if the collapsed objects are too big or are created from light objects too far away, the results will be even worse than before. So there it is not "collapse all lights into single object and everything will be perfect"
Title: Re: more then 255 lights
Post by: Siahpoosh on 2015-10-06, 18:51:19
This is interesting, vrMan. So are they "grouped" as in instances?
yes

You mean that the light are turned ON as the camera aproaches?
Does the lights count as 1 even if there is 100  instances of the same?
no i just grouped them by distance from each other to make calculation simpler , instead of have a thousand of lights i have 255 mesh light
Title: Re: more then 255 lights
Post by: peterguthrie on 2015-10-20, 09:34:58
Any sign of progress on this issue? We are working on a project where this would be a serious problem (5000 lights might be enough). Really want to use corona for it!!

Title: Re: more then 255 lights
Post by: Ondra on 2015-10-20, 14:52:11
We are anticipating the solution in daily builds sometimes in november
Title: Re: more then 255 lights
Post by: atelieryork on 2015-10-20, 14:54:30
Good news! It's a regular issue here on big external scenes.
Title: Re: more then 255 lights
Post by: peterguthrie on 2015-10-20, 15:10:50
very good news

has become an issue here even on smaller scenes!
Title: Re: more then 255 lights
Post by: peterguthrie on 2015-11-17, 23:21:36
just bumping this upwards as having many lights in a scene is going to be hugely important for us if we are to start using corona more in production
Title: Re: more then 255 lights
Post by: Ondra on 2015-11-17, 23:58:55
just bumping this upwards as having many lights in a scene is going to be hugely important for us if we are to start using corona more in production
We already have working solution, but we are doing some "spring cleaning" of our codebase first, so stay tuned
Title: Re: more then 255 lights
Post by: j_forrester on 2016-01-11, 16:00:21
Hi Ondra,

Any chance you know when will have access to this new version. I have a scene i'm currently working on with 600+ lights and this would be most useful!!!!

Many thanks
Title: Re: more then 255 lights
Post by: Ondra on 2016-01-11, 16:23:09
hopefully about a month