Hi,

  The scene graph is added twice in your application.

    // Create a universe with the Java3D universe utility.
      SimpleUniverse universe = new SimpleUniverse(canvas3D);
      universe.addBranchGraph(scene3D);

        // This will move the ViewPlatform back a bit so the
        // obj1ects in the scene can be viewed.
        universe.getViewingPlatform().setNominalViewingTransform();
        universe.addBranchGraph(scene3D);

That's why you see two shape.

- Kelvin

----------------
Java 3D Team
Sun Microsystems Inc.


>X-Unix-From: [EMAIL PROTECTED]  Mon Jul 17 06:36:16 2000
>MIME-Version: 1.0
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
>Date: Mon, 17 Jul 2000 15:30:11 +0200
>From: Kristell VALOGNES <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Unique shape becomes 2 by rotating
>To: [EMAIL PROTECTED]
>
Hi,

My application deals with the rotating of a shape by using the mouse.
But when I rotate my shape, it looks like if I'had two shapes : the initial one and 
the rotated one.

This problem appears with Java3D_1.2.2
I never had this problem with Java3D_1.2, my shape was well rotating, and nothing was 
staying in the background.

Do you have an idea about that ?
I attach a piece of my application.

All your advices are welcome.
    Thanks,

            Kristell


Rotate.zip

Reply via email to