POV-Ray : Newsgroups : povray.newusers : Starfield appears random? : Starfield appears random? Server Time
28 Jul 2024 16:26:45 EDT (-0400)
  Starfield appears random?  
From: james lake
Date: 17 Jun 2008 23:35:00
Message: <web.4858813814a93abfd4dec990@news.povray.org>
Hello:

I am using the jslstarfield (below) to generate a space scene background.  The
problem is that whenever I move the camera, or the starfield itself, the
resulting starfield background appears to randomly re-generate with each frame.
 This gives the animation a bizarre appearance (even when I move the camera a
very small distance, say 0.00001*clock).

What can I do to fix this?

#declare jslStarfield =
texture {
  pigment {
    granite
    color_map {
      [0.00 0.76 color Black  color Black]
      [0.80 0.82 color Gray20 color Gray40]
      [0.82 0.84 color Gray40 color Gray60]
      [0.84 0.86 color Gray60 color Gray80]
      [0.86 0.88 color Gray80 color Gray95]
      [0.88 0.91 color Gray95 color White]
      [0.91 1.00 color Black  color Black]
    }
    scale .015
  }
  finish { ambient 1 diffuse 0 }
}

#declare StarSphere = sphere { <0,0,0>, 100000
  inverse
  texture { jslStarfield scale 1  }
}


Post a reply to this message

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