<div>Thanks for your support David and sorry for the cross-post...I was wondering if one could image some core-based solution.</div><div><br></div><div>In our case a medical application is being prototyped and the ray-cast volume was preferred for volumetric reconstruction. The point is that our application is connected to a device that tracks surgical instruments that are represented by polydata. So, theoretically, we can&#39;t abdicate of the ray-casting while moving these tools during a given surgical procedure. This is the reason I mentioned if it is possible to bypass the pipeline processing in order to render this polydata using pure OpenGL commands.</div>
<div><br></div><div>Thanks again</div><div><br></div><div>Regards</div><div><br></div><div>Fauze</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Fri, Jan 22, 2010 at 7:04 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@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;"><div class="im">Hi Fauze,<br>
<br>
Please don&#39;t cross-post to the vtk-developers list, since that list is<br>
only for developer issues.<br>
<br>
Mixing polygonal objects with software ray-cast volume rendering is an<br>
expensive process, it involves reading a partially rendered scene from<br>
the video card back to main memory and re-doing the volume rendering<br>
using the information in the depth buffer.  Every time the object<br>
moves, the ray-cast has to be redone.<br>
<br>
If you need fast volume rendering intermixed with polydata, you should<br>
use vtkVolumeTextureMapper3D or vtkVolumeTextureMapper2D.  These<br>
volume mappers do all of the polydata/volume intermixing right on the<br>
graphics cards.<br>
<br>
What I often do is use a vtkLODProp3D so that I can use the texture<br>
volume rendering when I&#39;m dragging things, but have it automatically<br>
switch to ray-casting when I stop dragging the mouse.<br>
<br>
  David<br>
<br>
<br>
On Fri, Jan 22, 2010 at 1:33 PM, Fauze Polpeta &lt;<a href="mailto:fauze.polpeta@gmail.com">fauze.polpeta@gmail.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt; Dear VTK Users;<br>
&gt; I have worked on a project that requires a Polygonal Object ( or at least a<br>
&gt; simple Line ) to be moved on the fly on a volume rendered scene built on top<br>
&gt; of a vtkVolumeRayCastMapper abstraction.<br>
&gt; This goal was successfully reached but we have faced a drastic performance<br>
&gt; degradation when moving the polygonal object into/across the volume scene.<br>
&gt; We have assumed this is a consequence of the VTK&#39;s pipeline  processing<br>
&gt; model. If anyone confirm that, we would like to ask any help in the sense of<br>
&gt; pointing any strategy for achieving any (minimal) performance improvement.<br>
&gt; Perhaps, getting the OpenGL Context and rendering our polygonal object using<br>
&gt; OpenGL commands; thus skipping the VTK&#39;s pipeline processing. Is this<br>
&gt; feasible?<br>
&gt; Thanks in advance for any help.<br>
&gt; Regards,<br>
&gt; Fauze<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <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:<br>
&gt; <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>
&gt;<br>
</div></div></blockquote></div><br></div>