|
![](/i/fill.gif) |
> cool
Glad you like it!
> how did u do the blade?
One small cylinder in the middle filled with media (I_Blade2) and a large
cylinder also with media (I_Blade).
I'm not satified with it yet..I'd like the places where the lightsabers
cross to bercome white, not a blend of the two colors. But I haven't used
media much, so I don't have a clue on how to achive that.. something to do
with absorption?
Here's the messy code:
#declare Sta = 0.5; // just for testing
#declare CLR = <0.25,1,0.25>; // color
#declare I_Blade = media {
intervals 10 // number of intervals used for sampling [10]
samples 1,1 // minimum and maximum number of samples taken
per interval [1,1]
confidence 0.9 // statistic parameter higher->better quality
[0.9]
variance 1.0/128 // statistic parameter lower->better quality
[1.0/128]
ratio 0.9 // distribution between lit and unlit areas
[0.9]
emission 0.3 // emitting media, emit light of specified
color
method 3 // adaptive sampling
density {
cylindrical
turbulence 0.05
color_map{
[0 rgb CLR transmit 1]
[1 rgb CLR transmit 0.8]
}
}
}
#declare I_Blade2 = media {
intervals 10 // number of intervals used for sampling [10]
samples 1,1 // minimum and maximum number of samples taken
per interval [1,1]
confidence 0.9 // statistic parameter higher->better quality
[0.9]
variance 1.0/128 // statistic parameter lower->better quality
[1.0/128]
ratio 0.9 // distribution between lit and unlit areas
[0.9]
emission 0.5 // emitting media, emit light of specified color
method 3 // adaptive sampling
density {
cylindrical
turbulence 0.05
color_map{
[0 rgb CLR transmit 1]
[1 rgb CLR transmit 0.8]
}
}
}
#declare Beam =
union{
merge{
cylinder {-y*1,y*70,1.8-Sta}
sphere {0,1.8-Sta scale <1,1.5,1> translate y*70}
interior{media{I_Blade}}
pigment {rgb CLR transmit 0.9-0.3+Sta }
finish {ambient 0.2}
hollow
}
merge{
cylinder {-y*1,y*70,0.5}
sphere {0,0.5 scale <1,1.5,1> translate y*70}
interior{media{I_Blade2}}
pigment {rgb CLR transmit 0.9}
finish {ambient 0.9}
hollow
}
}
object {Beam translate y*20.1}
Post a reply to this message
|
![](/i/fill.gif) |