POV-Ray : Newsgroups : povray.animations : can't make static starfield, it keeps shifting : Re: can't make static starfield, it keeps shifting Server Time
17 May 2024 23:05:59 EDT (-0400)
  Re: can't make static starfield, it keeps shifting  
From: Stephen
Date: 16 Oct 2010 03:31:24
Message: <4cb954cc@news.povray.org>
On 16/10/2010 1:48 AM, Florin Andrei wrote:
> Well, no, each frame the stars are painted again, randomly.:(
>
> How do I make the starfield completely static for all frames when the camera is
> moving?
>

Instead of your moving box, why not use a sky_sphere? I've used the 
pigment from Starfield1 in the example below.

sky_sphere {
     pigment {
         granite
         color_map {
             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
             [ 0.270  0.280 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
             [ 0.280  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
             [ 0.470  0.480 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
             [ 0.480  0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
             [ 0.680  0.690 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
             [ 0.690  0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
             [ 0.880  0.890 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
             [ 0.890  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
         }
     turbulence 1
     sine_wave
     scale .5
     }
}

-- 

Best Regards,
	Stephen


Post a reply to this message

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