OpenGL ES 2.0 emphasizes a programmable 3D graphics pipeline (comparing to fixed-function pipeline of OpenGL ES 1.1).
2
votes
0answers
175 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
219 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 ...
2
votes
0answers
498 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
53 views
How do you tell OpenGL ES 2.0 to use a texture as the depth buffer?
I want to render a scene with an outline post processing effect in OpenGL ES 2.0.
First I render all the opaque objects. Then I use a post processing shader
for silhouette detection that uses the ...
1
vote
0answers
149 views
How to implement OpenGL triple buffering
I'm trying to implement the triple buffering described here ...
1
vote
0answers
117 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
352 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
932 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
697 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
157 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
596 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
22 views
Particle system lifetimes in OpenGL ES 2
I don't know how to work with my particle's lifetimes. My design is simple: each particle has a position, a speed and a lifetime. At each frame, each particle should update its position like this:
...
0
votes
0answers
34 views
Moving clouds in OpenGL ES 2
I'm trying to implement a cloudy sky like the one in this video: https://www.youtube.com/watch?v=IGOL0OyiJ6s
Basically what I want is to have a scene and then the above effect in the background: huge ...
0
votes
0answers
56 views
Error when create FrameBuffer: GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
I'm using libgdx, to create some program. I need used some operation in framebuffer. For this operation I create new framebuffer, after this operation I'm call in framebuffer dispose(). When I create ...
0
votes
0answers
21 views
Problems with GLES2 and NativeActivity
I have a NativeActivity that uses the following to set the background...
static const char gVertexShader[] =
"attribute vec4 vPosition;\n"
"void main() {\n"
" ...