What is the camera&#39;s clipping range ? It might be that the clipping range when viewing a single slice with the direction of projection along its normal, ends up with a size of 0 along the z direction. <br><br>This is consistent with the fact that you have no issues viewing it at an angle, when the clipping range will be non-zero.<br>
<br>If this is indeed the case, you&#39;d want to disable the InteractorStyle&#39;s &quot;AutoAdjustCameraClippingRange&quot; ivar and set the range yourself to half the pixel spacing along z, on either side of the slice in question.<br>
<br>This is how vtkImageViewer2.cxx handles this. <br><br><br><div class="gmail_quote">On Wed, Aug 12, 2009 at 2:58 PM, Doug Hoppes <span dir="ltr">&lt;<a href="mailto:dhoppes@mbfbioscience.com">dhoppes@mbfbioscience.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hi all,</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">            I’ve got a strange problem and not sure
what is causing it.  I have loaded an image stack (10 images) into a VTK
window.  When the user uses the mouse wheel, I move through the image plane by
setting all of the images to be invisible, but the current plane.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">            The weird situation is that, if I am looking at
the image stack head-on (the camera is pointing directly at the top of the
image plane), when I scroll through the plane, some of the images do not show. 
If I move my mouse slightly, the image shows immediately.  If I am placing the camera
askew to the image stack (so that you see the stack at an angle), everything
works fine.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">            I tried calling the InteractorStyle-&gt;Render()
after setting the image plane to be visible, but, that doesn’t seem to
work.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Doug</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">----------------------------------------------------------------------</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Doug Hoppes</span></font> <a href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Senior Software Engineer</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">MBF Bioscience (Microbrightfield, Inc.)</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">+1.802.288.9290 ext: 119</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"><a href="http://www.mbfbioscience.com" target="_blank">www.mbfbioscience.com</a></span></font><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"></span></font></p>


<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

</div>


<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Karthik Krishnan<br>R&amp;D Engineer,<br>Kitware Inc.<br>Ph: 518 881 4919<br>Fax: 518 371 4573<br>