POV-Ray : Newsgroups : povray.general : Optimizing lights in an old scene Server Time
23 Nov 2024 23:56:44 EST (-0500)
  Optimizing lights in an old scene (Message 1 to 6 of 6)  
From: tutki
Subject: Optimizing lights in an old scene
Date: 3 Feb 2022 15:10:00
Message: <web.61fc3571349921935c8e85ceb98f01db@news.povray.org>
I have an old povray scene that I'm trying to tidy up, and one of the things is
to optimize rendering times by reducing the number of light sources. Currently
there are 44 point lights, which I think it probably excessive. Most of them are
inside background objects (multistorey buildings in the background), and
probably could be gotten rid of?

What are some general guidelines on optimizing light sources in a povray scene?
Is there some trick I could use to retain approximately the same look but with
less light sources (or with better rendering performance)?  Does povray optimize
away faraway fading light? E.g., if a background building is far away then only
objects close to it would involve that light source, but other objects in the
scene would skip that light source?


Post a reply to this message

From: Leroy
Subject: Re: Optimizing lights in an old scene
Date: 3 Feb 2022 16:10:00
Message: <web.61fc43d21347d84b2cae135cf712fc00@news.povray.org>
"tutki" <nomail@nomail> wrote:
> I have an old povray scene that I'm trying to tidy up, and one of the things is
> to optimize rendering times by reducing the number of light sources. Currently
> there are 44 point lights, which I think it probably excessive. Most of them are
> inside background objects (multistorey buildings in the background), and
> probably could be gotten rid of?
>
> What are some general guidelines on optimizing light sources in a povray scene?
> Is there some trick I could use to retain approximately the same look but with
> less light sources (or with better rendering performance)?  Does povray optimize
> away faraway fading light? E.g., if a background building is far away then only
> objects close to it would involve that light source, but other objects in the
> scene would skip that light source?

I think what you are needing is light groups.
3.4.4.2 Light Group in the help file
Have Fun!


Post a reply to this message

From: tutki
Subject: Re: Optimizing lights in an old scene
Date: 3 Feb 2022 16:55:00
Message: <web.61fc4efb1347d84b5c8e85ceb98f01db@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:
> "tutki" <nomail@nomail> wrote:
> > I have an old povray scene that I'm trying to tidy up, and one of the things is
> > to optimize rendering times by reducing the number of light sources. Currently
> > there are 44 point lights, which I think it probably excessive. Most of them are
> > inside background objects (multistorey buildings in the background), and
> > probably could be gotten rid of?
> >
> > What are some general guidelines on optimizing light sources in a povray scene?
> > Is there some trick I could use to retain approximately the same look but with
> > less light sources (or with better rendering performance)?  Does povray optimize
> > away faraway fading light? E.g., if a background building is far away then only
> > objects close to it would involve that light source, but other objects in the
> > scene would skip that light source?
>
> I think what you are needing is light groups.
> 3.4.4.2 Light Group in the help file
> Have Fun!

Thanks, light groups are indeed what I had in mind.

Unfortunately, a quick test with grouping objects in my scene into light groups
revealed that the speedup is only minimal: around 13.4 seconds render time
without light groups, 13.2 seconds with light groups.

I probably have to simplify some of my global lights, though. And also reduce
the amount of reflective surfaces. :D  I think in this old scene I got carried
away with the polished chrome surfaces so there's too much reflection going on.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Optimizing lights in an old scene
Date: 4 Feb 2022 02:19:10
Message: <61fcd36e$1@news.povray.org>
Op 03/02/2022 om 21:05 schreef tutki:
> I have an old povray scene that I'm trying to tidy up, and one of the things is
> to optimize rendering times by reducing the number of light sources. Currently
> there are 44 point lights, which I think it probably excessive. Most of them are
> inside background objects (multistorey buildings in the background), and
> probably could be gotten rid of?
> 
> What are some general guidelines on optimizing light sources in a povray scene?
> Is there some trick I could use to retain approximately the same look but with
> less light sources (or with better rendering performance)?  Does povray optimize
> away faraway fading light? E.g., if a background building is far away then only
> objects close to it would involve that light source, but other objects in the
> scene would skip that light source?
> 
> 
Something you could try is to replace those point lights in the 
background buildings by tiny, white spheres with finish {emission 1}. 
You can increase the emission value up to your needs.

-- 
Thomas


Post a reply to this message

From: Alain Martel
Subject: Re: Optimizing lights in an old scene
Date: 4 Feb 2022 11:00:48
Message: <61fd4db0@news.povray.org>
Le 2022-02-03 à 15:05, tutki a écrit :
> I have an old povray scene that I'm trying to tidy up, and one of the things is
> to optimize rendering times by reducing the number of light sources. Currently
> there are 44 point lights, which I think it probably excessive. Most of them are
> inside background objects (multistorey buildings in the background), and
> probably could be gotten rid of?
> 
> What are some general guidelines on optimizing light sources in a povray scene?
> Is there some trick I could use to retain approximately the same look but with
> less light sources (or with better rendering performance)?  Does povray optimize
> away faraway fading light? E.g., if a background building is far away then only
> objects close to it would involve that light source, but other objects in the
> scene would skip that light source?
> 
> 
For those lights situated inside background buildings, you can replace 
them with textures with an emission value. Make sure that those textures 
are entirely and only inside the buildings.
You may need to add some boxes inside those buildings to achieve that.


Post a reply to this message

From: tutki
Subject: Re: Optimizing lights in an old scene
Date: 7 Feb 2022 11:25:00
Message: <web.620147d31347d84b5c8e85ceb98f01db@news.povray.org>
Alain Martel <kua### [at] videotronca> wrote:
[...]
> For those lights situated inside background buildings, you can replace
> them with textures with an emission value. Make sure that those textures
> are entirely and only inside the buildings.
> You may need to add some boxes inside those buildings to achieve that.

Thanks! I'll definitely look into this.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.