对正方体的八个顶点,分别计算其投影点。 对(x,y,z)=(5,5,40),有 xpl=d(x-Se/2)/(z+d)=20(5-32.5)/(40+20)=-27.5/3=-9.2 xpr=d(x+Se/2)/(z+d)=20(5+32.5)/(40+20)=37.5/3=12.5 ypl=dy/(z+d)=100/(40+20)=1.7 ypr=dy/(z+d)=100/(40+20)=1.7 对(x,y,z)=(5,-5,40),有 xpl=d(x-Se/2)/(z+d)=20(5-32.5)/(40+20)=-27.5/3=-9.2 xpr=d(x+Se/2)/(z+d)=20(5+32.5)/(40+20)=37.5/3=12.5 ypl=dy/(z+d)=-100/(40+20)=-1.7 ypr=dy/(z+d)=-100/(40+20)=-1.7 对(x,y,z)=(-5,5,40),有 xpl=d(x-Se/2)/(z+d)=20(-5-32.5)/(40+20)=-37.5/3=-12.5 xpr=d(x+Se/2)/(z+d)=20(-5+32.5)/(40+20)=27.5/3=9.2 ypl=dy/(z+d)=100/(40+20)=1.7 ypr=dy/(z+d)=100/(40+20)=1.7 对(x,y,z)=(-5,-5,40),有 xpl=d(x-Se/2)/(z+d)=20(-5-32.5)/(40+20)=-37.5/3=-12.5 xpr=d(x+Se/2)/(z+d)=20(-5+32.5)/(40+20)=27.5/3=9.2 ypl=dy/(z+d)=-100/(40+20)=-1.7 ypr=dy/(z+d)=-100/(40+20)=-1.7 对(x,y,z)=(5,5,50),有 xpl=d(x-Se/2)/(z+d)=20(5-32.5)/(50+20)=-27.5/3.5=-7.8 xpr=d(x+Se/2)/(z+d)=20(5+32.5)/(50+20)=37.5/3.5=10.7 ypl=dy/(z+d)=100/(50+20)=1.4 ypr=dy/(z+d)=100/(50+20)=1.4 对(x,y,z)=(5,-5,50),有 xpl=d(x-Se/2)/(z+d)=20(5-32.5)/(50+20)=-27.5/3.5=-7.8 xpr=d(x+Se/2)/(z+d)=20(5+32.5)/(50+20)=37.5/3.5=10.7 ypl=dy/(z+d)=-100/(50+20)=-1.4 ypr=dy/(z+d)=-100/(50+20)=-1.4 对(x,y,z)=(-5,5,50),有 xpl=d(x-Se/2)/(z+d)=20(-5-32.5)/(50+20)=-37.5/3.5=-10.7 xpr=d(x+Se/2)/(z+d)=20(-5+32.5)/(50+20)=27.5/3.5=7.8 ypl=dy/(z+d)=100/(50+20)=1.4 ypr=dy/(z+d)=100/(50+20)=1.4 对(x,y,z)=(-5,-5,50),有 xpl=d(x-Se/2)/(z+d)=20(-5-32.5)/(50+20)=-37.5/3.5=-10.7 xpr=d(x+Se/2)/(z+d)=20(-5+32.5)/(50+20)=27.5/3.5=7.8 ypl=dy/(z+d)=-100/(50+20)=-1.4 ypr=dy/(z+d)=-100/(50+20)=-1.4 上例说明双目视差的效果。VR系统实现这种双目视差的方法是,从两个视点(分别对应两只眼),分别投影出两个视图,再分别显示给两只眼。 |