Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.

learn more… | top users | synonyms

1
vote
1answer
404 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 ...
0
votes
1answer
84 views

how to retain the animated position in opengl es 2.0

I am doing frame based animation for 300 frames in opengl es 2.0 I want a rectangle to translate by +200 pixels in X axis and also scaled up by double (2 units) in the first 100 frames Then, the ...
0
votes
1answer
44 views

equivalent texture function to texture2D in OpenGL-ES?

I'm trying to figure it out how can implement the same result using texture2D. The result expected is a luminescence operation but I couldn't replicate the same functionality using texture2D for iOS. ...
0
votes
1answer
1k views

Rendering Texture Quad to Screen or FBO (OpenGL ES)

I need to render the texture on the iOS device's screen or a render-to-texture frame buffer object. But it does not show any texture. It's all black. (I am loading texture with image myself for ...
-1
votes
1answer
643 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. ...
2
votes
0answers
231 views

Weird y offset when using custom frag shader (Cocos2d-x)

I'm trying to mask a sprite so I wrote a simple fragment shader that renders only the pixels that are not hidden under another texture (the mask). The problem is that it seems my texture has its ...
2
votes
0answers
91 views

OpenGL ES Single Bitplane Texture (or something close)

I'm looking to use a texture to store single bits (or a low number of bits, two or three). This in of itself isn't hard if you're using nearest neighbor sampling with some bit plane unpacking. The ...
2
votes
0answers
234 views

iPhone GLSL shader dynamic branching issue

I am trying to pass an array of vec3 as uniform and then iterate through them on each pixel. The size of array varies on situations so I can't make the loop with constant number of iterations. ...
2
votes
0answers
131 views

Is there a way to export 3D objects with animation from Blender or any other app into OpenGL ES 1.1 code?

The problem is that all the examples I've found are obsolete or iOS/Android specific and not "pure" OpenGL ES 1.1. If anyone can provide me with a good example/tutorial/book it would be very much ...
1
vote
0answers
11 views

Give alpha to an object OpenGL ES

I am new on OpenGl and what I want to achieve is to give a texture the alpha from 1.0 to 0.0 I have been searching and only found "how to load alpha in images" but I cant find how to apply alpha to ...
1
vote
0answers
39 views

Weird blending behavior on PowerVR SGX544MP2

On PowerVR SGX544MP2, sometimes blending behaves in a very strange way for me. Instead of blending with the actual color from the previous draw calls, it tries to blend with black: (sorry about the ...
1
vote
0answers
31 views

Android OpenGLES, getting number of fragments passed depth test/Occlusion Query?

Afeter reading many blogs and searching on Internet, I did not get any sloution for getting number of fragments/pixels which are occludded or not occludded of the object on OpenGL ES3.0 Android ...
1
vote
0answers
61 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. ...
1
vote
0answers
195 views

How can I reduce draw calls when using glBufferSubData and DYNAMIC_DRAW?

At first I had the problem where I had about 150 rectangles rendered every tick. I only used STATIC_DRAW and glBufferData. I added support for DYNAMIC_DRAW and glBufferSubData and now I have a very ...
1
vote
0answers
189 views

iOS OpenGLES - Multithread Game loop - Render and Update

I am trying to implementing multi-threaded game loop in iOS. (Actaully, two thread - Render and Update) This is my structure. Update Loop Has logic and at the end of loop, save update state. ...
1
vote
0answers
69 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 ...
1
vote
0answers
163 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 ...
1
vote
0answers
201 views

Remove “dots” noise (like from dot-matrix printer)

I have 2D array of floats. Using the floats, I generate image by doing proportional selection of color from between COLOR_MIN, COLOR_MAX – for maximal float value at given (x,y), I choose COLOR_MAX ...
1
vote
0answers
648 views

OpenGL ES multiple objects not being rendered

I am doing the following to render multiple balls move around the screen but only 1 ball is seen to appear and function. I don't know why the rest (count-1) balls are not being drawn public void ...
1
vote
0answers
139 views

Strange and erratic transformations when using OpenGL VBOs to render scene

I have an existing iOS game with fairly simple scenes (all textured quads) and I'm using Apple's "Texture2D" class. I'm trying to convert this class to use VBOs since the vertices of my objects ...
1
vote
0answers
192 views

Creation of .des files from .png files?

A DES file is text file. In this file you can find information about the atlas(sprrite sheet) file including: where to find atlas (sprite sheet) image AND describe the position of original image on ...
1
vote
0answers
693 views

Rotation deforming mesh (Opengl ES 2.0)

I'm trying to render a rotating cube on Opengl ES 2.0, using some math classes I wrote (based on a lot of online and offline info) for quaternions, matrixes and the like. As far as I know all the math ...
0
votes
0answers
38 views

How to render multiple objects as a single object for fluid simulation?

I'm trying to do fluid simulation using particles in 2d game. I have larger particles, which interactive each other physically, those particles collide with environment (e.g wall,obstacles) to ...
0
votes
0answers
31 views

OpenGL ES respecting alpha for background but not for objects

I have a problem with the alpha of my game, maybe it is solved in another post but as I am new in OpenGl and Game developemnt I dont understand most of the vocabulary and cant find a solution. The ...
0
votes
0answers
15 views

Additive blend over camera preview

I am using SurfaceTexture to draw camera preview through opengl after applying blending but new camera preview frames overwrite my previous frames although i am not clearing my color buffer. I want my ...
0
votes
0answers
20 views

Apply android.graphics.Matrix transformation to an Open GL ES shader

I am currently using a 4x4 matrix to convert from "pixel" coordinates to OpenGL ones, my scene is full screen so my screen matrix looks like this: 2f / width, 0f, 0f, 0f, 0f, -2f / height, 0f, 0f, ...
0
votes
0answers
81 views

Fixing/avoiding Z-fighting with decals OpenGL

I'm trying to draw animated flames as a decal in OpenGL (just a simple quad with an animated texture as a decal on another quad). Problem is as the camera moves away I get terrible Z-fighting in the ...
0
votes
0answers
31 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
255 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
0answers
115 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
70 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
0answers
271 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
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 ...
0
votes
0answers
118 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
0answers
195 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 ...
0
votes
0answers
85 views

Make a layer over an image and adjust its co-ordinates by touch

I need to make a layer over an image and adjust the layer to fit to image and get its co-ordinates of the layer. I need to adjust the layer by touch and pinch. The sample image is as below. I need ...
0
votes
0answers
792 views

Depth sorting 2D textures in a batch with OpenGL ES 2.0

I have a combo of texture atlases and sprite batches in an OpenGLES 2.0 2D game I'm developing which is working well, but I have a problem with depth sorting. I'm using atlases to reduce the number ...
0
votes
0answers
346 views

Camera rotation flicker in OpenGL ES 2.0

I implemented an orbit camera in my own OpenGL ES 2.0 application. I was getting extensive amount of flicker while rotating the camera using the mouse. When I added the line eglSwapInterval( ..., ...