|
|
I'm trying to set up a model for a physics experiment I'm doing. The gist of it
is there is a crystal suspended in a liquid over a light source with a camera
above it. I'm trying to set up a povray model where the liquid and the crystal
have different indexes of refraction. The problem is it seems that changing the
index of refraction of the crystal has no effect on the model. IE, if the index
of refraction of both the crystal and the liquid are one, the crystal is still
visible. Any help doing this would be appreciated.
I've pasted my code below. The liquid is the ellipsoid and the crystal is the
box.
light_source {
< 0, 0, 0>
rgb <1.000000, 0.999993, 0.999997>
area_light <1000, 0.0, 0.0>, <0.0, 0.0, 1000>, 5, 5
photons {
refraction on
area_light
}
fade_distance 10000
fade_power 2 //linear
looks_like{ plane {
y, -1
texture {
pigment {
color rgb<1, 1, 1>
}
}
}}
}
camera {
location <0, .01, 0>
look_at <0, 0, 0>
}
sphere {
<0.0, .002, 0.0>, .001
scale <2, 1, 1>
scale <1.0, 1.0, 1.0>
scale <1.0, 1.0, 1.0>
material {
texture {
pigment {
// Transparency of Ellipsoid
rgbt <0.000000, 0.981480, 1.000000, .8>
}
normal {
average
normal_map {
[ 0.00000 granite]
[ 1.00000 boxed]
}
}
finish {
}
}
interior {
//IOR of ellipsoid
ior 1
}
}
photons {
target 1.0
reflection off
refraction on
collect on
}
}
// Box
box {
< -.0001, 0, -.0001>, < .0001, 0, .0001>
rotate <0.0, 30, 0.0>
scale <1.0, 1.0, 1.0>
scale <1.0, 1.0, 1.0>
material {
texture {
pigment {
//Transparency of Box
rgbt <0, 0, 0, .8>
}
}
finish {
}
}
interior {
//IOR of box
ior 1
}
}
photons {
target 1.0
reflection off
refraction on
collect on
}
}
Thanks
Post a reply to this message
|
|