|
|
"james lake" <gum### [at] sprintmailcom> wrote:
> However, when I run the animation I notice the metallic surface of the object
> picks up the Greenish color of the background. To prevent this, I chose these
> settings:
You probably want to play with no_image, no_reflection, and no_shadow keywords.
Use two backdrops: a green one with no_reflection so it is not reflected, and a
second with no_image so you only see its reflection. Attached is a very quick
example of how you could use this to achieve a green backdrop on a reflective
object.
- Ricky
camera{
location <0,2,-3>
look_at <0,1,0>
}
light_source{<1,10,-1> rgb 1 shadowless}
//Ground + sky:
sphere{0,1
pigment{
gradient y
color_map{
[0 rgb <0.8,0.5,0.3>*0.9 ]
[0.499 rgb <0.8,0.5,0.3>*0.7 ]
[ 0.5 rgb <0.6,0.6,1.0> ]
[ 1 rgb <0.2,0.2,0.7> ]
}
scale y*2
translate -y
}
finish{ambient 0}
scale 50
no_image
}
//Reflective sphere:
sphere{y,1
pigment{rgb 1}
finish{
reflection 0.8
}
finish{ambient 0}
no_reflection
}
//Green background:
plane{-z,-10
pigment{ rgb <0,1,0> }
finish{
ambient 1
diffuse 0
}
no_reflection
no_shadow
}
Post a reply to this message
|
|