POV-Ray : Newsgroups : povray.advanced-users : Function Light Source Server Time
23 Nov 2024 23:02:57 EST (-0500)
  Function Light Source (Message 1 to 9 of 9)  
From: Trevor G Quayle
Subject: Function Light Source
Date: 25 Mar 2011 14:35:01
Message: <web.4d8cdf838017f1ad81c811d20@news.povray.org>
I want to be able to create a general light source whose intensity is based on a
spherical function, one that has more control than a simple spotlight.

When I was modelling my basement a few years ago, I faked it for modelling my
pot lights.  I simply used a point light inside an no_image sphere that was
mapped with my function for tranparency.  The map was based on light cut sheets
for particular bulbs.

I was trying to do something similar again, but I have the problem that my
spheres shadow other lights in the scene.  No_shadow won't help because I need
shadowing to pick up the transparency.  Light groups don't help because they
only affect lighting on the object and not shadowing of global lights.

Any other ideas?

The easiest solution, that doesn't seem to exist, would be to have an option
where light groups also ignore objects from shadowing global lights.

The most flexible solution would be a function based light source, where the
light intensity is derived from a user defined function.  This would give
flexibility to model several types of light sources, multi-directional lights
spotlights with custom falloff functions etc. (they would even be able to model
a regular point light by having a constant function).  Looks like I may have
another source coding item to have a look at some day...

-tgq


Post a reply to this message

From: nemesis
Subject: Re: Function Light Source
Date: 25 Mar 2011 22:00:00
Message: <web.4d8d4885d8ed70c4f17b3b30@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> I want to be able to create a general light source whose intensity is based on a
> spherical function, one that has more control than a simple spotlight.
>
> When I was modelling my basement a few years ago, I faked it for modelling my
> pot lights.  I simply used a point light inside an no_image sphere that was
> mapped with my function for tranparency.  The map was based on light cut sheets
> for particular bulbs.
>
> I was trying to do something similar again, but I have the problem that my
> spheres shadow other lights in the scene.  No_shadow won't help because I need
> shadowing to pick up the transparency.  Light groups don't help because they
> only affect lighting on the object and not shadowing of global lights.
>
> Any other ideas?
>
> The easiest solution, that doesn't seem to exist, would be to have an option
> where light groups also ignore objects from shadowing global lights.
>
> The most flexible solution would be a function based light source, where the
> light intensity is derived from a user defined function.  This would give
> flexibility to model several types of light sources, multi-directional lights
> spotlights with custom falloff functions etc. (they would even be able to model
> a regular point light by having a constant function).  Looks like I may have
> another source coding item to have a look at some day...

are you thinking IES profiles for povray?  yep, that would be great.


Post a reply to this message

From: Alain
Subject: Re: Function Light Source
Date: 25 Mar 2011 22:42:52
Message: <4d8d52ac$1@news.povray.org>

> I want to be able to create a general light source whose intensity is based on a
> spherical function, one that has more control than a simple spotlight.
>
> When I was modelling my basement a few years ago, I faked it for modelling my
> pot lights.  I simply used a point light inside an no_image sphere that was
> mapped with my function for tranparency.  The map was based on light cut sheets
> for particular bulbs.
>
> I was trying to do something similar again, but I have the problem that my
> spheres shadow other lights in the scene.  No_shadow won't help because I need
> shadowing to pick up the transparency.  Light groups don't help because they
> only affect lighting on the object and not shadowing of global lights.
>
> Any other ideas?
>
> The easiest solution, that doesn't seem to exist, would be to have an option
> where light groups also ignore objects from shadowing global lights.
>
> The most flexible solution would be a function based light source, where the
> light intensity is derived from a user defined function.  This would give
> flexibility to model several types of light sources, multi-directional lights
> spotlights with custom falloff functions etc. (they would even be able to model
> a regular point light by having a constant function).  Looks like I may have
> another source coding item to have a look at some day...
>
> -tgq
>
>
>

First, use all the available paramerets for the spot_light.
Experiment also with area_light.
You can use more than one spot_light with different brightness/colour, 
radius, falloff and tightness. The brightness can be negative.

More advanced:
Model some projector complete with reflector and lense. Use photons. Use 
1 point_light or a pair of spot_light: 1 pointing pointing back at the 
reflector and one pointing forward.



Alain


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Function Light Source
Date: 25 Mar 2011 23:10:00
Message: <web.4d8d587ed8ed70cb05ef170@news.povray.org>
> First, use all the available paramerets for the spot_light.
> Experiment also with area_light.
> You can use more than one spot_light with different brightness/colour,
> radius, falloff and tightness. The brightness can be negative.

I'm currently trying to fake it somewhat with spotlights, it'll do for now.

>
> More advanced:
> Model some projector complete with reflector and lense. Use photons. Use
> 1 point_light or a pair of spot_light: 1 pointing pointing back at the
> reflector and one pointing forward.
>

While this may be able to work to try to build realistic reflector maps and
such, it becomes horrendous to render with qaulity settings.

-tgq


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Function Light Source
Date: 25 Mar 2011 23:15:00
Message: <web.4d8d59b2d8ed70cb05ef170@news.povray.org>
> are you thinking IES profiles for povray?  yep, that would be great.

That was one idea.  I think it was IES profiles I used for my lighting before
and mapped out manually.  Another idea I was currently using was to try to model
light scattering by placing (fake) mapped light sources in my media.  It would
be nice to have full control over lighting profiles beyond the functioning that
spotlights have.  Basically an idea I'm throwing out there.  I'll likely look
into how to implement if I can get into source code programming.

-tgq


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Function Light Source
Date: 28 Mar 2011 05:51:01
Message: <4d905a05@news.povray.org>
> I was trying to do something similar again, but I have the problem
> that my spheres shadow other lights in the scene.

How large are these spheres? I would have guessed that to
diminish light from a point light the sphere might be made
very small (barring floating point accuracy issues), maybe
up to the point that its shadow for other light sources
is no longer perceptible?


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Function Light Source
Date: 28 Mar 2011 08:10:00
Message: <web.4d907a56d8ed70c81c811d20@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> > I was trying to do something similar again, but I have the problem
> > that my spheres shadow other lights in the scene.
>
> How large are these spheres? I would have guessed that to
> diminish light from a point light the sphere might be made
> very small (barring floating point accuracy issues), maybe
> up to the point that its shadow for other light sources
> is no longer perceptible?

Yes this would work mostly, however there were instances where I want to apply
area light settings to the light as well, and in that case, the sphere needs to
be larger than the light size.

-tgq


Post a reply to this message

From: Robert McGregor
Subject: Re: Function Light Source
Date: 28 Mar 2011 15:50:01
Message: <web.4d90e542d8ed70c86ff1d480@news.povray.org>
"nemesis" <nam### [at] gmailcom> wrote:
> are you thinking IES profiles for povray?  yep, that would be great.

I agree, IES profiles would be an outstanding addition to the POV toolkit.

There are a huge number of lights already fully profiled and freely available
online, and the IES profiles are just ASCII files. Here's a format description
and sample parser in C, if anyone's feeling ambitious toward that end (it /does/
seem like fun but I don't currently have the time to spare):

http://lumen.iee.put.poznan.pl/kw/iesna.txt

Cheers,
Rob

-------------------------------------------------
www.McGregorFineArt.com


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Function Light Source
Date: 28 Mar 2011 16:10:00
Message: <web.4d90ea1ed8ed70c81c811d20@news.povray.org>
"Robert McGregor" <rob### [at] mcgregorfineartcom> wrote:
> "nemesis" <nam### [at] gmailcom> wrote:
> > are you thinking IES profiles for povray?  yep, that would be great.
>
> I agree, IES profiles would be an outstanding addition to the POV toolkit.
>
> There are a huge number of lights already fully profiled and freely available
> online, and the IES profiles are just ASCII files. Here's a format description
> and sample parser in C, if anyone's feeling ambitious toward that end (it /does/
> seem like fun but I don't currently have the time to spare):
>
> http://lumen.iee.put.poznan.pl/kw/iesna.txt
>
> Cheers,
> Rob
>
> -------------------------------------------------
> www.McGregorFineArt.com

I manually modified the IES files for my previous use rather than trying to
build a generic parser.

-tgq


Post a reply to this message

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