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

Java2D versus Java3D

Hi Maohai,

_From some of your questions, I gather that you are using
Java2D (DisplayImplJ2D) rather than Java3D (DisplayImplJ3D).

I recommend Java3D, even for purely 2-D graphics. It has
better performance for user interactions, including 2-D
panning and zooming. Much better in some cases. Furthermore,
Java3D's texture mapping provides a reasonable way to render
images remapped to non-rectangles, where Java2D does not
(DisplayImplJ2D emulates texture mapping as lots of little
triangles, with miserable performance).

Good 3-D graphics are becoming so cheap and ubiquitous
that there is really no reason not to use them, even for
2-D graphics. This is especially true for projects like
yours aimed at 2007 and beyond.

Cheers,
Bill


 
 
  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