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 ...
0
votes
0answers
34 views
Using multiple uniform blocks in OpenGL
I'm using OpenGL with JOGL and want to use two unfirorm blocks in my vertex and pixel shaders. The following GLSL-Code shows the definitions:-
uniform perObject
{
Material uMaterial;
mat4 ...
1
vote
1answer
60 views
How to save am image of a screen using JOGL
Hope this is a better place to ask things like this.
I have a 2D scene with some sprites drawn in Swing frame. I need them to be saved as an image. The problem is every tutorial I found seem to be ...
0
votes
1answer
64 views
Distorted LookAt When Looking Up or Down?
I have a weird problem and I have no idea what's going on with it.
Recently started doing some OpenGL programming, going pretty well, hit some rough spots but worked my way through them and otherwise ...
0
votes
0answers
29 views
Java JOGL NEWT Window without FPSAnimator
how I am new to OpenGL and especally with JOGL.
I currently try to learn JOGL.
I dont like to create a special thread that runs the display method of my window, so I called it manually.
public static ...
0
votes
2answers
71 views
JOGL runs extremely slow from a jar file on other machines.
I am currently messing around with JOGL and JBullet, with some success. I'd like to share what I've created with my friends. I created a jar file and a .bat to open it with the argument ...
0
votes
1answer
139 views
How to load and draw this *.obj correctly?
I have a loader class for *.obj files (called GLModel) which has 2 main methods -
public GLModel(BufferedReader ref, boolean centerit, GL gl,Texture texture)
which use for *.obj load , and
...
0
votes
1answer
120 views
Can JOGL help me learn OpenGL?
I've decided to learn OpenGL. I worked through several tutorials. I've found it far too complex performing a simple task like doing sprite animation in openGL.
Now I read about JOGL which seems to be ...
0
votes
0answers
18 views
Fixed print on GLCanvas surface
Having extends class of GLCanvas and I want to print some fixed texts and pictures on its surface.
What is the intelligent solutions for that ?
So far I have -
class PhaseOne extends GLCanvas ...
1
vote
1answer
408 views
Playing movies with OpenGL in Java
I am trying to play a movie file into an OpenGL texture in a Java application. I am using JOGL and have a basic OpenGL scene, but I have no idea how to play a movie into a texture.
The only thing I ...
1
vote
1answer
107 views
How can I find the location of OpenGL object after rotation?
I have a rotating object, a cube, which I rotate in OpenGL as follows:
gl.glPushMatrix();
gl.glTranslatef(400.0f, 300.0f, 1300.0f);
gl.glRotatef(m_x, 4.0f, 0.0f, 0.0f);
gl.glRotatef(m_y, 0.0f, 4.0f, ...
1
vote
1answer
526 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
2answers
124 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 ...
-2
votes
1answer
100 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 ...
0
votes
1answer
175 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
1answer
270 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
410 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 ...
1
vote
1answer
190 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 ...
0
votes
2answers
619 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? ...
3
votes
0answers
192 views
Application using JOGL stays in Limbo when closing [closed]
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 ...
1
vote
2answers
524 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
1answer
967 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 ...
0
votes
1answer
225 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
299 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
660 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 ...
-5
votes
2answers
149 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).
...
0
votes
2answers
708 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 ...
5
votes
1answer
268 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
686 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 ...
1
vote
0answers
260 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 ...
-1
votes
1answer
196 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 ...
4
votes
3answers
671 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 ...
0
votes
3answers
794 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 ...
2
votes
2answers
1k 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
2k 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 ...
7
votes
2answers
1k 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 ...
1
vote
2answers
661 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 ...