POV-Ray : Newsgroups : povray.newusers : sky_sphere gradient coarsened on reflective curved surface : Re: sky_sphere gradient coarsened on reflective curved surface Server Time
29 Jul 2024 06:13:54 EDT (-0400)
  Re: sky_sphere gradient coarsened on reflective curved surface  
From: Alain
Date: 11 Jun 2006 10:05:40
Message: <448c2334$1@news.povray.org>
huskeypm nous apporta ses lumieres en ce 10/06/2006 13:40:
> Hi
> I have a simple scene primarily consisting of a molecule with reflective
> spheres and a sky_sphere.  From the camera's perspective, the color
> gradient for the sky_sphere seems smooth; however, the reflection in the
> spheres (of whats behind tyhe camera) shows a much coarser gradient (4
> shades of blue).
> 
> My questions are the following
> 1.  my sky_sphere is only supposed to be 'light' at one end - why is it that
> my set up has light spots on both sides (ie whats behind the camera)?
> 2.  despite this, why is the reflected gradient not smooth like the sky?
> 
> I have provided http links to the image as well as the source files.  I have
> included the entire pov file in case the problem relates to global
> conditionans and not my finish.  BTW: i rendered this with the +Q11 +A0.3
> flags.
> 
> thanks in advance for your help!
> pete
> 
> // Now draw the sky
> sky_sphere{
>     pigment {
>       gradient y
>       color_map {
>         [0.000 0.001 color rgb <1.0, 1.0, 0.8>
>                      color rgb <1.0, 1.0, 1.0>]
>         [0.001 0.006 color rgb <1.0, 1.0, 1.0>
>                      color rgb <0.7, 0.7, 1.0>]
>         [0.016 5.000 color rgb <0.7, 0.7, 1.0>
>                      color rgb <0.0, 0.0, 0.4>]
>       }
>       scale 0.65 ???
Why scale small, you cause repetitions of the pattern.
>       translate -1
>     }
>     //rotate -135*x
>     rotate 89*x
>     rotate 20*y
> 
> }
> 
The gradient repeat 2 times in the sky_sphere, by scaling it by 0.65, you make it
repeat a little 
more than 3 times.
Solution: use scale 2 and the banding will go away.

-- 
Alain
-------------------------------------------------
Bend the facts to fit the conclusion. It's easier that way.


Post a reply to this message

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