Thanks Kevin,<br><br>There is a last think I want to know.<br><br>I&#39;d like to generate a MIP without displaying it on the screen.<br>I mean : I just want to save the MIP as a file &quot; ***.png &quot;, without displaying it, in order to accelerate the process.<br>
<br>After that, I will display all the png files and it will look like a volume which revloves on himself, you see?<br><br>Is it possible to do that ?<br><br>I&#39;ve tried &quot;-&gt;SetOffScreenRendering( 1 );&quot; but it didn&#39;t work.<br>
<br><br>There is an other reason why I want to do that. When I use &quot;vtkWindowToImageFilter&quot;, I can&#39;t minimize the window... otherwise the printscreens don&#39;t contain the MIP rendering but a part of my computer desktop... Not really practice because I always must keep the vtk window on top (for a couple a minutes).<br>
<br><br><br>Thank you again for your help Kevin,<br><br><br>Best regards,<br><br><br>Stéphane<br><br><br><br><br><br><div class="gmail_quote">2009/1/26 Kevin H. Hobbs <span dir="ltr">&lt;<a href="mailto:hobbsk@ohiou.edu">hobbsk@ohiou.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, 2009-01-26 at 16:52 +0100, Stéphane CALANDE wrote:<br>
&gt; &nbsp;Hi vtkusers,<br>
<div class="Ih2E3d">&gt;<br>
<br>
&gt; 1) I find that the rendering is not so beautiful. The picture is a<br>
&gt; little vagueness. Can I do something to improve that?<br>
<br>
</div>vol_mapper-&gt;SetImageSampleDistance( 0.25 );<br>
vol_mapper-&gt;SetSampleDistance( pix_diag / 5.0 );<br>
<br>
<br>
vol_prop-&gt;SetScalarOpacityUnitDistance( pix_diag );<br>
<div class="Ih2E3d"><br>
&gt; 2) It takes a lot of time to display one MIP (about 2.83 second per<br>
&gt; MIP on my computer (WinXPx64))<br>
<br>
</div>Don&#39;t do 1) above.<br>
<div class="Ih2E3d"><br>
&gt; 3) The distance between the focal point and the camera position is<br>
&gt; determined by the variable &quot;distanceFocale&quot;. But I&#39;ve some trouble<br>
&gt; with the value of that variable. I don&#39;t know which value I have to<br>
&gt; assign to it, because : if I assign it a too high or too low value,<br>
&gt; there is no result (black window). The rest of the time, the maximum<br>
&gt; intensity projection doesn&#39;t take into account all the volume but only<br>
&gt; a part of it (it seems that the distance is too small).<br>
&gt;<br>
<br>
</div>camera-&gt;SetFocalPoint ( center );<br>
<br>
camera-&gt;SetViewUp &nbsp; ( view_up );<br>
camera-&gt;SetPosition ( view_pos );<br>
<br>
camera-&gt;ComputeViewPlaneNormal(); // Maybe ?<br>
<div class="Ih2E3d"><br>
<br>
&gt; PS: thanks for your help, Kevin.<br>
<br>
</div>You&#39;re welcome.<br>
<br>
I pulled my comments from the attached file.<br>
</blockquote></div><br>