Hello,

I'm trying to make immediate mode rendering with Java 3D 1.2.1 or 1.2 on
Windows 2000.

But I have a BIG problem.

The Canvas3D (or java) paint the background of the Canvas3D twice !
One before paint is call, and one after paint is call.

When I say Background, I don't want to speek about J3D background Node, but
background as awt.


In the paint method of my subclass of Canvas3D I call super.paint(g) and
after a call my render method.

    public void paint(Graphics g)
    {
        System.err.println("paint in");

        // Must be call.
          super.paint(g);

        // My render
        render();

        // Wait to see the effect of render
        try { Thread.sleep(500); } catch(Exception e) { }

        System.err.println("paint out");
    }



All run Ok, my render method is good,
but after the 500 ms waiting the background is redraw.
Why ?

How and why the background is redraw twice, first before calling paint and
next after calling paint ?


I'have made test with mixed mode rendering, here all is ok, but the problem
is the render method is call in an other thread (J3D thread), not in swing
thread.

How J3d manage the background?

Thanks

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to