Questions tagged [java]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 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
57 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
133 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 ...
  • 101
3 votes
0 answers
57 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 ...
  • 169
0 votes
0 answers
56 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
96 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. ...
  • 11
1 vote
0 answers
165 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
201 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 ...
  • 1,467