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
-1
votes
1 answer

JOGL failure; whatever I do is black screen. Shaders malfunctioning, glGetAttribLocation returns -1

I have a JOGL failure. I simply can't make it display anything. I've made Android OpenGL ES work, but I have 2 big problems here. First, nothing displays. Second, none of my variables exist for the shader compiler. I am sorry that this is not a…
Leonid
  • 708
  • 5
  • 12
-1
votes
1 answer

glDrawPixels in opengl or jogl

I have a file in i j r g b format, where i and j are pixel coordinates and r,g,b are colour values ranging from 0-255. I have scanned them from the file in a single array(in row major order) but my draw pixel is not working as expected. Please help…
Archit
  • 369
  • 1
  • 3
  • 8
-1
votes
1 answer

How to texture the different planes in JOGL

I've created 6 planes as a room in JOGL, now I want to texture them each with different images, so how can I do this on each plane? And also how is there any recommended texture image resource that I can use it to decorate the room? Thank you. …
wsm
  • 143
  • 1
  • 1
  • 5
-1
votes
1 answer

how to get original fragment color in fragment shader

I am writing a tile based image viewer for my application using JOGL. The image is divided in the grid of tiles. I am rendering textures for each tile based on the current zoom scale. My each tile rendering code looks like following: double…
Amay
  • 63
  • 5
-1
votes
1 answer

Why normal mapping doesn't appear correctly?

I'm applying bump mapping to a tree. When no normal mapping applied, it appears like this. But when a normal texture is used, it turned out to be too aggressive as follow which is ugly. I checked tangent data which should be fine. So I was…
Oscar
  • 1,993
  • 2
  • 18
  • 27
-1
votes
1 answer

Failed to generate the shadow map

I've been struggling with the shadow mapping for two days (with JOGL), yet still couldn't make it work. Now I just want to render a very simple shadow map (grass), where closer looks brighter and further looks darker, from the view of the light…
Oscar
  • 1,993
  • 2
  • 18
  • 27
-1
votes
1 answer

Anyone offer me an example using glMultiDrawArraysIndirect with JOGL?

I learned the method glMultiDrawArraysIndirect() from OpenGL, and I want to use this method call with JOGL. In the sample code, a C++ struct is used and the data in that struct is stored in a buffer by using glMapBufferRange(). I was wondering how…
Oscar
  • 1,993
  • 2
  • 18
  • 27
-1
votes
1 answer

How to make something Scale from a fixed point

OK so I want to scale something in JoglGL using Java. My code will scale something but I want it to be from my fixed point, which is my origin.. I read in the documentation that if I choose a fixed point to leave the same it should work, but each…
-1
votes
1 answer

Load obj files and draw other figures inside a cube with size 1 - java opengl

I have to use JOGL to draw some figures and load objs from a file in order to implement some projections and rotations. What I have now is a canvas with 4 viewports and inside of each is a teaPot, drawn with: GLUT glu = new GLUT()…
Silva_PT_SCP
  • 557
  • 2
  • 8
  • 20
-1
votes
2 answers

texture filter not working in JOGL

I am trying to apply texture filter repeat to my cube but I am not able to fix the issue Could anyone help me with this Here is my piece of code import java.io.IOException; import java.io.InputStream; import javax.media.opengl.GL; import…
user4063686
-1
votes
1 answer

Rendering with VBO using JOGL trows exception at random

I have been triing to write my rendering application with JOGL. But I am expiriencing an issue with VBO. Under linux it runs fine everytime, but under Windows it keeps crashing. I dont know what I am missing. I made my code for serving VBOs…
Mylan719
  • 93
  • 9
-1
votes
1 answer

My code renders a black screen

I'm trying to render a simple wire frame cube using JOGL. However I am presented with a black screen, can anyone with more experience than me tell if I'm doing something wrong? The shaders compile and throw no errors. private Mat4…
Blight
  • 87
  • 1
  • 10
-1
votes
1 answer

JOGL Frame not showing + errors

I have the following code and it isn't working: import net.java.games.jogl.*; import java.awt.Color; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class Game { public static void…
Peter
  • 1
  • 3
-1
votes
1 answer

No such method in Jogamp

Inside jogamp.opengl.Debug, propertyAccess.addTrustedPrefix is called with the arguments string,class and it returns a "no such method error" because addTrustedPrefix only takes one argument, a string. Is there a jogamp jar that doesn't do this/any…
petfrank
  • 3
  • 3
-1
votes
1 answer

Rendering Textures using VBOs

I am new bid to OpenGL. I am trying to understand a texture data mapped using Vertex Buffer Objects. I am not getting tutorials anywhere. Please suggest me any such tutorials or give the code describing the procedure. Anand
user2378083
  • 75
  • 2
  • 5
1 2 3
72
73