POV-Ray : Newsgroups : povray.newusers : Sky_sphere is not smooth : Sky_sphere is not smooth Server Time
30 Jun 2024 03:31:05 EDT (-0400)
  Sky_sphere is not smooth  
From: Zeycus
Date: 16 Aug 2011 15:05:01
Message: <web.4e4abe43ddb4bd33762883f20@news.povray.org>
I have a problem: I want to use sky_sphere to make a sky, but for some reason it
does not change color smoothly, you can cleary see lines that separate different
"regions". I played with Antialias_Threshold, thinking that is the key, but
whatever I do I keep having this ploblem.

Here is my code.
#version 3.5;


// ************************   Camera   ***********************

#local Cam = <-5, 6, 12>;

camera {

        #local to = <2, 0.9, 6>;
        #local rat = 1;

        location rat*Cam + (1-rat)*to
        look_at to
        angle 38
}



// ************************   Lights   ***********************


light_source {
    Cam
    color 0.4*<1,1,1>
    shadowless


}



sky_sphere {
    pigment {
      gradient y
      color_map {
        [ 0.0 color rgb <0.8,0.2,0.2> ]
        [ 0.4 color rgb <0.8,0.8,0.4> ]
        [ 0.8 color rgb <0.3,0.0,0.5> ]
        [ 1.0 color rgb <0.0,0.0,0.0> ]
        }

      scale 2
      translate -1

      rotate 70.2763614*z
      rotate -105.46554492*y

      }
    }


The resulting image: http://dl.dropbox.com/u/1655276/esfera.png


Can anyone give me a clue?


Post a reply to this message

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