<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>VTKEdge is a good extension to VTK, but I can't use it in my project because VTKEdge is released under GPL and I can't release my software under GPL.<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><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> Karthik Krishnan &lt;karthik.krishnan@kitware.com&gt;<br><b><span style="font-weight: bold;">A:</span></b> AGPX &lt;agpxnet@yahoo.it&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> vtkusers@vtk.org<br><b><span style="font-weight: bold;">Inviato:</span></b> Venerdì 31 ottobre 2008, 14:36:02<br><b><span style="font-weight: bold;">Oggetto:</span></b> Re: [vtkusers] Hardware Volume Rendering
 Quality<br></font><br>VTKEdge supports GPU ray casting. It uses floaring point textures. So<br>your quantization artefacts will be far less. It also handles NPOT<br>textures (assuming<br>of course that your graphics card supports floaring point textures and NPOT<br>textures)<br><br>See vtkedge.org<br><br>On Fri, Oct 31, 2008 at 3:00 AM, AGPX &lt;<a ymailto="mailto:agpxnet@yahoo.it" href="mailto:agpxnet@yahoo.it">agpxnet@yahoo.it</a>&gt; wrote:<br>&gt; Hello,<br>&gt;<br>&gt; I'm quite new to VTK, but looking at vtkOpenGLVolumeTextureMapper3D.cxx, it<br>&gt; seem to me that (probably for memory reason), 16 bit volumes are always<br>&gt; reduced to 8 bit. I'm very disappointed about this limit. A volume with 2560<br>&gt; different level, will be reduced to only 255! I wish to know: there are some<br>&gt; planning to support 16 bit hardware volume rendering in future release? In<br>&gt; addition, take a look at this code:<br>&gt;<br>&gt; int
 vtkOpenGLVolumeTextureMapper3D::IsTextureSizeSupported( int size[3] )<br>&gt; {<br>&gt;&nbsp;  if ( this-&gt;GetInput()-&gt;GetNumberOfScalarComponents() &lt; 4 )<br>&gt;&nbsp; &nbsp;  {<br>&gt;&nbsp; &nbsp;  if ( size[0]*size[1]*size[2] &gt; 128*256*256 )<br>&gt;&nbsp; &nbsp; &nbsp;  {<br>&gt;&nbsp; &nbsp; &nbsp;  return 0;<br>&gt;&nbsp; &nbsp; &nbsp;  }<br>&gt;&nbsp; &nbsp;  vtkgl::TexImage3D(vtkgl::PROXY_TEXTURE_3D, 0, GL_RGBA8, size[0]*2,<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  size[1]*2, size[2], 0, GL_RGBA, GL_UNSIGNED_BYTE,<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;Volume2 );<br>&gt; ...<br>&gt; }<br>&gt; Why the width and height of the texture are doubled in the call to the<br>&gt; TexImage3D? How much video-memory a volume (with less than 4 scalar<br>&gt; components) need?&nbsp;  (size[0] * 2) * (size[1] * 2) * size[2] * 4 ? That is,<br>&gt; 16
 bytes per voxel?<br>&gt; In addition, looking at UpdateVolumes. From the function<br>&gt; vtkVolumeTextureMapper3D::UpdateVolumes, I see the following code:<br>&gt;<br>&gt; ...<br>&gt;<br>&gt; int neededSize = powerOfTwoDim[0] * powerOfTwoDim[1] * powerOfTwoDim[2];<br>&gt;<br>&gt; ...<br>&gt;<br>&gt; switch (components)<br>&gt; {<br>&gt;&nbsp; &nbsp; &nbsp;  case 1:<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;Volume1 = new unsigned char [2*neededSize];<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;Volume2 = new unsigned char [3*neededSize];<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;Volume3 = NULL;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  break;<br>&gt; ...<br>&gt; }<br>&gt;<br>&gt;<br>&gt;<br>&gt; That is, for one component scalar, a volume need 5 times the neededSize<br>&gt; (i.e. the dimesion of the volume, nearest to the power of two) bytes of<br>&gt; system memory. Is this correct?<br>&gt;<br>&gt;<br>&gt;<br>&gt; Thanks in advance,<br>&gt;<br>&gt; -
 AGPX<br>&gt; ________________________________<br>&gt; Scopri la community di Io fotografo e video<br>&gt; Il nuovo corso di Gazzetta dello sport per diventare veri fotografi!<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><br><br><br>-- <br>Karthik Krishnan<br>R&amp;D Engineer,<br>Kitware Inc.<br>Ph: 518 371 3971 x119<br>Fax: 518 371 3971<br></div></div></div><br>



      <hr size=1><font face="Arial" size="2">Scopri la community di Io fotografo e video<br>
<a href=http://us.rd.yahoo.com/SIG=11ud6kror/**http%3A%2F%2Fwww.flickr.com%2Fgroups%2Fiofotografoevideo%2F>Il nuovo corso</a> di Gazzetta dello sport per diventare veri fotografi!</font></body></html>