Tagged Questions
0
votes
1answer
169 views
perspective camera with libgdx
I am trying to setup a viewport using perspective camera. I am trying to render a scene like this
I read an official blog post about the cameras and found a few tests within gdx test suits. ...
2
votes
1answer
88 views
Camera not strafing (GLSL)
I use this code in my GLSL vertex shader, where v_position is the vertex position:
gl_Position = v_position * u_camera;
and set u_camera as follows:
meshShader.setUniformMatrix("u_camera",
...
1
vote
1answer
166 views
Tiled map seen from an angle
I have working code to display a tiled map. It's composed of a OrthogonalTiledMapRenderer and an OrthoGraphicCamera :
camera.setToOrtho(false, WORLD_WINDOW_SIZE.x,
WORLD_WINDOW_SIZE.y);
...
0
votes
0answers
267 views
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone.
Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq
On the desktop ...
0
votes
0answers
228 views
Making a Background Scrolling in Stacking Game
Hmmm...Is it a good idea to use a LibGDX parallax background for making a stacking game (i.e. PAPA STACKer Lite)? For example, I'm starting to use the blocks to drag-n-drop it. Next, when the next ...
1
vote
1answer
162 views
Fixed texture size (Pixel) libgdx, java
If I resize the window (e.g. fullscreen) the texture size also changes!
I want that behaviour: If I change to fullscreen you will see more of the game world. The size (Pixel) of the texture stay the ...
3
votes
1answer
2k views
How do I move the camera sideways in Libgdx?
I want to move the camera sideways (strafe). I had the following in mind, but it doesn't look like there are standard methods to achieve this in Libgdx.
If I want to move the camera sideways by x, I ...
2
votes
1answer
2k views
How do I properly implement zooming in my game?
I'm trying to implement a zoom feature but I have a problem. I am zooming in and out a camera with a pinch gesture, I update the camera each time in the render, but my sprites keep their original ...
3
votes
2answers
521 views
Detect if a sprite has left the camera in libgdx?
Is there a method to know if a sprite has left the camera of the stage? or I have to do my operations? :P
3
votes
1answer
1k views
How can I track a falling ball with a camera?
I have been trying to get my camera to follow a falling ball but with no success.
here is the code
float cameraY = (FrustumHeight / 2)+((ball.getPosition().y) /2) - (FrustumHeight /2);
...
