Hi Pierre,

I experienced the same thing. I found that removing the explicit repaint() call fixed 
that problem. I'm not sure why it happens. If anyone knows why I'd love to hear.

Incidentally, I'm attaching my slightly revised version of CapturingCanvas3D.java 
which makes it a little easier to use (imho). To use it in your application just call:

canvas.captureNextFrame("file.jpg");

Note that if I put canvas.repaint(); after that line I experience the blanking problem 
you mentioned.

josh

----------------------------------------------------
Joshua L. Richmond, BASc, MSc.  
Systems Engineering (R&D)

MD Robotics
9445 Airport Rd, Brampton, ON, Canada
(905) 790-2800 x4332
-----------------------------------------------------

>>> [EMAIL PROTECTED] 01/23/01 05:49PM >>>
Hi,

I have implemented CapturingCanvas3D and all is well except I get a blank
Capture0.jpg all the time.  When it happens, the screen turns white for
about 5 seconds.  Sometimes it will happen after I rotate or translate the
image.  When it does work, the screen blinks. The empty jpeg files are
annoying and I would like to fix it.  Has anyone else noticed this?  Is
there a way to test when this is going to happen?  Could one decrement the
counter and to repaint again?

===========================================================================
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".

BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Josh Richmond
TEL;WORK:4332
EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED]
N:Richmond;Josh
X-GWUSERID:JRICHMON
END:VCARD

Reply via email to