AW: Java2D versus Java3D

  • To: "'m huang'" <qomo@xxxxxxxxx>
  • Subject: AW: Java2D versus Java3D
  • From: Mathias Stümpert <atzes@xxxxxx>
  • Date: Fri, 6 Dec 2002 01:11:27 +0100
Hi Maohai, 

> First a very basic question, is it possible to use Java3D
> but not have the effect of 3D?

Try this:

DisplayRenderer renderer = new TwoDDisplayRendererJ3D();
Display display = new DisplayImplJ3D("2D-Display", renderer);

This will give you a J3D-Display with a J2D-Display behavior.

Cheers, Mathias