POV-Ray : Newsgroups : povray.binaries.images : the spaceship wip : Re: the spaceship wip Server Time
16 Aug 2024 22:16:12 EDT (-0400)
  Re: the spaceship wip  
From: Simon Adameit
Date: 18 Dec 2001 13:00:21
Message: <3c1f8435@news.povray.org>
CJ <hou### [at] yahoocom> schrieb in im Newsbeitrag:
3c1f8085$1@news.povray.org...
> Great metal texture...
> --

Thanks.

>
> BTW - how did you do the metal texture?
> -------
My English is not very good, so I better send you the source then describing
how I did it.

#local R=seed(123);
#local Z=0;
#declare rumpf_tex=
texture{average
  texture_map{
#while(Z<5)
#local T=<rand(R),rand(R),rand(R)>-0.5;
#local S=rand(R)+0.5;
[
finish{ambient 0 diffuse 0.3 phong 1.2 phong_size 2 specular 1 roughness
0.01 metallic }

pigment{cells
  color_map{
    [0 rgb 1]
    [1 rgb 0.1]}
  translate T
  scale 1.5
  scale S}

normal{cells bump_size 1 translate T scale 1.5 scale S}
]
#local Z=Z+1;
#end}}


Post a reply to this message

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