POV-Ray : Newsgroups : povray.general : Stars, sizes, and antialiasing. (Was: Re: Starfields...) : Re: Stars, sizes, and antialiasing. (Was: Re: Starfields...) Server Time
5 Aug 2024 16:11:22 EDT (-0400)
  Re: Stars, sizes, and antialiasing. (Was: Re: Starfields...)  
From: Greg M  Johnson
Date: 27 Aug 2002 22:50:11
Message: <3d6c3a63$1@news.povray.org>
Here's a starfield I just used.  I shoudda increased the number of stars....

background{rgb 0}
#declare RRR=seed(123);
#declare n=0;
#while(n<3000)
sphere{500000*<
        sgn(rand(RRR)-0.5)*(0.15+rand(RRR)),
        sgn(rand(RRR)-.5)*(0.15+rand(RRR))+.5,
        sgn(rand(RRR)-0.5)*(0.15+rand(RRR))>
        ,1000 pigment{rgb 1} finish{diffuse 0 ambient 1}}
#declare n=n+1;
#end


Post a reply to this message

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