Right now it is not possible to reliably mix Java 3D and OpenGL in the same window.
In theory it is possible, but not supported.  You could get the native window handle
through AWT, create your own OpenGL context, and tap into just the right place in
the Canvas3D callbacks to get it to work.  But it is very tricky.  Extensibility of this
nature is one of the features that we would like to add to Java 3D.

Doug Twilleager
Sun Microsystems

-------- Original Message --------

Subject:  [JAVA3D] OpenGL <-> Java3D
Date:  Wed, 14 Jan 2004 10:33:12 -0500
From:  "Yohan Baillot (Contractor)" <[EMAIL PROTECTED]>
Reply-To:  Discussion list for Java 3D API <[EMAIL PROTECTED]>
To:  [EMAIL PROTECTED]
References:  <[EMAIL PROTECTED]>

Dear all

Alan, thanks for the tip. Does the Java3D team onfirm Alan statement that OpenGL and Java3D cannot be mixed? It seems strange to me since I thought Java3D was implemented in OpenGL in low level anyway (when using OpenGL distribution), therefore there should be some way to mix both, however that require some information from the Java3D team. Could we have this info? Specifically, how to exchange drawing surface parameters between Java3D and OpenGL as well as synchronization issues.

thanks

Yohan
 
 

Date:    Tue, 13 Jan 2004 09:00:18 -0800
From:    Alan Hudson <[EMAIL PROTECTED]>
Subject: Re: OpenGL <-> Java3D

Yohan Baillot (Contractor) wrote:

>
> Dear all,
>
> I am currently using OpenGL in my project to render graphics but I would
> like to use
> some of the Java3D and JMF tools as well. I have now the problem to let
> Java3D know
> what display surface created by OpenGL to use to draw. I must as well
> have a way to
> get a pixel array from JMF to create a texture in OpenGL. Is there
> anyone who has
> experience exchanging these parameters between Java and OpenGL and who would
> have already work out the necessary conversions?
>
You do not have this much freedom with Java3D.  It expects to rule the
world, so you cannot hand it a surface and expect to mix Java3D and
OpenGL commands.  We are considering how to do this with our upcoming
open source scenegraph API(Aviatrix), but its not released yet.
Pershaps Xith3D could help, but I don't know if they are exposing this
level of access or not.

--
Alan Hudson
President: Yumetech, Inc.                     http://www.yumetech.com/
Web3D Open Source Chair       http://www.web3d.org/TaskGroups/source/

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