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](/povray.binaries.images/attachment/%3C1tj7m8lw43ta.lmyxdycusy32.dlg%4040tude.net%3E/starfield_proc.png?preview=1)
|