POV-Ray : Newsgroups : povray.binaries.images : Crackle Meets Stars : Crackle Meets Stars Server Time
13 Aug 2024 09:37:53 EDT (-0400)
  Crackle Meets Stars  
From: Greg Edwards
Date: 7 Apr 2003 21:36:23
Message: <1tj7m8lw43ta.lmyxdycusy32.dlg@40tude.net>
I know you've probably already seen a million or so like this, but I've 
made a procedural starfield using a crackle pattern which I think looks 
pretty convincing, or at least a lot better than my previously used 
modified granite pattern from textures.inc. It was actually really simple 
to make and it's the first time I've found crackle forms useful. It's a 
hell of a lot simpler than a sphere-placing macro and I think the results 
are better. Here's the code:

sphere {
  0, 1
  pigment {
    crackle form <1, 1, 0>
    scale 1/200
    colour_map {
      [0.4 rgb 1]
      [0.6 rgb 0]
    }
  }
  finish {
    diffuse 0
    ambient 1
  }
  inverse
  scale 1000000
}

-- 
light_source#macro G(E)sphere{z+E*y*5e-3.04rotate-z*E*6pigment{rgbt#end{
20*y-10#local n=162;1}#while(n)#local n=n-.3;G(n)x}}G(-n).7}}#end//GregE


Post a reply to this message


Attachments:
Download 'starfield_proc.png' (19 KB)

Preview of image 'starfield_proc.png'
starfield_proc.png


 

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