<div dir="ltr"><div style>On Wed, Apr 17, 2013 at 6:01 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>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.</div>
<div><br></div><div>"Position" is always the camera position in world coordinates.<br></div></div></blockquote><div><br></div><div>Just to be clear - "the camera position" is the green dot in the diagram? </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>"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").</div>
</div></blockquote><div><br></div><div style>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.</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div><br></div><div>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.</div>
</div></blockquote><div><br></div><div style>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?</div><div style>
<br></div><div style>Thanks again,</div><div style><br></div><div style>Taylor</div></div></div></div>