翻译时球体被拉伸
Sphere is stretched when translated
当我这样做时:(将球体平移到中心)
translate(width/2, height/2);
noStroke();
fill(255, 0, 0);
lights();
sphere(60);
我得到了我应该得到的结果:
但是,当我尝试将球体移开时,请说底部 -
translate(width/2, height - 120);
我得到一个椭圆形:
无论我如何 move/translate 如何让球体保持圆形?
它只是因为 perspective projection 而被拉伸,以产生深度的错觉。
要使其显示为圆圈,您需要使用 Orthographic projection。
当我这样做时:(将球体平移到中心)
translate(width/2, height/2);
noStroke();
fill(255, 0, 0);
lights();
sphere(60);
我得到了我应该得到的结果:
但是,当我尝试将球体移开时,请说底部 -
translate(width/2, height - 120);
我得到一个椭圆形:
无论我如何 move/translate 如何让球体保持圆形?
它只是因为 perspective projection 而被拉伸,以产生深度的错觉。
要使其显示为圆圈,您需要使用 Orthographic projection。