<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello Shade,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Why are you performing an image reslice to rotate 
your data? There is an image flip filter than can flip your data around if your 
read it in with the wrong orientation - I think it is probably a bit more 
efficient than the generic reslice. Otherwise, you should simply rotate your 
camera around to view it from another angle.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>One thing you can do to find out if your reslice is 
producing data is to do an update then get the scalar range to find out if there 
is any data in the volume.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Lisa</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A href="mailto:shade_cn@yahoo.com" title=shade_cn@yahoo.com>Shade</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  href="mailto:lisa.avila@kitware.com" title=lisa.avila@kitware.com>Lisa S. 
  Avila</A> ; <A href="mailto:vtkusers@public.kitware.com" 
  title=vtkusers@public.kitware.com>vtkusers@public.kitware.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, October 29, 2001 8:48 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] About Volume 
  Rendering in vtkNightly</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>Hello Lisa,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;&nbsp;&nbsp; Thank you for your 
  help.</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;&nbsp;&nbsp; I don't use the abstract 
  superclass Mapper directly, I use the </FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>vtkVolumeTextureMapper2D and vtkVolumeProMapper 
  instead. Today I debug </FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>my application again and found the following 
  reason.</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;&nbsp;&nbsp; Following is my sample 
  code:</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; 
  size=2>======================================================</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;vtkStructurePoints pStructuredPointsData = 
  vtkStructurePoints::New();</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; 
  size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;Read the volume data</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; 
  size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;vtkTransform *pTransform = 
  NULL;<BR>&nbsp;pTransform = vtkTransform::New();</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>//&nbsp;the next&nbsp;red color sentence is 
  important<BR><FONT 
  color=#ff0000>&nbsp;pTransform-&gt;RotateX(90);</FONT></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;// reslice the volume data to rotate 
  it.</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2><FONT face=&#23435;&#20307; size=2>&nbsp;vtkImageReslice 
  *pImageReslice</FONT> = vtkImageReslice::New();</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; 
  size=2>&nbsp;pImageReslice-&gt;SetInput(pStructuredPointsData);<BR>&nbsp;pImageReslice-&gt;SetResliceTransform(pTransform);<BR></FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>// Get the volume data after reslice</DIV></FONT>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;vtkImageData *pImageData = 
  m_pImageReslice-&gt;GetOutput();</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; 
  size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp; Then set the pImageData as the Volume 
  Mapper(vtkVolumeProMapper, </FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>vtkVolumeTextureMapper2D, etc.) input to render 
  it.</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; 
  size=2>////////////////////////////////////////////////////////////////////</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; 
  size=2>==================================================================</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;&nbsp;&nbsp; But strange phenomena appear. 
  With the above <FONT color=#ff0000>red color</FONT> sentence, </FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>then the render will display nothing what I 
  mentioned in the last mail; </FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>without the <FONT color=#ff0000>red color</FONT> 
  sentence then everything is OK.</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;&nbsp;&nbsp; I don't know whether the 
  vtkTransform has problem or the </FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>vtkImageReslice has problem or my rendering methos 
  has problem. </FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;&nbsp;&nbsp; Can you give me some advice? 
  Thank you.</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>Yours,</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>Shade</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>&nbsp;</DIV></FONT>
  <DIV><FONT face=&#23435;&#20307; size=2>----- Original Message ----- </FONT></DIV>
  <DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>From: "Lisa S. Avila" &lt;</FONT><A 
  href="mailto:lisa.avila@kitware.com"><FONT face=&#23435;&#20307; 
  size=2>lisa.avila@kitware.com</FONT></A><FONT face=&#23435;&#20307; size=2>&gt;</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>To: "Shade" &lt;</FONT><A 
  href="mailto:shade_cn@yahoo.com"><FONT face=&#23435;&#20307; 
  size=2>shade_cn@yahoo.com</FONT></A><FONT face=&#23435;&#20307; size=2>&gt;; &lt;</FONT><A 
  href="mailto:vtkusers@public.kitware.com"><FONT face=&#23435;&#20307; 
  size=2>vtkusers@public.kitware.com</FONT></A><FONT face=&#23435;&#20307; 
  size=2>&gt;</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>Sent: Monday, October 29, 2001 2:06 PM</FONT></DIV>
  <DIV><FONT face=&#23435;&#20307; size=2>Subject: Re: [vtkusers] About Volume Rendering in 
  vtkNightly</FONT></DIV></DIV>
  <DIV><BR></DIV><FONT face=&#23435;&#20307; size=2>&gt; Hello Shade,<BR>&gt; <BR>&gt; What 
  mapper are you using? You indicate vtkVolumeMapper in your email, but<BR>&gt; 
  it is not valid (hopefully not possible!) to use a vtkVolumeMapper for<BR>&gt; 
  rendering - it is an abstract superclass.<BR>&gt; <BR>&gt; Lisa<BR>&gt; 
  <BR>&gt; ----- Original Message -----<BR>&gt; From: "Shade" &lt;</FONT><A 
  href="mailto:shade_cn@yahoo.com"><FONT face=&#23435;&#20307; 
  size=2>shade_cn@yahoo.com</FONT></A><FONT face=&#23435;&#20307; size=2>&gt;<BR>&gt; To: 
  &lt;</FONT><A href="mailto:vtkusers@public.kitware.com"><FONT face=&#23435;&#20307; 
  size=2>vtkusers@public.kitware.com</FONT></A><FONT face=&#23435;&#20307; size=2>&gt;<BR>&gt; 
  Sent: Friday, October 26, 2001 10:58 PM<BR>&gt; Subject: [vtkusers] About 
  Volume Rendering in vtkNightly<BR>&gt; <BR>&gt; <BR>&gt; &gt; Dear VTK 
  Users,<BR>&gt; &gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; I download the vtk 
  nightly version of 2001/10/25 and<BR>&gt; &gt; 2001/10/26, but I can't render 
  anything with Volume Mapper,it<BR>&gt; &gt; seems the lookup table has no 
  effect to the volume, all the<BR>&gt; &gt; volume cell color is the background 
  color, so in the render<BR>&gt; &gt; window, it seems there is nothing. If I 
  use the VTK3.2<BR>&gt; &gt; Official Release, it is no problem. I can't find 
  the reason,<BR>&gt; &gt; who can give me some hints, thanks a lot.<BR>&gt; 
  &gt;<BR>&gt; &gt; Best Regards,<BR>&gt; &gt; Shade<BR>&gt; &gt;<BR>&gt; 
  &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; 
  This is the private VTK discussion list.<BR>&gt; &gt; Please keep messages 
  on-topic. Check the FAQ at:<BR>&gt; &lt;</FONT><A 
  href="http://public.kitware.com/cgi-bin/vtkfaq"><FONT face=&#23435;&#20307; 
  size=2>http://public.kitware.com/cgi-bin/vtkfaq</FONT></A><FONT face=&#23435;&#20307; 
  size=2>&gt;<BR>&gt; &gt; Follow this link to subscribe/unsubscribe:<BR>&gt; 
  &gt; </FONT><A 
  href="http://public.kitware.com/mailman/listinfo/vtkusers"><FONT face=&#23435;&#20307; 
  size=2>http://public.kitware.com/mailman/listinfo/vtkusers</FONT></A><BR><FONT 
  face=&#23435;&#20307; size=2>&gt; </FONT></BLOCKQUOTE></BODY></HTML>