Zoom issue

Jun 28, 2012 at 9:15 PM

Thanks for this great tool.

I am having a zoom issue with the DepthSensorDemo. Whenever the camera position is set to a new location it is not possible to zoom in to the full extent. For instance, when setting the DefaultCamera in code behind as such:

Viewport.DefaultCamera = new PerspectiveCamera(new Point3D(0, -10, 0), new Vector3D(0, 6, 0), new Vector3D(0, 0, 1), 57);

One will notice that upon resetting the camera view it is not possible to zoom in to the full extent. It appears to me as if the zoom delta does not update upon setting a new camera position. Am I missing something?


Thanks in advance!



Jul 6, 2012 at 11:37 PM

In the "Inspect" zoom mode you will move the camera towards the target point (CameraPosition+LookDirection), is your target point correct?

Jul 10, 2012 at 8:56 PM

Hello objo,

If what you mean by target point is CameraTarget then yes, CameraTarget = CameraPosition+LookDirection

But I am unable to advance with the zoom towards the target point/surface.





Jul 10, 2012 at 9:15 PM

Hi Objo. Okay, I set CameraTarget to the target point position (!= CameraPosition+LookDirection) and that seems to work. So should I set CameraTarget to the intersection of the target surface and CameraPosition+LookDirection whenever I move the camera? Thanks