Hi,

       I have been making some tests with mixed-mode rendering with stereo
images. I use the renderField method of a subclass of Canvas3D to render a
Shape3D for each eye in stereo mode. The program seems to work but freezes
after a few frames.

I'm using JDK 1.4.0_01 and Java 3D 1.3, running in Windows 2000 with a
GeForce4 4200. Java 3D programs in retained mode run without problems in
stereo mode.

The code for the renderField method follows. I'd like to know if anyone has
experienced something like this and could help me...

  public void renderField(int fieldDesc) {
    super.renderField(fieldDesc);

    GraphicsContext3D gc = getGraphicsContext3D();
    switch(fieldDesc) {
      case Canvas3D.FIELD_LEFT:
        gc.draw(sphere1.getShape());
        break;
      case Canvas3D.FIELD_RIGHT:
        gc.draw(sphere2.getShape());
        break;
      case Canvas3D.FIELD_ALL: // works OK in monoscopic mode
         if (swappApp) {
           gc.draw(sphere1.getShape());
         }
         else {
           gc.draw(sphere2.getShape());
         }
         swappApp = !swappApp;
        break;
    }
  }

       Thanks in advance,

               Ricardo Nakamura
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 13/11/2002

Reply via email to