POV-Ray : Newsgroups : povray.documentation.inbuilt : Should the sky_sphere tutorial be changed? : Re: Should the sky_sphere tutorial be changed? Server Time
29 Apr 2024 05:03:38 EDT (-0400)
  Re: Should the sky_sphere tutorial be changed?  
From: Abe
Date: 25 Feb 2003 09:30:06
Message: <web.3e5b7cbf2476b494fdc08dd80@news.povray.org>
Warp wrote:
>  There's a problem in the sky_sphere tutorial which I think should be
>corrected. I'm talking about the "Adding some clouds" section.
>
>  Ok, the example is good in the sense that it demonstrates how you can
>use multiple pigments in a sky sphere. However, the generated clouds don't
>look good at all, and I have seen several times how it teaches a bad habit
>to people (ie. to put clouds in the sky sphere).
>
>  The reason why the clouds look bad is that the sky sphere is like a
>sphere which is centered at the camera, while the real sky is like a sphere
>which is centered more than 6000 km below the camera.
>
>  The easiest way of getting realistic-looking clouds is, of course, using
>a plane. The sky_sphere can be used for coloring the sky, like this:
>
>camera { location <0,-1,-10> look_at 0 }
>light_source { <1000,2000,-200>, 1 }
>plane { y,-2 pigment { green 1 } }
>sphere { 0,1.2 pigment { rgb 0 } finish { reflection 1 } }
>
>sky_sphere
>{ pigment
>  { gradient y color_map
>    { [0 rgb <.8,.9,1>]
>      [.2 rgb <.2,.5,1>]
>      [1 blue 1]
>    }
>  }
>}
>
>plane
>{ -y,-100
>  pigment
>  { bozo color_map
>    { [0 rgb .5]
>      [.1 rgb 1 filter .2]
>      [.5 rgbf 1]
>    }
>    turbulence .8
>    scale 100
>  }
>  finish { ambient 1 }
>}
>
>
>  I wonder if the tutorial should be changed a bit so that it doesn't teach
>the bad habit of putting the clouds in the sky_sphere.
>
>plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
>sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
>density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
><1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -
>

I feel (and have felt for some time) pretty strongly about making changes in
this area of the documentation as you suggest. What I'm not sure about is
how in depth about rendering clouds this tutorial should go since it is
mainly addressing the sky_sphere feature and not skies in general. Perhaps
the best is what you already suggested in the Pov sdl example above with a
few sentences explaining why it is not necessarily desirable to apply a
cloud pigment to the sky_sphere. However, if the tutorial were to expand
into the areas of skies in general, I can think many principles and
techniques which would have to be mentioned in order to provide at least a
comprehensive outline. Much of this would be very specific, and would be
going beyond the general range of the documentation as it stands.

There is also another section in the sky_sphere tutorial on adding a sun,
where I feel the technique espoused offers somewhat limited flexibility. I
see a layered pigment here as being more appropriate which would allow the
sun to be controlled independently of the sky colors and also to enable
maintaining the vertical gradient of the sky colors regardless of the
position of the sun.

--
Abe
============
http://www2.taconic.net/bullfrog/sky
============


Post a reply to this message

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