0

Zoom issue

Anonymous 10 years ago 0
This discussion was imported from CodePlex

scadavid wrote at 2012-06-28 23:15:

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!

 

Steven


objo wrote at 2012-07-07 01:37:

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


scadavid wrote at 2012-07-10 22:56:

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.

 

Thanks,

 

Steven


scadavid wrote at 2012-07-10 23:15:

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