The JOGL project hosts the development version of the Java™ Binding for the OpenGL® API, and is designed to provide hardware-supported 3D graphics to applications written in Java. 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 as ...
7
votes
2answers
900 views
What causes some computers to have no or slow OpenGL, and how to fix it?
I am using Java with JOGL to create OpenGL enhanced 2D graphics. The graphics operations I use are nothing fancy, and should be supported by almost any recent graphics card. For example, my game ...
5
votes
1answer
227 views
Can I leverage the fact that my scene is often static to improve OpenGL (JOGL) performance?
My scene is drawn based on the location of several (often several million) vertices (kept in VBO's) and a camera. I can easily tell in my code when my scene has changed and when it hasn't. There are ...
4
votes
3answers
584 views
Why would GLCapabilities.setHardwareAccelerated(true/false) have no effect on performance?
I've got a JOGL application in which I am rendering 1 million textures (all the same texture) and 1 million lines between those textures. Basically it's a ball-and-stick graph.
I am storing the ...
4
votes
3answers
504 views
Error when trying to use VBO “array vertex_buffer_object must be disabled to call this method”
EDIT
I have effectivley re-wrote this question in order to greatly imrpove its quality - see revision logs if you must
I have narrowed down my problem to the initialisation phase of my program, when ...
3
votes
0answers
158 views
Application using JOGL stays in Limbo when closing
I'm writing a game using Java and OpenGL using the JOGL bindings. I noticed that my game doesn't terminate properly when closing the window even though I've set the closing operation of the JFrame to ...
2
votes
2answers
946 views
How should I do 3D games through Java on a mac?
I have been self-teaching myself Java on the mac mostly because the language is cross-platform. Recently, I have been only able to develop 2D games using the Graphics2D class.
Now, I want to learn ...
2
votes
2answers
1k views
Are there any OpenGL ES 2.0 examples for JOGL?
I've scoured the internet for the last few hours looking for an example of how to run even the most basic OpenGL ES 2 example using JOGL but "by Jupiter!" it has been a total fail.
I tried ...
1
vote
2answers
71 views
Calling opengl32.DLL from java?
I don't like LWJGL in some cases, so I prefer to use Swing. The thing is that Swing doesn't have OpenGL. I have tried JOGL and it's a mess to install, needs external jars, and I have yet to get it ...
1
vote
1answer
136 views
Mapped texture to a gluSphere not wrapping correctly
I have a 3D sphere rendered using JOGL by means of GLUquadric. I'm trying to add a texture but it is not rendering as correctly.
Does anyone understand why the texture (upper-right of sphere) isnt ...
1
vote
2answers
247 views
Multi-threaded JOGL Problem
I'm writing a simple OpenGL application in Java that implements the Monte Carlo method for estimating the value of PI. The method is pretty easy. Simply, you draw a circle inside a unit square and ...
1
vote
2answers
522 views
[JOGL] My program is too slow, how can I profile with Eclipse?
My simple opengl program is really toooo slow and not fluid.
I'm rendering 30 sphere with simple illumination and simple materials.
The only complex computing stuff I do is a collision detection ...
1
vote
1answer
47 views
Jogl2 won't accept jogl 1.0 code - GL_LIGHTING and GL_LIGHT_MODEL_AMBIENT cannot be resolved or is not a field?
I'm trying to run my code on jogl 2.0 , for the first time (until now I worked with jogl 1.0) however Eclipse throws to almost every that I have a "cannot be resolved or is not a field" message .
...
1
vote
1answer
588 views
JOGL hardware based shadow mapping - computing the texture matrix
I am implementing hardware shadow mapping as described here.
I've rendered the scene successfully from the light POV, and loaded the depth buffer of the scene into a texture. This texture has ...
1
vote
0answers
207 views
JOGL Hardware Shadow Mapping Transparent Shadow Texture
I'm using hardware shadow mapping on JOGL based on the demo(HardwareShadowMapping) supplied by the distribution. After generating the shadow texture from lights point of view, I apply it to my scene ...
0
votes
2answers
158 views
Cant import Sun openGL
I've been working with JOGL and I've ran into a problem. The problem is when I try to import import com.sun.opengl.*; on Eclipse, Eclipse doesn't recognize it. Does anyone know where this library is? ...
0
votes
1answer
147 views
rotate sphere horizontally around another sphere
I currently have an earth and a moon. What I'm trying to achieve is to have the moon physically rotate around the earth horizontally along the equator along a circular path.
moonAngle = ...
0
votes
1answer
175 views
Rendering two textures with blending and alpha test
What I am looking for is the following: I have a circle on a square image, alpha is 0 at the corners
and also a square shadow, alpha is 0 everywhere else
I would like to have as final result a ...
0
votes
2answers
233 views
What techniques can I use to render very large numbers of objects more efficiently in OpenGL?
You can think of my application as drawing a very large ball-and-stick diagram (or graph). At times, this graph can get very large, where the number of elements even outnumbers the pixels on the ...
0
votes
2answers
517 views
Lighting with VBO
INTRO
I'm using a Java JOGL wrapper called processing.org and I have coded some environment on it and I'm quite proud of it even if it has some library stuff that I didn't know anything about it ...
0
votes
2answers
584 views
Java OpenGl Rotating Cube Problem!
OK, so I successfully learned how to bind textures to quads and display this cool looking crate. However, when I rotate the cube something goes wrong. During rotation the back-face of the cube ...
0
votes
1answer
183 views
Texture will not rotate with gluSphere
I have a gluSphere generated in my display that is rotating, but having a problem with the texture rotating with the sphere as well. So in a nutshell, no matter how the sphere rotates, the texture ...
0
votes
1answer
170 views
Selective jogl texture transparancy depending on bitwise magic?
I have rewritten some code to allow to load bitmaps to be loaded as textures and if a pixel has a max green color component it is marked transparent. What is odd is that I cannot use the value from a ...
0
votes
3answers
601 views
Struggling to get set up with JOGL2.0
I did have JOGL1.1 set up and working, but I soon discovered that it did not support the latest OpenGL, so I started work on upgrading to JOGL2.0 it's not gone too well.
Firstly, is it worth me ...
0
votes
0answers
97 views
problem adding bumpmap to textured gluSphere in JOGL
I currently have one texture on a gluSphere that represents the Earth being displayed perfectly, but having trouble figuring out how to implement a bumpmap as well.
The bumpmap resides in ...
0
votes
0answers
36 views
Errors calling certain gl-based classes
Following this example code, I'm trying to use glGenFramebuffersEXT(), GL2.GL_FRAGMENT_SHADER_ARB, but I get these
two types of highlighted errors wherever they are called:
The method ...
-2
votes
1answer
92 views
3d objects in binary files
Currently I have 11 3d spheres created at runtime in my application. The application runs well as it is, but I'm anticipating some garbage collection hiccups due to camera panning. Would performance ...
-5
votes
2answers
138 views
Advice on OpenGL 2.1 [closed]
I'm looking to finally get into OpenGL to bring some game ideas of mine to life! As I want to aim for lower class systems I'm probably looking at OpenGL 2.0/2.1 using JOGL (as I know Java the best).
...