[vtkusers] vtkCamera as X-Ray camera
Taylor Braun-Jones
taylor at braun-jones.org
Wed Apr 17 19:22:15 EDT 2013
On Wed, Apr 17, 2013 at 6:01 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Props can be anywhere. But if you want them to be visible, they must lie
> between the near clipping plane and the far clipping plane, which are set
> with camera->SetClippingRange(double dNear, double dFar). These are set as
> distances from your camera position. In order for things to be visible,
> they must be at least "dNear" distance from the camera, and must not be
> further than "dFar" distance from the camera.
>
> "Position" is always the camera position in world coordinates.
>
Just to be clear - "the camera position" is the green dot in the diagram?
>
> "FocalPoint" must lie between the green point and the purple point that
> are shown on your diagram. I recommend that it be within the grey blob
> (i.e. within the "patient").
>
This is one part of the vtkCamera geometry that is not totally clear to me
- why do you recommend that the focal point be within the grey blob? As
long as the Position, ViewAngle, and ClippingRange are set correctly, what
would be the difference with using some other point on the
green-point-to-purple-point vector? I bring this up partly because I forgot
to mention that, in addition to the grey blob, I also want to view the 2D
image plane which I have positioned and oriented in 3D world space.
>
> And of course I highly recommend that you set the ClippingRange as well.
> The dNear can be set to half of the distance from the camera position to
> the focal point, and the dFar should be set to the distance from the camera
> position to the detector.
>
dFar makes sense to me, but how do you come up with "half the distance from
the camera position to the focal point" for dNear? Is this just a rough
heuristic?
Thanks again,
Taylor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130417/7bc228ae/attachment.htm>
More information about the vtkusers
mailing list