1
我想用POV-Ray繪製以下內容。在POV-Ray中繪製半填充玻璃柱體
#include "colors.inc"
#include "glass.inc"
#include "textures.inc"
global_settings { ambient_light color White}
camera {
location <0, 0, -10>
right x*image_width/image_height
look_at<0, 0, 0>
}
background { White }
#declare BEAKER_HEIGHT = 1;
#declare cyclinder_xpos = 0;
difference
{
cylinder
{
<cyclinder_xpos, -3, 0>, <cyclinder_xpos, BEAKER_HEIGHT, 0>, 1
}
cylinder
{
<cyclinder_xpos, -2.95, 0>, <cyclinder_xpos, BEAKER_HEIGHT-2, 0>, 0.89
texture { Water}
}
pigment
{
rgbt .8
}
finish
{
Glass_Finish
}
}
如果cyclinder_xpos = 0
,其結果是
如果cyclinder_xpos = 5
,其結果是
如果位置發生變化,氣缸就會更換。如何移動氣缸而不失真?