|
|
// Persistence of Vision Ray Tracer Scene Description File
// File: Metal Texture.pov
// Vers: 3.1
// Desc: a demo of a metal texture for nuts and bolts
// Date: 1/2/2000
// Auth: Chris Huff
//*******************************************
#include "colors.inc"
#version 3.1;
#declare groundPlane = yes;
//-------------------------------------------
global_settings {
assumed_gamma 1.8
}
background {
color rgb < 0.870000, 0.870000, 0.870000 >
}
camera {
location < 4, 5, -8>*2
look_at < 0, 0, 0>
angle 30
}
#if(groundPlane = yes)
plane {y, 0
texture {
pigment {checker color White color rgb < 0, 0, 0.15>}
finish {
diffuse 0.7
ambient 0.30
reflection 0.2
}
scale 3
}
}
#end
//*******************************************
#declare MetalTex =
texture {
pigment {bozo
color_map {
[0 color rgb < 1, 0.9, 0.85>]
[0.5 color rgb < 1, 0.9, 0.85>]
[1 color White]
}
turbulence 0.2
scale 2
}
finish {
specular 0.4
metallic
reflect_metallic
reflection 0.15
irid {0.25
thickness 0.5
turbulence 1
}
diffuse 0.6
// brilliance 1.0
}
normal {agate 0.1
scale 0.25
}
}
difference {
intersection {
box {<-10,-2.5,-5>, < 10, 2.5, 5>}
box {<-10,-3,-5>, < 10, 3, 5> rotate -y*60}
box {<-10,-3,-5>, < 10, 3, 5> rotate y*60}
sphere {< 0, 0, 0>, sqrt(50)-0.1 scale <1, 0.5, 1>}
}
union {
cylinder {< 0,-3, 0>, < 0, 3, 0>, 2.5}
}
texture {MetalTex}
translate y*2.5
scale 0.5
rotate y*35
}
//*******************************************
light_source {<-10, 50,-40>*100 color White }
//-------------------------------------------
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|
|
|
omniVERSE wrote:
>
> Should always get the correct version into such files so people realize
> which it needs, something like what I threw into the header below.
>
> Bob
It would be safer to presume that everyone uses the official version in
which case it should be explicitly identified as needing a patched version
of POV-Ray to render correctly. See correction below -
// Vers: Requires the MegaPOV 0.3 patched version of POV-Ray
But I pick nits...
--
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
|
|
Chris Huff wrote:
> I was actually trying to keep it within official POV-Ray, not sure
> exactly how reflect_metallic slipped past. :-)
Chris,
I have seen the warning signs building in you for a couple of months
and now I am sure of it. You have become a patchaholic. It is not too
late to seek professional guidance...
--
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
|
|
Ken wrote:
> Chris Huff wrote:
>
> > I was actually trying to keep it within official POV-Ray, not sure
> > exactly how reflect_metallic slipped past. :-)
>
> Chris,
>
> I have seen the warning signs building in you for a couple of months
> and now I am sure of it. You have become a patchaholic. It is not too
> late to seek professional guidance...
>
I noticed that too. Ken, please explain to him how he's supposed to change
POV-Ray script and run the program, not the other way around.
--
"My new computer's got the clocks, it rocks
But it was obsolete before I opened the box" - W.A.Y.
Post a reply to this message
|
|