Author Topic: more then 255 lights  (Read 10896 times)

2015-10-05, 19:53:30

Guillermo Leal

  • Active Users
  • **
  • Posts: 52
    • View Profile
    • Evolucion Visual
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.

2015-10-05, 19:59:00
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
will be possible in next daily
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-05, 20:36:29
Reply #2

Guillermo Leal

  • Active Users
  • **
  • Posts: 52
    • View Profile
    • Evolucion Visual
That's great.  Do you have a date?

It would also be grate to have the option to enable/disable the message window.

2015-10-05, 21:35:55
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
just released
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-05, 22:52:51
Reply #4

atelieryork

  • Active Users
  • **
  • Posts: 283
    • View Profile
    • Atelier York
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!
Alex York
Atelier York
www.atelieryork.co.uk
max 2016 sp1, corona 1.3 final, win 8.1. pro

2015-10-05, 23:00:38
Reply #5

arqrenderz

  • Active Users
  • **
  • Posts: 995
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
Still you are going to have a lot of noise..... No matter the hours of rendeing....

2015-10-05, 23:26:38
Reply #6

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
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)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-06, 01:45:58
Reply #7

Siahpoosh

  • Active Users
  • **
  • Posts: 141
    • View Profile
    • Siahpoosh.Net
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 ,

2015-10-06, 09:36:23
Reply #8

atelieryork

  • Active Users
  • **
  • Posts: 283
    • View Profile
    • Atelier York
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...
Alex York
Atelier York
www.atelieryork.co.uk
max 2016 sp1, corona 1.3 final, win 8.1. pro

2015-10-06, 11:49:53
Reply #9

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8850
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-10-06, 14:25:25
Reply #10

arqrenderz

  • Active Users
  • **
  • Posts: 995
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
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?

2015-10-06, 15:06:06
Reply #11

pokoy

  • Active Users
  • **
  • Posts: 1862
    • View Profile
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...?)

2015-10-06, 15:37:59
Reply #12

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
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"
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-06, 18:51:19
Reply #13

Siahpoosh

  • Active Users
  • **
  • Posts: 141
    • View Profile
    • Siahpoosh.Net
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
« Last Edit: 2015-10-06, 18:54:45 by vrMan »

2015-10-20, 09:34:58
Reply #14

peterguthrie

  • Active Users
  • **
  • Posts: 250
    • View Profile
    • Peter Guthrie Visualisation
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!!


2015-10-20, 14:52:11
Reply #15

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
We are anticipating the solution in daily builds sometimes in november
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-20, 14:54:30
Reply #16

atelieryork

  • Active Users
  • **
  • Posts: 283
    • View Profile
    • Atelier York
Good news! It's a regular issue here on big external scenes.
Alex York
Atelier York
www.atelieryork.co.uk
max 2016 sp1, corona 1.3 final, win 8.1. pro

2015-10-20, 15:10:50
Reply #17

peterguthrie

  • Active Users
  • **
  • Posts: 250
    • View Profile
    • Peter Guthrie Visualisation
very good news

has become an issue here even on smaller scenes!

2015-11-17, 23:21:36
Reply #18

peterguthrie

  • Active Users
  • **
  • Posts: 250
    • View Profile
    • Peter Guthrie Visualisation
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

2015-11-17, 23:58:55
Reply #19

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
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
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2016-01-11, 16:00:21
Reply #20

j_forrester

  • Active Users
  • **
  • Posts: 28
    • View Profile
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

2016-01-11, 16:23:09
Reply #21

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
hopefully about a month
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)