|
|
Here is my starmap include file created from the Bright Star Catalogue.
The INC file is a list of calls to a previously defined macro. If you don't
define the macro before including the INC file, it will define a default
one. I use the following code:
//Define controlling params... Limiting magnitude and rotation in RA and
Dec.
#declare LimMag = 6;
#declare fDec=15;
#declare fRA=75;
//Define macro
#macro StarMapStar(vPosition, fMag)
#if (fMag < LimMag)
#local vPos = vrotate(vPosition, <0, -fDec, -fRA>); //Rotate
stars
#local c = ((LimMag+1)-fMag)/(LimMag+1);
//Calculate colour
#if (vPos.x >.8)
//Only show stars infront of camera
sphere
{
vPos * 10000, 16
texture{pigment{colour rgb<c, c ,c>} finish{ambient 1
diffuse 0}}
}
#end
#end
#end
//Include file
#include "starmap.inc"
I offer this file in the spirit of POVRay. You may use it as you wish for
any purpose (scenes, collections, basis of your own include, etc) as long as
you don't claim ownership or copyright of the include file itself.
Rarius
Post a reply to this message
Attachments:
Download 'starmap.inc.txt' (450 KB)
|
|