<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> </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> </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->SetMaxMemoryInBytes(2147483648); </DIV>
<DIV>dcmMapper->SetMaxMemoryFraction(0.90);</DIV>
<DIV>dcmMapper->SetAutoAdjustSampleDistances(1); </DIV>
<DIV>dcmMapper->SetBlendModeToComposite();</DIV>
<DIV>dcmMapper->SetInput(dcmVImage);</DIV>
<DIV>dcmMapper->Update(); <BR></DIV>
<DIV> </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> </DIV>
<DIV>dcmMapper->SetMaxMemoryInBytes(4294967296); <BR></DIV>
<DIV> </DIV>
<DIV>However, once I do that the applications crash. </DIV>
<DIV> </DIV>
<DIV>I have followed in debug at what point does it crash: </DIV>
<DIV> </DIV>
<DIV>Apparently the variable "Loaded" of vtkOpenGLGPUVolumeRayCastMapper changes
from TRUE to FALSE at line 790</DIV>
<DIV> </DIV>
<DIV>
<DIV>this->Loaded=textureSize[0]*textureSize[1]*textureSize[2]*vtkAbstractArray::GetDataTypeSize(scalarType)*scalars->GetNumberOfComponents()<=maxMemoryInBytes;</DIV>
<DIV> </DIV>
<DIV>and thus the application later crashes in line 1071</DIV>
<DIV> </DIV>
<DIV>
<DIV> vtkIdType *GetLoadedExtent()</DIV>
<DIV> {</DIV>
<DIV> assert("pre: loaded" &&
this->Loaded);</DIV>
<DIV> return this->LoadedExtent;</DIV>
<DIV> }</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>If I maintain the maxmemory ivar to 2GB all works OK, once I place it over
2GB it fails. </DIV>
<DIV> </DIV>
<DIV>I noticed that vtkOpenGLGPUVolumeRayCastMapper has a local maxMemoryInBytes
which is 2147483648</DIV>
<DIV> </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> </DIV>
<DIV>Any suggestion would be appreciated. </DIV>
<DIV> </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>