POV-Ray : Newsgroups : povray.general : Best way to simulate a sun Server Time
23 Dec 2024 22:34:56 EST (-0500)
  Best way to simulate a sun (Message 1 to 9 of 9)  
From: SharkD
Subject: Best way to simulate a sun
Date: 8 Feb 2008 04:35:00
Message: <web.47ac21fd7876da1cce83de880@news.povray.org>
I considered using an area light, but an area light is flat and doesn't luminate
equally in all directions. Should I use a point light that looks like a sphere,
or a sphere with high ambient values?

Thanks!

Mike


Post a reply to this message

From: Jan Dvorak
Subject: Re: Best way to simulate a sun
Date: 8 Feb 2008 05:04:21
Message: <47ac2925@news.povray.org>
SharkD napsal(a):
> I considered using an area light, but an area light is flat and doesn't luminate
> equally in all directions. Should I use a point light that looks like a sphere,
> or a sphere with high ambient values?
> 
> Thanks!
> 
> Mike
> 
> 
use circular orient.
If you want to use an ambient sphere then you have to use radiosity. If 

time.


Post a reply to this message

From: SharkD
Subject: Re: Best way to simulate a sun
Date: 8 Feb 2008 17:45:01
Message: <web.47acda45cc87f9a1ce83de880@news.povray.org>
Jan Dvorak <jan### [at] centrumcz> wrote:
> use circular orient.
> If you want to use an ambient sphere then you have to use radiosity. If

> time.

Well, a circlular area light would be just as flat as a rectangular one. Also,
radiosity wouldn't make sense in outer space.

Is there a good way to get the sun object to emit light?


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Best way to simulate a sun
Date: 8 Feb 2008 18:14:30
Message: <47ace256$1@news.povray.org>

> Jan Dvorak <jan### [at] centrumcz> wrote:
>> use circular orient.
>> If you want to use an ambient sphere then you have to use radiosity. If

>> time.
> 
> Well, a circlular area light would be just as flat as a rectangular one.

Search the documentation on 'orient'. A circular area light with 
'orient' on it will look as if it was a spherical area light.

 > Also, radiosity wouldn't make sense in outer space.

Why not? The light effect doesn't happen only in presence of air or gravity.


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Best way to simulate a sun
Date: 8 Feb 2008 18:15:16
Message: <47ace284$1@news.povray.org>
"SharkD" <nomail@nomail> wrote in message 
news:web.47acda45cc87f9a1ce83de880@news.povray.org...
> Jan Dvorak <jan### [at] centrumcz> wrote:
>> use circular orient.
>> If you want to use an ambient sphere then you have to use radiosity. If

>> time.
>
> Well, a circlular area light would be just as flat as a rectangular one. 
> Also,
> radiosity wouldn't make sense in outer space.

but if you add the orient keyword, it should behave like a spherical 
area_light... I think...

or is orient a MegaPOV feature?

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: Alain
Subject: Re: Best way to simulate a sun
Date: 8 Feb 2008 19:28:36
Message: <47acf3b4$1@news.povray.org>
SharkD nous apporta ses lumieres en ce 2008/02/08 04:33:
> I considered using an area light, but an area light is flat and doesn't luminate
> equally in all directions. Should I use a point light that looks like a sphere,
> or a sphere with high ambient values?
> 
> Thanks!
> 
> Mike
> 
> 
Typicaly, the Sun is at a very large distance from your scene objects. It have 
an aparant radius.
You use the "parallel" keyword and point it to the center of your scene. This 
simulate a light source that is very far away.

You use an area_light with circular. You can also use "orient" to make sure the 
light aray is always perpendicular to the location tested.
circular with orient create a "spherical" area_light.

If you can see your sun, directly or trough reflection(s), add a looks_like to 
make it visible.

-- 
Alain
-------------------------------------------------
To define recursion, we must first define recursion.


Post a reply to this message

From: Warp
Subject: Re: Best way to simulate a sun
Date: 8 Feb 2008 19:50:15
Message: <47acf8c7@news.povray.org>
SharkD <nomail@nomail> wrote:
> Well, a circlular area light would be just as flat as a rectangular one.

  Not if you add 'orient'.

> Also, radiosity wouldn't make sense in outer space.

  Why not? Light reflecting from surface does not depend on air.
(In fact, raytracing always happens in "vacuum".)

> Is there a good way to get the sun object to emit light?

  Yes: Use a light source.

-- 
                                                          - Warp


Post a reply to this message

From: SharkD
Subject: Re: Best way to simulate a sun
Date: 8 Feb 2008 21:50:00
Message: <web.47ad13afcc87f9a14cdeac580@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> Typicaly, the Sun is at a very large distance from your scene objects. It have
> an aparant radius.
> You use the "parallel" keyword and point it to the center of your scene. This
> simulate a light source that is very far away.
>
> You use an area_light with circular. You can also use "orient" to make sure the
> light aray is always perpendicular to the location tested.
> circular with orient create a "spherical" area_light.
>
> If you can see your sun, directly or trough reflection(s), add a looks_like to
> make it visible.
>
> --
> Alain
> -------------------------------------------------
> To define recursion, we must first define recursion.

The problem with this method is that objects that don't lie along this vector
are not lit properly. I would prefer a method that lights objects properly
regardless of their position relative to the sun.


Post a reply to this message

From: Alain
Subject: Re: Best way to simulate a sun
Date: 9 Feb 2008 12:12:00
Message: <47addee0$1@news.povray.org>
SharkD nous apporta ses lumieres en ce 2008/02/08 21:45:
> Alain <ele### [at] netscapenet> wrote:
>> Typicaly, the Sun is at a very large distance from your scene objects. It have
>> an aparant radius.
>> You use the "parallel" keyword and point it to the center of your scene. This
>> simulate a light source that is very far away.
>>
>> You use an area_light with circular. You can also use "orient" to make sure the
>> light aray is always perpendicular to the location tested.
>> circular with orient create a "spherical" area_light.
>>
>> If you can see your sun, directly or trough reflection(s), add a looks_like to
>> make it visible.
>>
>> --
>> Alain
>> -------------------------------------------------
>> To define recursion, we must first define recursion.
> 
> The problem with this method is that objects that don't lie along this vector
> are not lit properly. I would prefer a method that lights objects properly
> regardless of their position relative to the sun.
> 
> 
Unless your scene cover an extremely whide area, parallel is not a problem.
If your scene extend in an area large enough for that to be a problem, then you 
will have more problems with floating point precision: your objects will become 
to small relative to the distances separating them.
In real life, and using a scale equivalent to the earth-moon distance, the 
direction difference for the sun will be effectively negligeable, at around a 
degree of angle. The earth travel less than a degree per day, and that's much 
more than it's diameter, or the orbital diameter of any artificial satellites.

If your scale is such that you have several planets showing, then, using any 
kind of area_light is overkill exept for close objects in the foreground, as the 
bigest planets, like Jupiter and Saturn, will only show as single pixel, or 
sub-pixels dots.

-- 
Alain
-------------------------------------------------
Never underestimate the power of stupid people in large groups.


Post a reply to this message

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