jogl

What does the -XstartOnFirstThread VM Argument do / mean?

旧城冷巷雨未停 提交于 2019-11-27 16:04:54
I can't find documentation for the VM argument -XstartOnFirstThread . Seems necessary for me to run JOGL through LWJGL on my Mac. What does it mean? It seems to be that some process wants thread 0. Is this correct? Please note: I have a run() method in my main class. It doesn't seem to be overriding anything and I'm not implementing runnable. Example source code I'm running here: http://www.lwjgl.org/guide As of Java 1.7.0_u4, this option is documented in java -X on the Mac OSX platform. The option causes the JVM to use thread 0 to start the application. Apparently this is necessary to get Mac

Maven and the JOGL library?

荒凉一梦 提交于 2019-11-27 11:08:15
I've been studying Maven in my free time over the last several days but can't seem to figure out how to organize a project so that the JOGL libraries are used. I would preferably like the following: Automatically download, if necessary, the OS-specific JOGL zip file from here (contains 4 jar files and some native library files (.so/.dll)); or depend on a Maven project which is a wrapper of one of the files. Unzip that zip file appropriately, so that: the jar files are added to the classpath and deployed as necessary, and the native library files are added to the final jar file (would this

nested type cannot hide an enclosing type

混江龙づ霸主 提交于 2019-11-27 05:05:31
What does this error mean? The nested type HelloWorld cannot hide an enclosing type Where HelloWorld is the java file name. Here's the code if you need it: import net.java.games.jogl.*; public class HelloWorld { // open HelloWorld public class HelloWorld { // open HelloWorld public static void main (String args[]) { // open main try { // open try System.loadLibrary("jogl"); System.out.println("Hello World! (The native libraries are installed.)"); } // close try catch (Exception e) // all try's need a catch { } // even if the catch does nothing } // close main } // close HelloWorld ); You have

Deallocating Direct Buffer Native Memory in Java for JOGL

喜夏-厌秋 提交于 2019-11-27 04:39:40
I am using direct buffers (java.nio) to store vertex information for JOGL. These buffers are large, and they are replaced several times during the application life. The memory is not deallocated in time and I am running out of memory after a few replacements. It seems that there is not good way to deallocate using java.nio's buffer classes. My question is this: Is there some method in JOGL to delete Direct Buffers? I am looking into glDeleteBuffer(), but it seems like this only deletes the buffer from the video card memory. Thanks The direct NIO buffers use unmanaged memory. It means that they

What does the -XstartOnFirstThread VM Argument do / mean?

余生长醉 提交于 2019-11-27 04:07:35
问题 I can't find documentation for the VM argument -XstartOnFirstThread . Seems necessary for me to run JOGL through LWJGL on my Mac. What does it mean? It seems to be that some process wants thread 0. Is this correct? Please note: I have a run() method in my main class. It doesn't seem to be overriding anything and I'm not implementing runnable. Example source code I'm running here: http://www.lwjgl.org/guide 回答1: As of Java 1.7.0_u4, this option is documented in java -X on the Mac OSX platform.

Applying map of the earth texture a Sphere

你离开我真会死。 提交于 2019-11-26 23:17:58
i been trying to implement a 3D animation in openGL (using JOGL) of a solar system so far i have 5 planets of different sizes but the problem i seem to be having is i cant add a map of the earth texture on a Sphere can anybody help me on how its done? This is the code i have so far in my Display method: @Override public void display(GLAutoDrawable drawable) { GL2 gl = drawable.getGL().getGL2(); GLU glu = new GLU(); gl.glClear(GL.GL_COLOR_BUFFER_BIT); //make sure we are in model_view mode gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glLoadIdentity(); glu.gluLookAt(10,20,20,0,3,0,0, 20, 0); //gl

nested type cannot hide an enclosing type

允我心安 提交于 2019-11-26 11:27:55
问题 What does this error mean? The nested type HelloWorld cannot hide an enclosing type Where HelloWorld is the java file name. Here\'s the code if you need it: import net.java.games.jogl.*; public class HelloWorld { // open HelloWorld public class HelloWorld { // open HelloWorld public static void main (String args[]) { // open main try { // open try System.loadLibrary(\"jogl\"); System.out.println(\"Hello World! (The native libraries are installed.)\"); } // close try catch (Exception e) // all

Deallocating Direct Buffer Native Memory in Java for JOGL

有些话、适合烂在心里 提交于 2019-11-26 11:14:32
问题 I am using direct buffers (java.nio) to store vertex information for JOGL. These buffers are large, and they are replaced several times during the application life. The memory is not deallocated in time and I am running out of memory after a few replacements. It seems that there is not good way to deallocate using java.nio\'s buffer classes. My question is this: Is there some method in JOGL to delete Direct Buffers? I am looking into glDeleteBuffer(), but it seems like this only deletes the

Why does java app crash in gdb but runs normally in real life?

痴心易碎 提交于 2019-11-26 10:53:22
问题 Attempting to run java app from gdb results in segfault, yet running app alone does not. This app is a .JAR which uses JOGL and a bit of memory-mapping to talk to the GPU. Stacktrace below hints at some sort of memory access problem but I don\'t understand why it manifests in GDB but not in real life. Could there be some environment factor gdb needs to know to allow proper execution? This issue persists between JVMs OpenJDK 6 and 7, as well as Oracle JRE 7. The oracle JRE runs a little