POV-Ray : Newsgroups : povray.text.tutorials : Making a sun : Re: Making a sun Server Time
23 Apr 2024 08:47:25 EDT (-0400)
  Re: Making a sun  
From: Bob Hughes
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

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