|
|
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
|
|