I think what you want is
scene.center = vector(0,1,3) # or simply (0,1,3), which will be
converted to a vector
scene.forward = scene.center-vector(0,4,-6)
Since you're familiar with Povray, you might be interested in the
VPython-to-Povray converter available in the contributed section of
vpython.org.
Bruce Sherwood
John Wong wrote:
> Hi,
>
> I have spent the last couple days trying to get the following to work.
> In Povray, we have a camera syntax like the following
> camera {location <0,4,-6> look_at <0,1,3>}
>
> The result is this
> http://i49.tinypic.com/2r6glub.jpg
>
> I have a hard time doing it in VPython.
> I read the documentation, and had tried many combinations.
>
> Can you guide me with more details on camera position?
>
> Thanks.
>
|