Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Volume Rendering - Resolution & OutofMemory

Hi TAN TOH FEI,

> I tried to render a volume graphics in my Unix workstation (512MB memory).
> The best resolution I can get is 128x128x128 voxels (float data type). If I
> try to use 256x256x256 voxels, the system gave me the "OutOfMemory"
> Exception.
> 
> I execute my program as below:
> 
> % Java -mx384m myprogram
> 
> Note: I did try with different memory number such as 448, 256 etc.
> 
> According to my calculation (float data is 4 bytes), memory needed should be
> (256 x 256 x 256 x 4) = 64MB.
> 
> Can anyone help me in this context? No major programs are being executed at
> the background of the workstation.

Volume rendering must store the pixels in six different
organizations, which it switches between as you rotate the
volume.  If you watch closely as you rotate in Test61 you'll
see it switch.  So you really need 6 * 64MB = 384MB.

The memory inefficiency of the old versions of Java3D may
even double that.  Once the Java3D team gets the bugs out
of version 1.2.1, hopefully we'll be able to use its better
memory management features.

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690