<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">here is my code. When I run it without vtkPolyDataMapper&nbsp;,a black window appears and an error appear on an another window like that"ERROR: In ..\..\vtk-src-windows\Rendering\vtkImageActor.cxx, line 182<BR>vtkOpenGLImageActor (01654BB0): This filter requires unsigned char scalars as input". When I use vtkPolyDataMapper It gives an converting parameter error. like that"<FONT color=#ff0000 size=4>
<P>vtkPolyDataMapper::SetInput' : cannot convert parameter 1 from 'vtkImageData *' to 'vtkPolyData *'</P></FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT size=2>
<P>vtkImageReader *read=vtkImageReader::New();</P>
<P>read-&gt;SetFileName( </FONT><FONT color=#800000 size=2>"3Ddata.raw"</FONT><FONT size=2>);</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P><FONT size=2>
<P></P>
<P>vtkPolyDataMapper *readmap2=vtkPolyDataMapper::New();</P>
<P>readmap2-&gt;SetInput(read-&gt;GetOutput());</P></FONT>
<P><FONT size=2></FONT>&nbsp;</P><FONT size=2><FONT size=2>
<P>vtkImageActor *lodactor=vtkImageActor::New();</P><FONT size=2>
<P>lodactor-&gt;SetInput(read-&gt;GetOutput());</P>
<P>lodactor-&gt;InterpolateOff();</P>
<P>&nbsp;</P><FONT size=2>
<P>vtkRenderer *ren1=vtkRenderer::New();</P>
<P>vtkRenderWindow *renwin=vtkRenderWindow::New();</P>
<P>renwin-&gt;AddRenderer(ren1); </P>
<P>vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New();</P>
<P>&nbsp;</P>
<P>iren-&gt;SetRenderWindow(renwin);</P></FONT><FONT size=2>
<P>ren1-&gt;AddActor(lodactor);</P>
<P>ren1-&gt;SetBackground(0,0,0);</P>
<P>&nbsp;</P>
<P>renwin-&gt;SetSize(500,500); </P><FONT size=2>
<P>ren1-&gt;ResetCamera();</P>
<P>ren1-&gt;GetActiveCamera()-&gt;Zoom(1.5);</P>
<P>renwin-&gt;Render();</P>
<P>iren-&gt;Start();</P></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Peter Spring &lt;meancity@gmail.com&gt;<BR>To: tony hakki &lt;tony2007vtk@yahoo.com&gt;<BR>Cc: VTK Ortak mail hesabi &lt;vtkusers@vtk.org&gt;<BR>Sent: Monday, January 29, 2007 2:14:49 AM<BR>Subject: Re: [vtkusers] displaying .raw data<BR><BR>
<DIV>if not mistaken , you might try vtkPolyDataMapper..<BR><BR>what kind of rendering r u doing ? iso or vol<BR><BR><BR>On 1/29/07, tony hakki &lt;tony2007vtk@yahoo.com&gt; wrote:<BR>&gt;<BR>&gt; hi;<BR>&gt; I want to display&nbsp;&nbsp;my 3D data which is .raw extension on the screen.&nbsp;&nbsp;I read<BR>&gt; it by itkRawImageIO.h&nbsp;&nbsp;then what kind of mapper should I use to add it to<BR>&gt; actor?<BR>&gt; thank you<BR>&gt; Tony<BR>&gt;<BR>&gt; ________________________________<BR>&gt; Don't pick lemons.<BR>&gt; See all the new 2007 cars at Yahoo! Autos.<BR>&gt; _______________________________________________<BR>&gt; This is the private VTK discussion list.<BR>&gt; Please keep messages on-topic. Check the FAQ at:<BR>&gt; <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>&gt; Follow this link to subscribe/unsubscribe:<BR>&gt; <A href="http://www.vtk.org/mailman/listinfo/vtkusers"
 target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>&gt;<BR>&gt;<BR>&gt;</DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>

<hr size=1>Be a PS3 game guru.<br>Get your game face on with <a href="http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com">the latest PS3 news and previews at Yahoo! Games.</a></body></html>