POV-Ray : Newsgroups : povray.text.tutorials : Making a sun Server Time
29 Mar 2024 07:17:28 EDT (-0400)
  Making a sun (Message 1 to 5 of 5)  
From: Zilvah
Subject: Making a sun
Date: 1 Jul 2000 09:19:15
Message: <395defd3@news.povray.org>
Anyone knows how to make a sun in POV-Ray?
Zilvah


Post a reply to this message

From: Bob Hughes
Subject: Re: Making a sun
Date: 1 Jul 2000 10:02:51
Message: <395dfa0b@news.povray.org>
There are several ways I'd say.  Kind of depends on what kind of Sun.  A
simple ambient disc or just colored spot on the inside of a sphere or
sky_sphere.  A sphere itself with media properties or just textured surface.
Lots of ways.
The spot on inside of a sky sphere would be done using a wood pattern color
map then rotated into place with perhaps a gradient y pattern layered over or
under that (filter used in the upper layer).
A media Sun would be best for outer space scenes probably.
What is the intended use?

Bob

"Zilvah" <zil### [at] onlineno> wrote in message news:395defd3@news.povray.org...
| Anyone knows how to make a sun in POV-Ray?


Post a reply to this message

From: Zilvah
Subject: SV: Making a sun
Date: 1 Jul 2000 15:21:18
Message: <395e44ae$1@news.povray.org>
Bob Hughes <per### [at] aolcom?subject=PoV-News:> skrev i
meldingsnyheter:395dfa0b@news.povray.org...
> There are several ways I'd say.  Kind of depends on what kind of Sun.  A
> simple ambient disc or just colored spot on the inside of a sphere or
> sky_sphere.  A sphere itself with media properties or just textured
surface.
> Lots of ways.
> The spot on inside of a sky sphere would be done using a wood pattern
color
> map then rotated into place with perhaps a gradient y pattern layered over
or
> under that (filter used in the upper layer).
> A media Sun would be best for outer space scenes probably.
> What is the intended use?
>
> Bob
>
> "Zilvah" <zil### [at] onlineno> wrote in message
news:395defd3@news.povray.org...
> | Anyone knows how to make a sun in POV-Ray?
>
>
>

Making a glowing spot on a sky_sphere


Post a reply to this message

From: Bob Hughes
Subject: Re: Making a sun
Date: 1 Jul 2000 17:52:28
Message: <395e681c@news.povray.org>
"Zilvah" <zil### [at] onlineno> wrote in message
news:395e44ae$1@news.povray.org...
|
| Making a glowing spot on a sky_sphere

Hmm, now that presents a problem about diffusing light if it goes with a light
as well, since sky_sphere is all ambient and no diffuse it's pretty useless
for spreading the light onto it.  So you have to go with pigment pattern only
(well, a light can still be used) which is simply something like:

camera {location -5*z
        look_at 0
}

plane {y,-1.01 pigment {rgb 1}}

sky_sphere {

pigment {wood color_map { // sun sky
 [0.05 color rgb <1,1,.95>*1.5] // this index is size of sun
 [0.055 color rgb <1,1,.9>*1.25] // this one starts the fade out edge of sun
 [0.15 color rgb <.8,.9,1>]
 [0.25 color rgb <.6,.7,.9>]
 [1.00 color rgb <.3,.6,.9>]
} rotate <-15,5,0>} // places sun (raise or lower x for altitude, y for
left/right)
pigment {gradient y color_map { // horizon sky
 [0.05 color rgbf <.8,.6,.7,.1>] // this index is size of sun
 [0.15 color rgbf <.5,.7,1,.33>]
 [0.25 color rgbf <.6,.7,.9,.5>]
 [1.00 color rgbf <.3,.6,.9,1>]
} }

}

You will obviously want to change colors to your liking for the situation
needed.  Hope that's what you were looking to do.

Bob


Post a reply to this message

From: Bob Hughes
Subject: Re: Making a sun
Date: 1 Jul 2000 18:10:50
Message: <395e6c6a@news.povray.org>
I left out the actual 'light_source', which would just go at a infinite enough
distance, say around 999999*z and then also rotate same as the wood pattern
(Sun).


Post a reply to this message

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