Net Beans and JOGL2 plugin

Hello, just downloaded and installed latest neatbeans and the open gl pack plugin.
I created a new project with the JOGL template (simple) and got a bunch of errors, eg:

The missing implementation of displayChanged is not a problem, just add it. but the otehr errors are not as easy.

I know that the plugin for JOGL 2 (netbeans-opengl-pack_0.6_beta) is a work in progress but I assume that the start up framewrok should work automaticly.

I use:
Windows XP
Net Beans 6.7.1 with the netbeans-opengl-pack_0.6_beta plugin
Iv’e used JOGL 1.1 before, not with Net Beans tough.

//HermanssoN

Hi HermanssoN,
thanks for testing. I tested it with a fresh NetBeans 6.7 install and couldn’t reproduce the issue.

Its very odd since it seems like NB is compiling the JOGL2 template with JOGL1 in the classpath (displayChanged(…) is no longer in JOGL2). What JOGL version does the capabilities viewer report? (Tools -> GL Capabilities Viewer)

[edit] have you copied jogl.jar (JOGL1) somewhere into a JRE dir?

Actually before installing the beta plugin I installed etbeans-opengl-pack_0.5.5 at first. Found out that that it only contained JOGL 1. So I uninstalled Netbeans, re installeda it and the added the newer plugin.
Does is set up a system variable or something, e.g reinstalling net beans wasn’t enough??

//HermanssoN

NB stores all user data in ${HOME}/.netbeans/ by default (configurable via /netbeans/etc/netbeans.conf) AFAIK this is not removed if you uninstall nb. If you remove it you have pretty much a fresh install.

upgreading from an older version to 0.6 might cause some problems, it seems like i forgot to increment some version numbers.

btw: “installing” netbeans is not needed at all… just download the zip bundle, unzip -> run :wink:

I remebered follwong a tutorial getting JOGLE running using eclipse. The tutorial said to put jogl.jar + dll files in the Java SDK…stupid.
Anyways, I re-installed the Java SDK and evrything works fine now.
thank you for your help.
Must say that this plugin saves the programmer lots’s of tidious set up environment work, Net Beans is the way to go when dealing with JOGL :slight_smile:

thank you very much for the kind words. Much appreciated.

i recently found this blog entry: http://www.gaanza.com/blog/setting-up-jogl-in-ubuntu/
It is one of those describing step by step the worst case scenario… I really don’t understand why people start writing tutorials without being familiar with the topic. (don’t panic you are not the first who ran into this trap :wink: )

Yeah, there are quite a few of those infesting google :persecutioncomplex:

btw, are there any tutorials using the GL3?
Gl3 contains openGL 3.1 if I understod correctly?

GL3 gl = drawable.getGL().getGL3();
//gl.glMatrixMode(GL3.GL_PROJECTION); this don't exist inn the GL3 interface, same goes for the GL2GL3 interface

Is it meant to mix the GL2 and GL3 depending on what you to do, eg:


 GL2 gl2 = drawable.getGL().getGL2();
 GL3 gl3 = drawable.getGL().getGL3();

 gl2.glMatrixMode(GL2.GL_PROJECTION);
 gl2.glLoadIdentity();

gl3.glBindBuffer(height, height);//random method avaibalbele with GL3

or is the GL3 syntaxs completly new, I’ve now that GL3 is supose to be a major change to the API, but still backwards compatible?

//HermanssoN

i tried to explain profiles a bit here: http://michael-bien.com/mbien/entry/jogl_2_opengl_profiles_explained

in your example you gave it would be better to use GL2GL3 instead of GL2. GL2GL3 is the common subset of GL3 and GL2. You cant use all functions of GL2 (in a gpu independent manner) if you requested a forward compatible GL3 context (OpenGL > 3.1 removed some stuff)…

[quote]or is the GL3 syntaxs completly new, I’ve now that GL3 is supose to be a major change to the API, but still backwards compatible?
[/quote]
it is only optionally backwards compatible (e.g nvidia promised to not drop functionality).

thanks

Off topic: Does anyone know if there is a plan for eclipse plugin for JOGL