Tagged Questions
2
votes
2answers
92 views
Move Camera Freely Around Object While Looking at It
I've got a 3D model loaded (a planet) and I have a camera that I want to allow the user to move freely around it. I have no problem getting the camera to orbit the planet around either the x or y ...
2
votes
1answer
68 views
OpenGL and Java user interface architecture/comunication
I'm working on the UIs for a turn based tactical rpg made with Java and LWJGL.
I'd like to make a set of "dynamic" UIs similar to those of the game Torchlight 2. I would like to know if there are any ...
1
vote
1answer
96 views
LWJGL - Mixing 2D and 3D
I'm trying to mix 2D and 3D using LWJGL.
I have wrote 2D little method that allow me to easily switch between 2D and 3D.
protected static void make2D() {
glEnable(GL_BLEND);
...
1
vote
3answers
46 views
Translating an Object to a certain Vector 3 in OpenGL and Java LWJGL
So after almost two hours, I got the hang of using glTranslated() (with Java and LWJGL). If I am correct, applying glTranslated on an object moves that object with the x,y,z relative to the previously ...
0
votes
0answers
24 views
Nifty default controls prevent the rest of my game from rendering
I've been trying to add a basic HUD to my 2D LWJGL game using nifty gui, and while I've been successful in rendering panels and static text on top of the game, using the built-in nifty controls (e.g. ...
1
vote
1answer
76 views
How do I draw a scene with 2 nested frames
I have been trying for long time to figure out this:
I have loaded a model from a directx file (I am using opengl and Java) the model have a hierarchical system of nested reference frames (there are ...
0
votes
0answers
39 views
HowTo Enable jBullet DebugMode
I would like to render the physics world of jBullet to debug some issues in my game, and I am not finding too much on enabling the debugDraw method of jBullet. Do I need to write my own debugDraw ...
2
votes
1answer
70 views
How can I set the rotation of a shape to the same as my image?
The way you set rotations of images is different from setting shape rotations.
So how can I make the shape have the same rotation as my image?
This is how my image rotates:
...
0
votes
1answer
217 views
How can I achieve this lighting with OpenGL?
I'm currently trying to implement a type of "smooth" lighting. How can I achieve lighting which looks like this:
http://dl.dropbox.com/u/1668516/concept/warp3.png
Using OpenGl. I've attempted to use ...
4
votes
2answers
187 views
Sprite batching in OpenGL
I've got a JAVA based game with an OpenGL rendering front that is drawing a large amount of sprites every frame (during testing it peaked at 700). Now this game is completely unoptimized. There is no ...
2
votes
1answer
73 views
Uniform not being applied to proper mesh
Ok, I got some code, and you select blocks on a grid.
The selection works. I can modify the blocks to be raised when selected and the correct one shows.
I set a color which I use in the shader. ...
2
votes
3answers
156 views
OpenGL Get Rotated X and Y of quad
I am developing a game in 2D using LWJGL library.
So far I have a rotating box. I have done basic Rectangle collision, but it doesn't work for rotated rectangles.
Does OpenGL have a function that ...
2
votes
2answers
198 views
Checking if an object is inside bounds of an isometric chunk
How would I check if an object is inside the bounds of an isometric chunk? for example I have a player and I want to check if its inside the bounds of this isometric chunk.
I draw the isometric ...
1
vote
1answer
147 views
Edge flicker when moving Camera (2D)
I have a Orthographic camera. I have a fixed landscape texture and a texture for a moveable object.
If the object moves to the right the camera will also move with the object.
When I also draw an ...
2
votes
3answers
211 views
How can I create a spritesheet animation with big images?
If I have a 200x200 pixel sprite, and I want to create an animation for it with 30 different frames, how can I accomplish that? I can't put them on one texture/spritesheet.