Hi,

I am resending this query since i did not get any reply to my earlier
mail. I am trying to save a JPEG image by clicking on the Canvas3D of my
application. I need to change the background of the Canvas3D before
exporting it to JPEG. Also, the background color should be changed to
its original color after the JPEG file is exported. The background
change code is written in a class that extends the Observer Interface
and the Renderer functions (exporting the JPEG ) are written in another
class that extends the Canvas3D class.

However, after changing the background color of the Canvas3D and calling
repaint method of the Canvas3D, the Renderer methods namely postSwap etc
are not called till the Observer class execution is completed. I am
unable to get the JPEG image with the changed background color.

Doesn't the J3D-BehaviorScheduler thread (the one executing the Observer
class methods) and the J3D-Renderer thread supposed to run in parallel?
I am changing a variable flag value and checking it in the Renderer
functions assuming that both these threads are in parallel. Can anyone
let me know how to call the Canvas3D methods when running other threads
especially from Swing / Branchgraph updations?

Thanks in advance,
Raghav

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