1
vote
0answers
30 views

LibGDX: Why look BitmapFont pixelated on a scene2d.ui.Dialog?

When I use BitmapFonts directly on the stage table, the fonts looks normal (not pixelated). But when I use the same BitmapFont with the same size on a scene2d.ui.Dialog, the font looks pixelated. ...
0
votes
0answers
15 views

OpenGL ES 1.0 Create a Trapezoidal perspective scaling on a texture while using Ortho

I am using an Ortho projection to do most of my stuff and i am happy with it since i basically do everything on the same plane, now however i need to create a simple "flip card" effect on an object ...
0
votes
0answers
152 views

Android OpenGL ES 1.0 - Glow/Bloom effect

I'm currently building an Android space fighter game which uses OpenGL ES 1.0. For several technical reasons, I cannot at this point upgrade to 2.0. I really want to add a "glow" effect to glowing ...
0
votes
1answer
42 views

Generating multiple instances of one opengl object with random coordinates

Sorry if the question is dumb but my brain just cannot solve it for some reason.. So I've made one opengl object public static Square ball = new Square(75,75); And I am trying to make it so that ...
0
votes
1answer
161 views

How to change pixel color of Texture with Fragment Shader

I want to change the pixel color of a texture. I don't know where to start and what to add. Really need help, I only find useless snippets in the internet. My current Code: public void ...
0
votes
1answer
75 views

OpenGL ES 1 Pixel Error?

I am developing a game on android using OpenGL ES 1.0 for Android OS. It is a 2d game using a simple Orthographic projection and textures for the sprites. One of these textures has a small line (it ...
0
votes
1answer
71 views

Is there a way to use the RGB channels of a texture as the alpha channel when applying multitexturing using OpenGL ES 1.1?

I have been trying to get texture compression using ETC1 (specifically PKM files) working for some time now. I am trying to do this without having to upgrade to OpenGL ES 2 so I have been using ...
0
votes
1answer
102 views

Which texture do I bind to when implementing multi-texturing?

I have been having some issues getting multi-texturing to work using OpenGL ES 1.1. I have two PKMs - one with RGB's and one for alphas and I am trying to combine the two as below: int ...
0
votes
1answer
100 views

How do I implement multi-texturing using OpenGL ES 1.1 to combine separate RGB and alpha PKMs?

I have been trying to reduce the memory footprint of my textures in a Android game that I wrote without too much success. Based on research that I have done it seems that a good approach is to ...
1
vote
1answer
115 views

Texture compression strategy for Android OpenGL ES that caters for alphas

I have a 2d Android game that is currently causing certain devices to run out of memory. I have a number of PNGs (about 10 MBs in total) that I use in the game at various times. At some points in the ...
0
votes
0answers
102 views

How can I use a Seekbar as a brightness slider?

I am using the GLSurfaceView Renderer. I want changes to a seek bar's progress to increase the brightness of a GLSurfaceView proportionally. How do I apply a color matrix to a GLSurface view? Is ...
0
votes
0answers
61 views

Trying to use Sprite Batching with GL_COLOR_ARRAY in OpenGl ES 1.0/1.1

I'm trying to create a sprite batcher that uses GL10.GL_COLOR_ARRAY using OpenGl ES 1.0/1.1 on Android. I found two different sources that seem like they would work, they both have statements that ...
0
votes
1answer
223 views

“Quad” background showing on OpenGl ES 1.0/1.1 Sprites

I modeled my sprite drawing on Grid.java and GLSprite.java from SpriteMethodTest, using 2D OpenGl ES 1.0/1.1 on Android, but the "quad" sprite background shows when two sprites overlap each other. ...
0
votes
0answers
212 views

How do I “reset” the color in OpenGl ES 1.0/1.1?

In my 2D game I use glColor4f() to set the color and draw my screen border rectangles but when I try to start drawing my game objects, made up of a texture on a rectangular "quad", using ...
0
votes
1answer
300 views

libgdx game process dies on loading texture atlases

I try to load a lot of texture atlases (10) with approximately 5 (~2048x~2048)(not using PoT) .pngs each. I'm using AssetManager and there is no trouble with it on my pc but when I try it on my tablet ...
0
votes
0answers
83 views

How to load all textures at startup in my game?

In my Android 2D game every level uses the same textures. Currently all my textures are loaded into memory in the onSurfaceCreated() method of my GLSurfaceView.Renderer when a level is choosen by ...
1
vote
1answer
919 views

How to use mipmap in OpenGL-ES

I have recently entered in the OpenGL world. I am very pleased with the performance that I got with opengl compared to those obtained with a SurfaceView and its canvas. At the same time because of the ...
2
votes
1answer
644 views

OpenGL slower than Canvas

Up to 3 days ago I used a Canvas in a SurfaceView to do all the graphics operations but now I switched to OpenGL because my game went from 60FPS to 30/45 with the increase of the sprites in some ...
0
votes
1answer
97 views

How do I load BSP files in Android?

I understand that Opengl directly cannot load BSP files. How would I go about loading them into my Android game?
0
votes
1answer
2k views

How to do frame by frame animation in android using open gl es

I have application in some part i am using AndroidDrawable for animation but it giving jerking effect that why i planed to change the code to Open Gl ES for better performance .so far i have googled ...
4
votes
1answer
164 views

GetData() error creating framebuffer [closed]

I'm currently porting a game written in C# with XNA library to Android with Monogame. I have a Texture2D and i'm trying to get an array of uint in this way: Texture2d textureDeform = ...
1
vote
1answer
142 views

Android Object get Jagged at the border

I am new to OpenGL ES 1 in android. My 3D Model border getting Jagged. Please help me to look like a smooth border instead of jagged. Screenshot : http://i.stack.imgur.com/1Gq83.png private class ...
0
votes
1answer
166 views

How to set tranparency for one image only in openGL ES in Android?

I code game on Android where I have several sprites. My goal is to set gl.glColor4f(1f, 1f, 1f, 0.2f) a.e. transparency only for specific image. (I don't like Photoshop). In my case its image that ...
2
votes
1answer
911 views

How to scale openGL textures by a ratio based on height/width (or alternative)

I have been able to successfully allow my UI to extend over edges of my game on higher resolutions by using the Android Guide and by implementing this code on the GL10 object: ...
2
votes
1answer
320 views

How to know in OPenGL ES android that one object crosses another?

I have 2 objects on the screen: static: non-static: non-static object moves randomly over the screen. How do I know that non-static Object cross the "+" (static). Both objects I draw by using ...
0
votes
1answer
898 views

How to get drawn Image width/height on the screen with openGL ES on Android?

I need to know how to get drawn image length and width. I have this code so far where I draw Radar in left top corner with hard-coded coordinates: int _SRC = R.drawable._item; ... float ...
3
votes
1answer
793 views

How do I clip an image in OpenGL ES on Android?

My game involves "wiping off" an image by touch: After moving a finger over it, it looks like this: At the moment, I'm implementing it with Canvas, like this: 9Paint pTouch; 9int X = ...
2
votes
0answers
357 views

multi-threading for openGL in Android? [closed]

In my old game based on canvas and bitmaps I used surfaceHolder and Thread to call onDraw: public class GameThread extends Thread { private SurfaceHolder _surfaceHolder; private ScreenObjectsView ...
3
votes
2answers
139 views

How to change dynamically vertices during call “draw” method?

I'm new in openGL world and I try to figure out followed problem: How can I change size/zoom dynamically for my spritesheet. This class represents some creature fetched from spritesheet and animate ...
0
votes
0answers
110 views

Motorola Defy (CyanogenMod) and OpenGL ES textures

My friend tested my game on a Motorola Defy (with CyanogenMod v4.x, I don't remember exact version number, and she is not reachable now). My game uses OpenGL ES (v1.1, and in another activity, v2.0). ...
0
votes
1answer
760 views

Android/OpenGL ES2: How do I set fragment shader value using C;

This should be easy So I am using the following to create a fragment shader. GLbyte fShaderStr[] = "precision mediump float;" "void main() \n" "{ ...
0
votes
0answers
185 views

Android: Using touch does not go to center

I have a simple OpenGL app that draws a circle, I want to move the circle based on where a person touches the screen. The problem is, OpenGL sees the height and width as -1 to 1, whereas Android sees ...
1
vote
1answer
186 views

Switching from OpenGL ES 1.0 to 2.0

I have been developing an Android app using OpenGL 1.0 for quite some time using a naive approach to rendering, basically making a call to glColor4f(...) and glDrawArrays(...) with FloatBuffers each ...
-1
votes
1answer
436 views

Why doesn't onSurfaceCreated ever run in this code?

I create my game element this way in my activity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGame = new Game(this); mGame.bootstrap(); ...
1
vote
0answers
68 views

Android opengles how to use glunproject

How to use glunproject in my android app? I have the following parts in my engine: A projection matrix A view matrix for the camera A model matrix for each of the objects in my world. This matrix ...
0
votes
1answer
437 views

Get back or delete an existing OpenGL object, then change it and draw at new. How?

With OpenGL i'm drawing for example a circle. Can i take this drawn circle back out of the window and change something and then draw it back on the window? Or can i /have to delete it and then draw ...
3
votes
0answers
744 views

How to make the background of an OpenGL object transparent? [closed]

It sounds so simple but i didn't get it to work. The Background of my FrameLayout where i add the GLSurfaceView in is colored blue but there is only black. So here is my method to initiate the ...
1
vote
1answer
303 views

How to draw an OpenGL object in another on Android? -> Eyes and Eyeballs

As i allready wrote in another question: I'm working on OpenGL since a Week, so i'm new to the most stuff. (also my englisch isn't the best. Hop you can understand the most anyway) So i'm ...
1
vote
1answer
260 views

How to change/modify or animate an existing OpenGL object on Android?

I maybe know understand it all a little bit better so i thoug i make a new shorter question to eventually get an answer. Get back or delete an existing OpenGL object, then change it and draw at new. ...
4
votes
1answer
2k views

How do I get smooth edges with OpenGL on Android?

Here is a screenshot that maybe makes clear what my problem is. I'm only drawing 2D circles with OpenGL. I already read the following: ...
1
vote
0answers
153 views

Android multi screen rendering

Is it possible on Android to render specifically / only, to the connected Monitor/TV on the hdmi port? If so, is it possible to use OpenGL ES to render a different scene on the monitor and on the ...
2
votes
2answers
1k views

GLSL Motion blur on mobile.. possible at acceptable framerates?

I have been struggling to implement a simple linear motion blur effect on mobile (Android, OpenGLES 2.0) but it just seems to destroy my framerate. I'm rendering to texture (FBO) then applying a ...
-1
votes
1answer
630 views

2d triangle with OpenGL-Es on Android

hey I am trying to draw a triangle on opengl es . I just followed a tutorial to do it. eventhough everything seems to be fine it does not work. everytime I run my code it sends me back to main menu. ...
0
votes
1answer
758 views

All of my matrix functions not working? OpenGL ES 2.0

I am trying to make a projection matrix scaling the screen and making a coordination system. For some reason I don't think any of my matrix calling is working... the 3 function I am using are ...
2
votes
1answer
2k views

Android OpenGL ES RENDERMODE_WHEN_DIRTY implementation

I am trying to understand RENDERMODE_WHEN_DIRTY so that I could save battery life wherever possible.. I made this sample application so that GlSurfaceView is updated with random color only when the ...
2
votes
1answer
1k views

Game Development at iOS, Android and PC with OpenGL ES

I'm beginning iOS apps development, and my aim is to make games to launch on App Store. But I want to know if it's possible to program a game on Xcode with OpenGL ES (C++ game logic), integrate it on ...
1
vote
1answer
362 views

Keeping Track of Position OpenGL

I have a sphere in my 3D world located at the origin. I have models orbiting it and I need to keep track of each models' position (x, y, x coordinates) as well as update their bounding boxes for ...
0
votes
1answer
375 views

To stop Spite animation scrolling along the background in openGL ES

After using the endless road algorithm as described here, I also implemented the scrolling of walls along with it. I have the walk animation of the person which is stationed at the center of the ...
1
vote
2answers
393 views

Quaternion Camera

Can someone help me figure out how to use a Quaternion with the PerspectiveCamera in libGDX or in general? I am trying to rotate my camera around a sphere that is being drawn at (0,0,0). I am not sure ...
1
vote
1answer
554 views

Using Quaternion in libGDX

Can someone give me an explanation about how to use the Quaternion class in libGDX to move my camera around a sphere or just set it up, manipulate it, and apply it general? I am trying to acheive ...