Hi! (and Please Help!!)

I have been working on a project using Java3D for which it is required to
save an offscreen image separately from the displaying of an onscreen one.
I can only save an offscreen image after its onscreen counterpart has been
"realized" (i.e., added to a JPanel contained by a JFrame which is
setVisible()) and the thread for the onscreen object is "completed" (--
sorry about the terminlogy, but I am referring to the use of a synchronized
block with wait() w.r.t the onscreen object and a notify() in the onscreen
object's postSwap()).  Below are the (I hope) relevant facts:

I am working on a SunBlade 100, with Solaris 8, Java 2sdk1.4.2_05, Java3D
1.3.1, and OpenGL 1.3.  The Sun provided OffScreenTest.java demo program
works, but the programs Test.java (cf. Re: Offscreen Rendering with empty
Image from Kevin Glass, 6/30/03) and SimpleOffScreenTest.java (cf. Re:
renderOffScreenBuffer & NullPointerException from Kelvin Chung, 06/17/03) do
not.  (Of course it is these latter programs that I wish to emulate.)  In
particular, during the execution of the Canvas3D function
waitForOffScreenRendering (and despite this call being in a try block) the
message "glversion == null" appears (not reflecting the println format in
the catch block) and the program hangs until I do a Cntl-C.  Further
observations are that, in OffScreenTest demo program:

a) When the declaration of the offscreen Canvas3D object is placed before
the onscreen one, a queryProperties yields "native.version=," for the
offscreen object. (But the program still works?!)  (For onscreen
native.version results, see (b).)

b) When the declaration of the offscreen Canvas3D object is in its original
position (or even just after the declaration of the onscreen one),
queryProperties yields "native.version=1.3 Sun OpenGL 1.3patch 113886-05 for
Solaris," for both offscreen and onscreen objects.

c) The first call to the offscreen object queryProperties function causes
the (again not caught by the try block) message "glXMakeCurrent fails".

Am I missing some nuance of Java3D?  Is there a problem with my setup,
especially w.r.t. Java/Java3D?

Any help is appreciated.  Additional information gladly provided.  Thanks.

Bill

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