<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>May be case of 32 bit operating system ? </DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV>&nbsp;</DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=sergio.aguirre@gmail.com 
href="mailto:sergio.aguirre@gmail.com">Sergio Aguirre</A> </DIV>
<DIV><B>Sent:</B> Friday, February 01, 2013 10:37 AM</DIV>
<DIV><B>To:</B> <A title=vtkusers@vtk.org 
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV><B>Subject:</B> [vtkusers] problem with 
vtkOpenGLGPUVolumeRayCastMapper</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr><FONT face="arial, helvetica, sans-serif">Hi everyone </FONT>
<DIV><FONT face="arial, helvetica, sans-serif"><BR></FONT></DIV>
<DIV><FONT face="arial, helvetica, sans-serif">I recently upgraded my video card 
from a FirePro V7900 with 2GB to a FirePro W7000 with 4GB </FONT></DIV>
<DIV><FONT face="arial, helvetica, sans-serif"><BR></FONT></DIV>
<DIV><FONT face="arial, helvetica, sans-serif">I have been consistently been 
using <SPAN 
style="BACKGROUND-COLOR: rgb(249,250,252); COLOR: rgb(0,0,0)">vtkGPUVolumeRayCastMapperand 
thus </SPAN><SPAN 
style="BACKGROUND-COLOR: rgb(249,250,252); COLOR: rgb(0,0,0)">vtkOpenGLGPUVolumeRayCastMapper 
to volume render medical datasets with the following set up </SPAN></FONT></DIV>
<DIV><FONT face="arial, helvetica, sans-serif"><SPAN 
style="BACKGROUND-COLOR: rgb(249,250,252); COLOR: rgb(0,0,0)"><BR></SPAN></FONT></DIV>
<DIV><SPAN style="BACKGROUND-COLOR: rgb(249,250,252)"><FONT color=#000000 
face="arial, helvetica, sans-serif">
<DIV>dcmMapper-&gt;SetMaxMemoryInBytes(2147483648); </DIV>
<DIV>dcmMapper-&gt;SetMaxMemoryFraction(0.90);</DIV>
<DIV>dcmMapper-&gt;SetAutoAdjustSampleDistances(1); </DIV>
<DIV>dcmMapper-&gt;SetBlendModeToComposite();</DIV>
<DIV>dcmMapper-&gt;SetInput(dcmVImage);</DIV>
<DIV>dcmMapper-&gt;Update(); <BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>So in order to take advantage of the 4GB of my new video card I decided to 
change the max memory amount </DIV>
<DIV>&nbsp;</DIV>
<DIV>dcmMapper-&gt;SetMaxMemoryInBytes(4294967296); <BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>However, once I do that the applications crash. </DIV>
<DIV>&nbsp;</DIV>
<DIV>I have followed in debug at what point does it crash: </DIV>
<DIV>&nbsp;</DIV>
<DIV>Apparently the variable "Loaded" of vtkOpenGLGPUVolumeRayCastMapper changes 
from TRUE to FALSE at line 790</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>this-&gt;Loaded=textureSize[0]*textureSize[1]*textureSize[2]*vtkAbstractArray::GetDataTypeSize(scalarType)*scalars-&gt;GetNumberOfComponents()&lt;=maxMemoryInBytes;</DIV>
<DIV>&nbsp;</DIV>
<DIV>and thus the application later crashes in line 1071</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>&nbsp; vtkIdType *GetLoadedExtent()</DIV>
<DIV>&nbsp;&nbsp;&nbsp; {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; assert("pre: loaded" &amp;&amp; 
this-&gt;Loaded);</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return this-&gt;LoadedExtent;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I maintain the maxmemory ivar to 2GB all works OK, once I place it over 
2GB it fails. </DIV>
<DIV>&nbsp;</DIV>
<DIV>I noticed that vtkOpenGLGPUVolumeRayCastMapper has a local maxMemoryInBytes 
which is 2147483648</DIV>
<DIV>&nbsp;</DIV>
<DIV>Do I need to change this value and recompile/install VTK in order to use 
the 4GB of my video card? </DIV>
<DIV>&nbsp;</DIV>
<DIV>Any suggestion would be appreciated. </DIV>
<DIV>&nbsp;</DIV>
<DIV>S</DIV></DIV></DIV></FONT></SPAN></DIV></DIV>
<P>
<HR>
_______________________________________________<BR>Powered by 
www.kitware.com<BR><BR>Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages 
on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow 
this link to 
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></DIV></DIV></DIV></BODY></HTML>