Questions tagged [jogl]

JOGL is the Java Binding for the OpenGL and OpenGL ES API. JOGL provides full access to the APIs in the OpenGL 1.3 - 3.0, 3.1 - 3.3, ≥ 4.0, ES 1.x and ES 2.x specification.

JOGL provides full access to the APIs in the OpenGL 1.3 - 3.0, 3.1 - 3.3, 4.0 - 4.5, ES 1.x - 3.x specification.

The JOGL project hosts the development version of the Java™ Binding for the OpenGL® API (JSR-231), and is designed to provide hardware-supported 3D graphics to applications written in Java.

Wiki:

Project:

Community:

Forum:

Related projects:

  • Java Binding for OpenCL (JOCL)
  • Java Binding for OpenAL (JOAL)
1092 questions
28
votes
7 answers

Maven and the JOGL library?

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…
Ricket
  • 33,368
  • 30
  • 112
  • 143
20
votes
3 answers

Where can I find the package javax.media.opengl?

I need to import the javax.media.opengl.* package. From Java OpenGL Wiki to http://jogamp.org/, I am sort of confused which download I need. There is a long list of build downloads here, but they are all .7z files and I am looking for a download…
O_O
  • 4,397
  • 18
  • 54
  • 69
20
votes
2 answers

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

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…
user515655
  • 989
  • 2
  • 10
  • 24
20
votes
6 answers

Speed of cos() and sin() function in GLSL shaders?

I'm interested in information about the speed of sin() and cos() in Open GL Shader Language. The GLSL Specification Document indicates that: The built-in functions basically fall into three categories: ... ... They represent an operation graphics…
ulmangt
  • 5,343
  • 3
  • 23
  • 36
18
votes
5 answers

nested type cannot hide an enclosing type

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…
user1204570
  • 209
  • 1
  • 3
  • 7
17
votes
4 answers

What are some faster alternatives to Java2d?

I'm looking to do some physics simulations and I need fast rendering in Java. I've run into performance issues with Java2d in the past, so what are the fast alternatives? Is JOGL significantly faster than Java2d?
KingNestor
  • 65,976
  • 51
  • 121
  • 152
17
votes
1 answer

What does the -XstartOnFirstThread VM Argument do / mean?

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…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
16
votes
6 answers

Deallocating Direct Buffer Native Memory in Java for JOGL

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…
sparrow400
  • 315
  • 1
  • 3
  • 9
14
votes
3 answers

OpenGL performance for 10,000 static cubes

I'm running the following Scala code. It compiles a single display list of 10,000 cubes. Then it displays them in the display loop with an animator that runs as fast as it can. But the FPS is only around 20. I had thought that using display lists…
mentics
  • 6,852
  • 5
  • 39
  • 93
14
votes
1 answer

How do I render a convincing skydome?

I am writing an OpenGL ES 2.0 app which renders a 3D island. I already have code to generate a sky dome around the island. This is a hemisphere comprised of triangles which over lay the island with z point upwards. The dome has some very basic…
locka
  • 5,809
  • 3
  • 33
  • 38
13
votes
5 answers

Alternative to Java3D

Colleagues of mine are using Java3D for visualizing results of finite element simulations. The problem is that Java3D seems to be somehow dead, and it is a pain on OSX. This is one of the reasons we are looking for alternatives. Quite a lot of work…
Philippp
  • 847
  • 1
  • 8
  • 17
13
votes
1 answer

OpenGL/JOGL: Multiple triangle fans in a vertex array

I'm working on making some moderately simple shapes with vertex arrays, and I'm making some good headway, but now I want to draw 2 (or more) triangle fan objects. Is there any way to only make one call to gl.glDrawArrays(GL.GL_TRIANGLE_FAN,... or…
dimo414
  • 47,227
  • 18
  • 148
  • 244
13
votes
3 answers

Automated testing for OpenGL application

I have a Java Application that uses JOGL to provide a large part of the GUI. Is there any tool which you know of, or have used which can automate the testing of OpenGL applications (or more specificly those using JOGL) Just to update: The tool can…
hhafez
  • 38,949
  • 39
  • 113
  • 143
12
votes
4 answers

How would one implement an FPS camera?

So I'm currently working on some FPS game programming in OpenGL (JOGL, more specifically) just for fun and I wanted to know what would be the recommended way to create an FPS-like camera? At the moment I basically have a vector for the direction the…
Marc Müller
  • 717
  • 6
  • 15
11
votes
5 answers

Where can I download JOGL?

I'm looking to start using Java Open GL, but I can't find it.
William
  • 8,630
  • 23
  • 77
  • 110
1
2 3
72 73