Tagged Questions
-3
votes
0answers
49 views
How to animate the Tilemap object in Libgdx? [closed]
I am facing problem to animate or move the object(Cell) of Tilemap??? Is there any solution for this???
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",
...
3
votes
1answer
113 views
Cut a translucent square in a texture
How to remove (cut-out) a transparent rectangle in a Texture, so that the hole will be translucent.
On Android I would use the Xfermodes approach:
...
0
votes
1answer
122 views
Using compressed(ETC1) textures in LibGDX
I use standard android tool for compressing PNG texture and archiving it with gzip:
/android-sdks/tools/etc1tool texture.png --encodeNoHeader
gzip texture.pkm
Then I try to load it:
FileHandle ...
2
votes
1answer
153 views
Not repeating background in platformer [closed]
I need to make not repeating background for platformer. I can't find any description of implementation and I developed algorithm but I'm not sure that it's right.
I can't load one big texture per ...
1
vote
2answers
199 views
Render rotated rectangle inside other rectangle bounds using Libgdx
I have this code to generate a red rectangle inside a grey rectangle:
new Rectangle(grey_rectangle_position_x, Game.SCREEN_HEIGHT/2-Rectangle.height/2,0);
This code makes the following:
Now, I ...
0
votes
1answer
81 views
Devices or Smartphones That Can Run and Displayed Images Properly While Power of 2 Code is Disabled
Before making game apps, I want to have any certain smartphone device brands that runs on OpenGL. I have to make a code for images that doesn't need to required power of 2 images so that I can resize ...
3
votes
1answer
147 views
Fill texture with white color
How to paint texture with white color? Example what I mean:
SpriteBatch.setColor changes tint only.
2
votes
2answers
441 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
282 views
Texturing a Sphere in libGDX
I created a sphere (planet) with a texture (earth texture) in Blender, and exported it using the G3DT exporter. Then when I go to use it in my application I convert to the G3D binary format, and load ...
2
votes
1answer
105 views
Uniform not being applied to proper mesh [closed]
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. ...
1
vote
1answer
224 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
325 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.
5
votes
3answers
601 views
Understanding how to create/use textures for games when limited by power of two sizes
I have some questions about the creating graphics for a game.
As an example. I want to create a motorbike. (1pixel = 1centimeter)
So my motorbike will have 200 width and 150 height. (200x150)
But the ...
3
votes
1answer
512 views
Weird error with opengl in Android using Libgdx : “EGL_BAD_ATTRIBUTE”
I am having a weird error when uploading my game in the phones.
E/Adreno200-EGL(5128): qeglDrvAPI_eglGetConfigAttrib:484>: EGL_BAD_ATTRIBUTE
I am uploading the textures with AssetManager.
I am ...
2
votes
2answers
228 views
Ray Picking: how can I find which copy of model to pick, if they share the same vertices, but each one is translated before being drawn?
I have a scene, in which I am drawing few different objects - each one has the same vertices and each one is translated to proper place before being drawn.
While using libgdx (but I think that this ...
0
votes
2answers
372 views
Help with Meshes, and Shading
In a game I'm making in LibGdx, I wish to incorporate a ripple effect. I'm confused as to how I get access to the individual pixels on the screen, or any way to influence them (apart from what I can ...
0
votes
1answer
549 views
How to make a 2D Terrain with opengl?
I want to make a simple 2d terrain with just a few bumps and height changes:
I thought about just using random numbers to describe the height of a certain vertex, but I don't see how I can make ...
1
vote
1answer
311 views
Erasing part of lines in libgdx with ImmediateModeRenderer
Hi i'm using the ImmediateModeRenderer renderer = new ImmediateModeRenderer10(); to render a line with the next block
renderer.begin(matrix, GL10.GL_LINES);
renderer.color(color.r, color.g, ...
1
vote
0answers
74 views
Parenting Opengl with Groups in LibGDX
I am trying to make an object child of a Group, but this object has a draw method that calls opengl to draw in the screen.
Its class its this
public class OpenGLSquare extends Actor
{
private ...
