POV-Ray : Newsgroups : povray.newusers : Improved Starfield : Improved Starfield Server Time
30 Jul 2024 02:20:42 EDT (-0400)
  Improved Starfield  
From: Jeff
Date: 9 Nov 2004 05:15:01
Message: <web.419097ec7fb2550ba305bce00@news.povray.org>
Comments and suggestions for improvement are welcomed.

The "physics" of the "tinting sphere" were derived from "Sky Catalogue
2000.0" by Cambridge University Press. It *approximates" the "real"
distribution of stars by color. This method is NOT perfect (think the logic
all of the way through) and I DID tweak the spectrum a bit for a more
pleasing appearance.

To change from tinted stars to all-white, remove or comment out the second
sphere with a radius of 9,899,999.

This code is "medium density" - to go to a light density, change the
color_map falloff point in the outer sphere (radius 9,900,000) from 0.100
to 0.050, and change the pigment scale from 50000 to 75000. To go to a
heavier density change the color_map falloff from 0.100 to 0.200 and change
the pigment scale from 50000 to 25000.

// Persistence Of Vision raytracer version 3.6.1
// StarsTD2.pov SCENE file

// ********************************************************************
camera {
    perspective
    location <0.00,0.00,0.00>
    angle 45.00
    look_at  <0.00,0.00,1.00>
}
// ********************************************************************

sphere { <0,0,0>,9900000 hollow no_reflection
  pigment { crackle form <1,0,0>
    color_map {
      [0.000 0.100 color rgb <1.00,1.00,1.00> color rgb <1.00,1.00,1.00>]
      [0.100 1.000 color rgb <0.00,0.00,0.00> color rgb <0.00,0.00,0.00>]
       }
     scale 50000
    }
  finish {ambient 1 diffuse 0}
}

sphere { <0,0,0>,9899999 hollow no_reflection no_shadow
  pigment { bozo cubic_wave noise_generator 3
    color_map {
      [0.000 0.005 color rgbf <0.40,0.40,1.00,1.00> color rgbf
<0.40,0.40,1.00,1.00>]
      [0.005 0.107 color rgbf <0.60,0.60,1.00,1.00> color rgbf
<0.60,0.60,1.00,1.00>]
      [0.107 0.300 color rgbf <0.70,0.70,1.00,1.00> color rgbf
<1.00,1.00,1.00,1.00>]
      [0.300 0.466 color rgbf <1.00,1.00,1.00,1.00> color rgbf
<1.00,1.00,1.00,1.00>]
      [0.466 0.618 color rgbf <1.00,1.00,1.00,1.00> color rgbf
<1.00,1.00,0.60,1.00>]
      [0.618 0.963 color rgbf <1.00,0.90,0.30,1.00> color rgbf
<1.00,0.40,0.40,1.00>]
      [0.963 1.000 color rgbf <1.00,0.40,0.40,1.00> color rgbf
<1.00,0.40,0.40,1.00>]
       }
    turbulence 0.9
    scale 30000
   }
  finish {ambient 0 diffuse 0}
}


Post a reply to this message

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