I have some parameters being passed from CPU to GPU that are constant for all fragments but which change on every frame (I'm using GLSL ES 1.1). Should I use uniforms or attributes for such values? Attributes can vary from vertex to vertex so my…
I am trying to send the camera preview to a surfacetexture object and render it on a square. I have running code for GLES20 but didnt find anything for 1.x.
Basically it should work like this, right?
// setup…
I get white textures on the samsung galaxy variant but on the other phones that i tested the textures are working just fine .So my questing is what is the usual suspect that causing such behavior? is the galaxy variant having any special hardware…
Using Android OpenGL ES 1.1 (HTC Desire)...
The problem I have in general is this:
I have various 3D objects rendered in a complex scene. I want to check if the user has clicked on a particular object. This object may be partially hidden and…
In my iOS application I have a texture applied to a sphere rendered in OpenGLES1. The sphere can be rotated by the user. How can I track where a given point on the texture is in 2D space at any given time?
For example, given point (200, 200) on a…
I'm trying to render a 512 * 512 texture onto a 256 * 256 square composed of two triangles.
The goal is to learn how to draw a textured rectangle of two triangles in OpenGL ES 1.1 with the least minimal amount of code possible.
EXC_BAD_ACCESS:…
Migrating from OpenGL ES1.1 to 2.0 for 2D purposes (orthographic), and I'm having a little trouble figuring out how apply transformations (matrix multiplication order). I only need rotation on the Z-axis, and scaling on X and Y which is the always…
I had a couple user report white blocks on their screens, and im unsure whats causing this issue. It seems to work fine on most phones but im unsure what the problem could be. (known to not be working on the Galaxy Nexus and Droid Pro, but works…
I'm trying to modify my OpenGL project to OpenGL ES 1.x. But there is a function call I can't find any solution for me to replace it.
glPushAttrib(GL_CURRENT_BIT | GL_LIGHTING_BIT | GL_COLOR_BUFFER_BIT | GL_ENABLE_BIT );
I can't find GL_CURRENT_BIT…
when I enable the lighting in the opengl es, I suddenly found the depth test fails to work. It looks some object is transparent after some rotation. Handle should be invisible from this angle.
I am using glEnable(GL_DEPTH_TEST) in the beginning.
I…
It seems my power-of-2 textures show up completely white. This application works on various devices, even Nexus 7 but Galaxy Nexus phone seems to produce white textures. This is probably related to PowerVR gpu.
I can interact with the app,…
I'm trying to get pixels from framebuffer with multisampling. It returns only zeros. I do call glResolveMultisampleFramebufferAPPLE as suggested here and here, but I can not figure out whats the problem in my case.
first of all I create…
I'm converting some code from OpenGL 1.3 to OpenGL ES 1.1. It's a 2D game, so it mostly comes down to rendering textures onto quads. There is no immediate mode in OpenGL ES, so I had to use vertex buffer objects instead.
But it seems like only one…
I'm creating a native android project using eclipse. I'm using opengl es 1.1.
I get this error when using a function from the glext.h file
Function 'glDrawTexfOES' could not be resolved
I'm using a function from gl.h right before i call the…
I am developing an iOS game that will need to render 500-800 particles at a time. I have learned that it is a good idea to batch render many sprites in OpenGL ES instead of calling glDrawArrays(..) on every sprite in the game in order to be able to…