POV-Ray : Newsgroups : povray.general : Star night sky : Re: Star night sky Server Time
8 Aug 2024 22:09:32 EDT (-0400)
  Re: Star night sky  
From: Gail Shaw
Date: 28 Sep 2000 08:36:50
Message: <39d33b62@news.povray.org>
Yann Ramin <atr### [at] atrustrivalieeuorg> wrote in message
news:39d2d4cd@news.povray.org...
> Hi there,
>
> Does anyone have suggestions for generating a night sky with stars?  A big
> spehere with random holes punched through it? :)  I obviously can't use
> light to illuminate a sky_sphere.
>


I generally use some version of the following

#declare StarNo=0;
#declare rndPos=seed(8932)
#while (StarNo<1000)  // change value for more or less stars
 sphere {
   <1000,0,0>,1   // change numbers according to scale of scene
   texture {
    pigment {rgb 1}
    finish {ambient 0.9}
   }
   rotate <360*rand(rndPos),360*rand(rndPos),360*rand(rndPos)>
 }
 #declare StarNo=StarNo+1
#end

Gail
********************************************************************
* gsh### [at] monotixcoza              * System.dat not found.         *
* http://www.rucus.ru.ac.za/~gail/ * Reformat hard drive Y)es O)k  *
********************************************************************
* If at first you don't succeed, call it version 1.0               *
********************************************************************


Post a reply to this message

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