|
|
See p.b.i (Flame&Lantern) for an explanation:
#declare R1 = seed(121643); //Any number
#declare R2 = seed(2360); //Any number
#declare R3 = seed(100);
#declare R4 = seed(192);
#declare Dis = 100000; // Distance
#declare Count=0;
#while (Count < 6000) //Number of stars
#declare colorr3 = rand(R3);
#declare r4 = 1 - (rand(R4) / 4);
#declare r5 = 1 - (rand(R4) / 4);
#declare Xzang= rand(R1)*360;
#declare Yang= (rand(R2)*180)-90; // For space
//#declare Yang= rand(R2)*90 // For a starry night
#declare Adis= (cos(radians(Yang)))*Dis;
#declare Tmpy= (sin(radians(Yang)))*Dis;
#declare Tmpx= (cos(radians(Xzang)))*Adis;
#declare Tmpz= (sin(radians(Xzang)))*Adis;
sphere
{
<0, 0, 0>
0.5
scale 400 // Scale to what ever you want
translate < Tmpx, Tmpy, Tmpz>
pigment
{
color <r4, 1, r5> * colorr3
}
finish
{
ambient 1.0
diffuse 0.0
}
}
#declare Count=Count+1;
#end
--
--------------------------------------------------------------------
Yann Ramin atr### [at] atrustrivalieeuorg
Atrus Trivalie Productions www.redshift.com/~yramin
Monterey High IT www.montereyhigh.com
AIM oddatrus
Marina, CA
IRM Developer Network Toaster Developer
SNTS Developer KLevel Developer
--------------------------------------------------------------------
Post a reply to this message
|
|