<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 style><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 style><font face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,250,252);color:rgb(0,0,0)"><br></span></font></div><div style><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><br></div><div style>So in order to take advantage of the 4GB of my new video card I decided to change the max memory amount </div><div style><br></div><div style>dcmMapper->SetMaxMemoryInBytes(4294967296); <br>
</div><div style><br></div><div style>However, once I do that the applications crash. </div><div style><br></div><div style>I have followed in debug at what point does it crash: </div><div style><br></div><div style>Apparently the variable "Loaded" of vtkOpenGLGPUVolumeRayCastMapper changes from TRUE to FALSE at line 790</div>
<div style><br></div><div style><div>this->Loaded=textureSize[0]*textureSize[1]*textureSize[2]*vtkAbstractArray::GetDataTypeSize(scalarType)*scalars->GetNumberOfComponents()<=maxMemoryInBytes;</div><div><br></div>
<div style>and thus the application later crashes in line 1071</div><div style><br></div><div style><div> vtkIdType *GetLoadedExtent()</div><div> {</div><div> assert("pre: loaded" && this->Loaded);</div>
<div> return this->LoadedExtent;</div><div> }</div><div><br></div><div><br></div><div style>If I maintain the maxmemory ivar to 2GB all works OK, once I place it over 2GB it fails. </div><div style><br></div><div style>
I noticed that vtkOpenGLGPUVolumeRayCastMapper has a local maxMemoryInBytes which is 2147483648</div><div style><br></div><div style>Do I need to change this value and recompile/install VTK in order to use the 4GB of my video card? </div>
<div style><br></div><div style>Any suggestion would be appreciated. </div><div style><br></div><div style>S</div></div></div></font></span></div></div>