|
|
Looks nice.
Here is a headlight from an old project of mine.
Jay Raney
//--------------------------------
background { rgb 1 }
light_source { <-200,100,-60> rgb 1 }
camera { location <-4,2,-6> look_at 0 angle 40 }
plane { y,-2 pigment { rgb 1 } finish { diffuse 1 brilliance 0 ambient .4} }
sphere { <0,0,0> 1000
hollow
pigment { gradient y
color_map {
[ 0.0 color rgb <1,1,1> ]
[ 0.5 color rgb <0,.5,1> ]
[ 1 color rgb <0,0,0> ]
}
scale <1,1000,1>
}
finish { brilliance 0 ambient 1 }
}
#declare redenamel =
texture {
pigment { rgb <.8,.1,0> }
finish { phong .1 phong_size 80 reflection .05 }
}
#declare whiteplastic =
texture {
pigment { rgb 1 }
finish { phong 1 phong_size 40 diffuse 1 brilliance .8 }
}
#declare chrome =
texture {
pigment { rgb .1 }
finish { phong 1 phong_size 40 reflection .65 }
}
#declare clearglass =
texture {
pigment { rgbf <.92,.93,.95,.94> }
finish { phong 1 phong_size 50 reflection .15 ior 1.2 }
}
#declare headlight =
union {
difference {
sphere { <0,0,0> 1 scale <1,1,2> rotate <-20,0,0> texture { redenamel } }
sphere { <0,0,-1> 1.333 texture { whiteplastic } }
}
intersection {
difference {
sphere { <0,0,0> 1.05 }
sphere { <0,0,0> 1 }
scale <1,1,2>
rotate <-20,0,0>
}
box { <-2,-2,-.125> <2,2,.125> }
texture { chrome }
}
intersection {
sphere { <0,0,0> 1 scale <1,1,.65> rotate <0,0,0> translate <0,0,0> }
box { <-5,-5,-5> <5,5,.05> }
texture { clearglass }
normal { quilted scale .25 }
}
}
object { headlight rotate <0,-10,0> }
Post a reply to this message
Attachments:
Download 'headlight.jpg' (13 KB)
Preview of image 'headlight.jpg'
|
|