J3D and JOGL runtime ver. check...and odd msg.

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

J3D and JOGL runtime ver. check...and odd msg.

LordSmoke
This seems as if it should be trivial, but a search produced nothing obviously useful.

Given, my JOGL/J3D interaction is only through SimpleUniverse in Java3D...

1) Is there a way to get the Java3D version info
2) Is there a way to get the JOGL version info

and somewhat related

3) I am getting the following printout on the console at startup:

3D [dev] 1.6.0-pre9-daily-experimental daily

I vaguely recall that I did something for this to appear, but maybe not. I have traced all the startup code, but I just don't see where or what I might have done. Anyone know where this is coming from or what call, if any, I might be making to generate it?

TIA, LS
Reply | Threaded
Open this post in threaded view
|

Re: J3D and JOGL runtime ver. check...and odd msg.

hharrison
It's not really exposed (at least on the Java3d side)  But it could be through some system properties.

The printout you're seeing is emitted unconditionally by the Java3d loading code, I've been meaning to turn that
back off, I will do so after providing a Query method for the basic version info.

Cheers,

Harvey
Reply | Threaded
Open this post in threaded view
|

Re: J3D and JOGL runtime ver. check...and odd msg.

LordSmoke
hharrison wrote
It's not really exposed (at least on the Java3d side)  But it could be through some system properties.

The printout you're seeing is emitted unconditionally by the Java3d loading code, I've been meaning to turn that
back off, I will do so after providing a Query method for the basic version info.

Cheers,

Harvey
Hi, Harvey. Whew! I thought I was having a senior moment with the message.

No hurry, but what you describe sounds convenient and informative.  I like to provide the user with general environmental information upon request. Best, LS
Reply | Threaded
Open this post in threaded view
|

Re: J3D and JOGL runtime ver. check...and odd msg.

Sven Gothel
Administrator
In reply to this post by LordSmoke
On 01/13/2014 10:05 PM, LordSmoke [via jogamp] wrote:
> This seems as if it should be trivial, but a search produced nothing obviously
> useful.
>
> Given, my JOGL/J3D interaction is only through SimpleUniverse in Java3D...
>
> 1) Is there a way to get the Java3D version info
> 2) Is there a way to get the JOGL version info
Use com.jogamp.opengl.JoglVersion

<http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Runtime_Version_Check>

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: J3D and JOGL runtime ver. check...and odd msg.

LordSmoke
Sven Gothel wrote
On 01/13/2014 10:05 PM, LordSmoke [via jogamp] wrote:
> This seems as if it should be trivial, but a search produced nothing obviously
> useful.
>
> Given, my JOGL/J3D interaction is only through SimpleUniverse in Java3D...
>
> 1) Is there a way to get the Java3D version info
> 2) Is there a way to get the JOGL version info
Use com.jogamp.opengl.JoglVersion

<http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Runtime_Version_Check>

~Sven




signature.asc (911 bytes) <http://forum.jogamp.org/attachment/4031198/0/signature.asc>
Thank you, sir. -LS
Reply | Threaded
Open this post in threaded view
|

Re: J3D and JOGL runtime ver. check...and odd msg.

LordSmoke
In reply to this post by LordSmoke
For completeness and to assist others, the following code does the trick for jogl:

joglVersionString = com.jogamp.opengl.JoglVersion.getInstance().getAttribute(java.util.jar.Attributes.Name.IMPLEMENTATION_VERSION);

System.out.print("JOGL "+ joglVersionString+" detected...\n");

The current result...

JOGL 2.1.4-rc-20131223 detected...