|
|
>How did you do the blade?
This was the first time I really tried playing with media so there's
probably a better way to do it...
//-----------------------Blade
Media----------------------------------------
#declare Outer = media {
intervals 2
samples 1, 2
confidence 0.9
variance 1/1000
emission rgb<0,1,1>
density {
radial
turbulence 0.0009
color_map {
[0.0 color rgb <0, 1, 1>]
[0.2 color rgb <0, 1, .9>*15]
[0.5 color rgb <0, 1, 1>]
[1.0 color rgb <0, 1, 1>]
}
}
}
#declare Inner = media {
intervals 2
samples 1,2
confidence 0.9
variance 1/1000
emission rgb<1,1,1>
density {
radial
turbulence 0.0009
color_map {
[0.0 color rgb <1, 1, 1>]
[0.2 color rgb <1, 1, 1>*55]
[0.4 color rgb <1, 1, 1>*55]
[1.0 color rgb <0, 1, 1>]
}
}
}
//-------------------------BLADE-------------------------------------
#declare BLADE = object{ union{
merge{
cone { <0,0.96,0>,.003 //blade core
<0,0.24,0>,0.0125
hollow on
}
sphere{ <0.0,0.195,0.0>,.045
scale<0.32,1.45,0.32>
hollow on
}
pigment { color rgbf <1, 1, 1,.95> } //changing transmit to
filter causes shadows (red ones that is)
finish{ambient .8}
interior{ media{Inner} }
}
merge{ //blade glow
sphere {<0,0.97,0>,.015 //tip
hollow on
}
cone { <0,0.97,0>,.017
<0,0.313,0>,0.0385
hollow on
}
sphere {<0,0.313,0>,.075
hollow on
scale<0.55,1.0,0.55>
}
pigment { color rgbf <1, 1, 1,1> } //changing transmit to
filter causes shadows (red ones that is)
finish{ambient .02}
interior{ media{Outer} }
}
}//***end of union***
}//***End of object = Blade
object{BLADE}
--
...coffee?...yes please! extra sugar,extra cream...Thank you.
Post a reply to this message
|
|