Tagged Questions
0
votes
0answers
10 views
How to get the visible Coordinates (Visible tiles)
I have Plane made of tiles in opengl. I start drawing them at (0, 0, -20) after that i do my translations so that the view is rotated somewhat similar to an isometric (kind of) perspective.
I'd now ...
0
votes
1answer
54 views
Drawing in 3D with LibGDX
Is there any way to simply draw in 3D, just like you would draw with ShapeRenderer or SpriteBatch? All I want is to draw circles that are in x.y.z coordinates, so some circles are far away from view ...
-1
votes
1answer
101 views
Generating a grid of cubes in 3D space [closed]
I am trying to generate a grid of cubes in 3D space and It aint workin...
All im doing is for looping YXZ (in that order) (nested for loops) then im doing cubes[x][y][z] = ... (new Location(x,y,z))
...
-1
votes
0answers
58 views
LWJGL - Switching from 3D to 2D to render text with NO external librarys [closed]
I want to render 2D quads on my screen by switching to a 2D scene then switching back to 3D.
I dont want to use any external librarys besides LWJGL.
This is what I got so far:
private static void ...
4
votes
2answers
169 views
3D models on 2D tilemap perspective when scrolling
I am creating a small top-down game, where the player traverses a 2D tilemap, with an illusion of depth provided by 3D models for things like buildings or trees.
Having gotten to the point where I ...
0
votes
1answer
157 views
Changing Yaw, Pitch And Roll OpenGL
I'm using LWJGL and OpenGL 1.1 at this time and I was wondering what command is used to change the yaw, pitch and roll?
1
vote
1answer
145 views
Java game object pool management
Currently I am using arrays to handle all of my game objects in the game I am making, and I know how terrible this is for performance. My question is what is the best way to handle game objects and ...
3
votes
1answer
237 views
Best way to Draw a cube for 3D Picking on a specific face
Currently I am drawing a cube for a game that I am making and the cube draw method is below. My question is, what is the best way to draw a cube and to be able to easily find the face that the cursor ...
0
votes
0answers
108 views
OGL lighting issues [closed]
All that seems to be working is ambient light. My room is just dark with no lights in it. I'm not sure if it's relevant, but I'm using LWJGL. Here's my code:
glEnable(GL_LIGHT0);
...
0
votes
2answers
199 views
Matrix loading problems with jbullet and lwjgl
The following code does not load the matrix correctly from jbullet.
//box is a RigidBody
Transform trans = new Transform();
trans = box.getMotionState().getWorldTransform(trans);
float[] matrix = new ...
0
votes
3answers
2k views
3D picking lwjgl
I have written some code to preform 3D picking that for some reason dosn't work entirely correct! (Im using LWJGL just so you know.)
I posted this at stackoverflow at first but after researching some ...
1
vote
1answer
612 views
LWJGL Rendering a 2D Object at a Certain Position On-Screen
Okay, so in LWJGL, how can I render a 2D object (maybe for like a menu, or meter that shows up on screen during the game), and have control over size and position on screen? So I can tell it what ...
12
votes
4answers
5k views
How to load 3D models into Java?
Using LWJGL what is the easiest way to load a 3D model to be drawn on screen?
I know LWJGL doesn't have built in loading support so I am looking for a small library that would help to load ...