Questions tagged [java]
The java tag has no usage guidance.
12
questions
0
votes
1
answer
68
views
Output to more than one canvas texture in processing with shader OpenGL
as the question suggests im looking to output to more than one canvas element in processing to speed up the calculations and limit shader draw calls. It has to be as simple as possible to be ...
0
votes
1
answer
49
views
3D projection Axis inversion problem (Java/Processing)
Unfortunately, I always had problems with math and was never good at it. I'm currently trying to combine math with my knowledge and my passion for programming.
Brief introduction: In math, we have ...
0
votes
1
answer
519
views
Is glActiveTexture() still needed?
I'm using OpenGL 4.30 with JOGL (in Java). I'm playing with basic texturing, trying to learn how it's done.
The textbook I'm using has the following code:
...
0
votes
1
answer
356
views
Why is my texture being stretched out on a triangle strip?
I'm trying to apply a texture to 4 different triangle strips using JOGL (OpenGL/Java). I'm trying to make a 1000×1000 path in a square, where the path is 100 wide. The texture should be stamped 10 ...
0
votes
0
answers
77
views
How to programmatically extract all rectangle shapes from SVG file?
I have a SVG which contains rectangles with other shapes. How can I extract all rectangle details(co-ordinates, height and width)? Find below svg details where I kept only one rectangle for reference.
...
0
votes
0
answers
406
views
How to sprite cast in a raycasting engine?
I'm trying to render sprites/textures in my raycasting engine, but I don't quite understand the math behind drawing the columns of the texture I intend to project. I've tried looking at several ...
0
votes
1
answer
263
views
OpenGL Polygon Offset Fill implementation example code
I am working on a pure java implementation of OpenGL 1 called jGL.
I am missing glPolygonOffsetFill and am looking for an example implementation in java, c/c++ example of this GL function in order to ...
3
votes
0
answers
89
views
Bezier curve : Problem deriving control points from matrix form
This is my first post on this website so i have put in a lot of research to get my point across to everyone as clearly as possible.
Based on a question i posted on stack overflow i have successfully ...
0
votes
0
answers
57
views
How to retrieve RGBA mask used to transform image1 into image2
Let image1 be:
And RGBA mask be:
(45, 78, 251, 102)
Apply mask on top of ...
1
vote
0
answers
163
views
How can i understand the algorithm wu line?
I have Wu's line algorithm but I don't understand all the lines of code very well.
...
1
vote
0
answers
219
views
Apply transformation to single vertices in OpenGL in order to deform mesh
I'm making a 2D cell simulation game.
The mesh for my cell is basically just a manually-generated triangle fan that looks like this.
I would like to reproduce the wobbling/vibration effect on the ...
3
votes
1
answer
260
views
How to open and render in a second window with OpenGL / JOGL with NEWT
I have a working renderer implemented with Java in JOGL with NEWT. Now I want to implement a Material Editor which should run in a second window. However I can't get a second window up and render in ...