VTKCamera difference between focal point and position

最后都变了- 提交于 2019-12-10 08:01:12

问题


I am using the vtkCamera and would am trying to move it around and make it look at a certain point. For example, if I want to put the camera at position (x,y,z) and make it look at (0,0,0) for example with gluLookAt in openGL we would set the eye coordinates to (x,y,z) and the centre coordinates to (0,0,0) and the up vector to (0,1,0).

In vtk however, using the vtkCamera we have three separate methods, namely setPosition, setFocalPoint and setViewUp

my question is what do setPositon and setFocalPoint correspond to?

Thanks


回答1:


setPosition corresponds to eye coordinates. setFocalPoint corresponds to where the camera is looking, so gluLookAt. It functions the same way as both openGL and DirectX in that sense.



来源:https://stackoverflow.com/questions/18021582/vtkcamera-difference-between-focal-point-and-position

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!