|
![](/i/fill.gif) |
Dear all,
I am trying to use povray to display the 3d distribution of a value (i.e.
temperature) as color mapped on the surface of a body. So when I do an
intersection with another object, to be able to see the color temperature
mapping on the interior of the first. The values I have is the temperature
for every voxel in space.
I tried to use the following:
intersection {
box { // initial object with the temperature mapping
<0,0,0>, <1,1,1>
translate <-0.5,-0.5,-0.5>
}
box { // Clipping object
<0,0,0>, <1,1,1>
inverse
}
interior {
media {
density {
density_file df3 "temp.df3"
interpolate 1
color_map {
[0.00 rgb <1,1,1>]
[0.10 rgb <1,0,1>]
[0.20 rgb <0,0,1>]
[0.40 rgb <0,1,0>]
[0.60 rgb <0,1,1>]
[0.80 rgb <1,0,0>]
[1.00 rgb <1,1,1>]
}
}
}
}
hollow
}
but I get a black screen. Is this the correct way of doing?
Post a reply to this message
|
![](/i/fill.gif) |