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

Re: Java2D versus Java3D

Maohai:

First a very basic question, is it possible to use Java3D
but not have the effect of 3D?
If you look inside the little bit of logic in subs.py in the "makeDisplay()" routine, you'll see how it creates this effect -- basically when you make the display this way (as opposed to using makeDisplay2D() or makeDisplay3D(), it looks at the mappings and if it does not find one for the z axis, -and- if 3D is available, then it uses these two lines:
  tdr = TwoDDisplayRendererJ3D()
  disp = DisplayImplJ3D("Jython3D",tdr)
to create the 2D display using the 3D renderers.

tom



 
 
  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