OpenGL ES 2.0 emphasizes a programmable 3D graphics pipeline (comparing to fixed-function pipeline of OpenGL ES 1.1).
1
vote
2answers
56 views
Simple Android loading screen when using OpenGL
My game uses openGL ES 2.0 on Android and it's got to the point where the pause (while loading resources) has become noticeable.
All I'm after is to show a static screen (probably via an XML layout ...
5
votes
1answer
377 views
FBO rendering different result between Galaxy S2 and S3
I'm working on a pong game and have recently set up FBO rendering so that I can apply some post-processing shaders. This proceeds as so:
Bind texture A to framebuffer
Draw balls
Bind texture B to ...
0
votes
1answer
95 views
bump mapping with 2 normal maps
I was wondering if its actually possible to do bump mapping with 2 normal maps... I have tried doing it this way however I get a function overload on max and dot.
uniform sampler2D n_mapTex;
uniform ...
-1
votes
1answer
53 views
GLES2 rendering performance for different iPad generations
I'm using C++/GLES2 for iPad only (no iPhone). The only device I own is an iPad2 and I do not plan to support iPad 1.
Can anyone help me understand realistic goals/limits on iPad 2/3/4 in terms of ...
6
votes
0answers
213 views
Optimizing performance of a heavy fragment shader
I need help optimizing the following set of shaders:
Vertex:
precision mediump float;
uniform vec2 rubyTextureSize;
attribute vec4 vPosition;
attribute vec2 a_TexCoordinate;
varying vec2 tc;
...
2
votes
0answers
154 views
How can I tell if OpenGL has finished rendering the current frame?
If I make a call to http://developer.android.com/reference/android/opengl/GLSurfaceView.html#requestRender() from my game loop, how can I tell when OpenGL has finished rendering?
I don't want to ...
2
votes
0answers
150 views
Camera - View matrix in Android + openGLES 2
I am trying to use the touch screen on the tablet to control my camera movements and generate the view matrix accordingly.
I get the x and y coordinates of the screen and after doing some sanity ...
2
votes
0answers
384 views
exporting bind and keyframe bone poses from blender to use in OpenGL
EDIT: I decided to reformulate the question in much simpler terms to see if someone can give me a hand with this.
Basically, I'm exporting meshes, skeletons and actions from blender into an engine ...
1
vote
0answers
65 views
How to implement OpenGL triple buffering
I'm trying to implement the triple buffering described here ...
1
vote
0answers
80 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. ...
1
vote
0answers
176 views
Can I use a shader with 2 different textures in Cocos2D (x)?
We are evaluating a variety of different graphic engines for use in our game and we want to be able to use 2 different textures for many of our sprite maps. One sprite map would be the standard RGBA ...
1
vote
0answers
202 views
How can I use an unsigned int as a GLSL attribute for OpenGL ES 2
I'm having trouble finding conclusive information on this, but it seems like I can't pass integer attributes to GLSL for OpenGL ES or that if I do they'll be converted to float. I need a value between ...
1
vote
0answers
793 views
Move a 2D square on y-axis on Android GLES2
I am trying to create a simple game for Android. To start, I am trying to make the square move down the y-axis, but the way I am doing it, it doesn't move the square at all and I can't find any ...
1
vote
0answers
566 views
Touchscreen panning in OpenGL ES 2.0
I'm trying to allow the user to pan a 2D scene by using the touch screen. I have tried several methods including translating the projection matrix, translating the view matrix and haven't found ...
1
vote
0answers
142 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
553 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
15 views
Android , why GLSurfaceview output is different in Various Devices (Google Nexux7,Samsung Galaxy Note II)
I have created an android app for drawing of lines,circles.. by using
GLSurfaceView in OpenGLES 2.0 like an Auto cad app.
The app works well with Google Nexus 7, in the sense that if we draw a ...
0
votes
0answers
19 views
NPOT texture and video memory usage
In this QA, @KromStern is saying that NPOT will take memory as much as next POT sized texture. It means it doesn't give any benefit than POT texture with proper management. (maybe even worse because ...
0
votes
0answers
75 views
How to render alpha channeled animated 2D sprites in OpenGL ES 2.0
I searched, but I can't find specifically how to render animated 2D sprites with an alpha channel onto a 3D polygon, z=0, in OpenGL ES 2.0.
This is just a basic 2D concept, but since I'm using, ...
0
votes
0answers
59 views
Strange problem with rendering quads in OpenGL ES 2.0 with custom classses on Android
I have 2 custom classes, one is for drawing quads (Quad) and the other is for drawing quads using VBO's (VBOQuad).
If I create a simple quad and render it like so:
Quad sprite = new Quad();
...
0
votes
0answers
48 views
ExceptionInInitializer Error duriing Project Install on Device
My current game development platform is AndEngine GLES2.
During project run from eclipse I found following type of exception. I google around git repository but nothing useful.
...
0
votes
0answers
147 views
Converting motionevent.getx and motionevent.gety to pixel or Object coordinates in the view
I am trying to draw buttons using OpenGL I have added a Gesture Listener for the GLSurface View now i have motionevent when ever the user touches. My question is how can i convert motionevent.getx and ...
0
votes
0answers
79 views
Understanding fonts generated by bmGlyph
Recently, I've purchased a Mac software for generating textured fonts for use in OpenGL applications.
The software is called bmGlyph.
I used it to generate a simple Arial font output and it gave me:
...
0
votes
0answers
140 views
How to dispose of OpenGL resources cleanly on Android
I am creating a framework for OpenGL ES 2.0 for android and my question is how can I cleanly dispose of my OpenGL resources when my android app is done?
I check for isFinished() in the onPause() ...
0
votes
0answers
53 views
What could cause dispersed triangles instead of integral model?
So the thing is, I get dispersed triangles instead of model that I'm loading, in this case it's just a cube. It seems as those triangles have no points that connect them. Is there anyone who had this ...
0
votes
0answers
797 views
Setting up perspective projection on Opengl ES 2.0 makes objects disappear
I'm working on a project using opengl-es 2.0, and I'm having some trouble setting up perspective projection.
If I don't set up the perspective projection and simply multiply the object-to-world ...

