【发布时间】:2021-04-04 22:49:50
【问题描述】:
我创建了一个基本球体,我有一个宽高比约为 2:1 的图像用作纹理。实际图像是客户的徽标,因此PNG of the UK flag 是一个替代品。使用基本球体演示代码并将(缩放的)图像应用为纹理:
#include "colors.inc"
camera {
sky <0,0,1>
direction <-1,0,0>
right <-4/3,0,0>
location <30,10,1.5>
look_at <0,0,0>
angle 15
}
global_settings { ambient_light White }
light_source {
<10,-20,10>
color White*2
}
background { color White }
plane { <0,0,1>, 0 pigment {White} }
sphere {
<0, 0, 1>,
1 texture {
pigment {
image_map { png "flag.png" map_type 1 }
scale <0.1, 0.1, 0.1>
}
}
}
产生一个图像扭曲的球体,在我看来,偏离中心:
我无法准确描述我的预期,但我想我认为圣乔治十字的中心是球体正面的死点,正对着相机。
【问题讨论】:
标签: povray