|
|
On Wed, 12 Nov 2003 07:22:16 EST, "gyanez" <gya### [at] ncrrcom> wrote:
>I also want to make the ball see-through...transparent...I was told to use
>rgbft/transmit function...in my example I commented it out. Is the
>use/placement of it in my code provided correct or not?
Yes that is correct. You can also use
color rgbt <1,1,1,1> and color rgbft <1,1,1,0,1>
Note that filter and transmit should add up to one (1) unless you want strange
results.
To see what is happening put something behind the ball and raise the light
source. For instance.
#include "finish.inc"
#include "textures.inc"
#include "colors.inc"
#include "glass.inc"
#include "stones.inc"
camera { // Front
location <0,2,-10>
look_at <0,0,1>
}
/*
camera { // Side
location <10,2,-10>
look_at <0,0,1>
}
*/
light_source { <0,5,-2> color White}
plane { <0, 1, 0>, -1
pigment {
checker
color rgb 1
color blue 1
scale 0.5
}
finish{
diffuse 0.8
ambient 0.1
}
}
object {
sphere {
<0, 1, 2>, 2
//no_image // Un comment to view without the sphere
photons{
target
reflection on
refraction on
}
pigment {
color rgbft <1,0,0,1,0>
// Col_Glass_Clear
}
finish{ reflection{0,1 fresnel on}}
interior {ior 1.5}
}
}
cone { <0, 7, 0>, 0.0, <0, 0, 0>, 1.0
translate <1,-1,10>
texture {
pigment { colour rgb<1,1,1>
}
finish { // (---surface finish---)
ambient 0.2
specular 0.6 // shiny
}
}
}
Regards
Stephen
Post a reply to this message
|
|