Hello vtkedge users<br><br>I solved my problems changing the camera clipping planes<div>and switching off every light in the scene.  Using these </div><div>settings the volumetrical reconstruction works well and is really nice.<br>

<br></div><div>Now there are still problems because every now and then the three</div><div>dimensional volumetric reconstruction disappears showing a black</div><div>image. Then moving the camera a bit the volumetrical reconstructions </div>

<div>appears again.</div><div><br></div><div>-Loris</div><div><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 5:26 PM, Loris Vosilla <span dir="ltr">&lt;<a href="mailto:loris.vosilla@gmail.com">loris.vosilla@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello Lisa and vtkusers,<div><div class="im">thank for your reply, this is a great news for me as well.<div><br></div>

<div>I thought the first problem is due to the way the ray is traced because if </div><div>I change the camera to an orthographic projection the problem disappears <br>
(but of course I don&#39;t get what I need)<br><br>As regard of the second issue I will then use two different renderers in the two</div><div>viewports.  </div><div>Moreover, looking into slicer 3.x I found several volume rendering mappers</div>


<div>both based on vtk. I would like to ask you what is the difference between</div><div>these mappers and <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">vtkKWEVolumeMapper.  Is The difference only related</span></div>


<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">to the implementation or there is a substantial difference related to the </span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">rendering algorithm ? Where can I find more information on them ?</span></div>


<div><br></div><div>I&#39;m looking forward to seeing the next vtk release</div><div>Thanks</div><div>-Loris </div><div><br></div></div><div><br><div class="gmail_quote"><div class="im">On Tue, Nov 10, 2009 at 4:47 PM, AGPX <span dir="ltr">&lt;<a href="mailto:agpxnet@yahoo.it" target="_blank">agpxnet@yahoo.it</a>&gt;</span> wrote:<br>


</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt">

<div>Very good news! There&#39;s some scheduled date?<br>
</div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><br><div style="font-family:arial,helvetica,sans-serif;font-size:13px"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight:bold">Da:</span></b> Lisa Avila &lt;<a href="mailto:lisa.avila@kitware.com" target="_blank">lisa.avila@kitware.com</a>&gt;<div>


<br><b><span style="font-weight:bold">A:</span></b> Loris Vosilla &lt;<a href="mailto:loris.vosilla@gmail.com" target="_blank">loris.vosilla@gmail.com</a>&gt;<br></div><b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>; <a href="mailto:vtkedge@vtkedge.org" target="_blank">vtkedge@vtkedge.org</a><br>


<b><span style="font-weight:bold">Inviato:</span></b> Mar 10 novembre 2009, 16:25:08<br><b><span style="font-weight:bold">Oggetto:</span></b> Re: [VtkEdge] [vtkusers] Volume rendering questions<br></font><div><div></div>

<div>
<br>Hello Loris,<br><br>The GPU volume ray cast mapper
 will soon be moving to VTK. At that time we will fixing the existing bugs (generally related to the clipping algorithm for starting the rays).<br><br>As for the second issue - we should add the code to detect this and release all graphics resources when we note that the vtkRenderer has changed (and hence we have a new view context). The results won&#39;t be good - you&#39;ll have the &quot;slow first render&quot; speed for every render because you&#39;ll be alternating between two different view contexts (so you will create and reload the volume texture twice for every render). So yes, we will fix this bug but no, you really should not use this mapper in more than one view content (vtkRenderer). In order to do so - we&#39;d need a much bigger VTK-level change (sharing of view contexts across renderers).<br>


<br>Lisa<br><br><br>Yes - it would be nice to have one copy of the texture and use it in multiple vtkRenderers, but that can only be done with a major change to VTK to share
 view contexts across renderers.<br><br>Loris Vosilla wrote:<br>&gt; Dear Vtk and vtkedge users,<br>&gt; <br>&gt; I&#39;m using vtkKWEVolumeMapper to volume render a three dimensional blood vessel.<br>&gt; If I use as rendering mode RayCastAndTexture I don&#39;t have any problem, but If I use the GPURenderMode I obtain strange resuts:<br>


&gt; <br>&gt; 1) When I draw the volumetrical object with a vtkcamera outside of the object self    the rendering works fine, but as soon as the camera enters in the volume I can&#39;t see    anything.  The opacity function is properly set.  This problem doesn&#39;t come if I use    RayCastAndTexture  drawing method.  If needed I can post screenshots of what is    happening.<br>


&gt; <br>&gt; 2) If I want to draw two volumetrical view in two different viewports only one is drawn<br>&gt;    using GPURenderMode. If I use RayCastAndTexture  drawing method both are
 drawn.<br>&gt; <br>&gt; Thanks for your help<br>&gt; -Loris<br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; <br>&gt; _______________________________________________<br>


<span>&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><br>&gt; <br>&gt; 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>


&gt; <br>&gt; 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>&gt; <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></div></div>_______________________________________________<br>VtkEdge mailing list<br>


<a href="mailto:VtkEdge@vtkedge.org" target="_blank">VtkEdge@vtkedge.org</a><br><a href="http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge</a><br>


</div></div>

</div><br>



      </div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>