I used the below code from the link to create the opengles1.1 texture-view .
My app has like a view which few buttons with 3D models names if user clicks the
button a new texture view is created.
If back is clicked user will be back the texture…
I am trying to do a little bit of a design on a little program for android.
I am using OpenGL ES1 for this. I am drawing 2 quads on the screen. When the quads intersects the must show a third color.
Like this:
http://www.marlonbodhi.com/mix.jpg
So…
If you want to achieve a blending of textures with transparency (like PNG) that is similar to UIKit, how do you configure OpenGL ES 1.1 appropriately?
I found:
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA,…
I'm drawing triangles with only x and y coordinates per vertex:
glVertexPointer(2, GL_FLOAT, 0, vertices);
Sometimes when I draw a triangle over another triangle they seem to be coplanar and the surface jerks because they share the exact same…
Because ETC textures not supporting alpha channel, I tried to blend two ETC texture.
Anybody of you know how to translate this into open gl es 1.x
varying mediump vec2 uv0;
uniform sampler2D texture;
uniform sampler2D texture_alpha;
void main()
{
…
I am a bit confused about OpenGL ES and GameKit.
So far I have always used OpenGL ES 1.x which I think is dubbed "fixed-function pipeline". GameKit works with OpenGL ES 2.x which seems to be much more complex and seems to lack all the handy drawing…
I have Nexsus 4 and several HTCs and my game works fine.
When I launch on Samsung 4 I see white rectangles (empty textures),
no errors,
Further, my game uses sensors but I see on Samsung 4 it doesn't work too,
but Samsung 3 - works,
please…
I use the openGL ES 1.0. After decoding stream data, it is changed to RGBA bits. And then I transfer RGBA bytes to 'renderer' method with parameter.
the renderer method is called by each frame routines. Because RGBA bytes are changed every…
I'm writing a game in OpenGLES 1.1 (Using Android static API (GLES11)), and everytime my game activity goes to background (press Home), it comes back in a black screen.
I know that the textures and resources have been lost, but the main issue is…
I have looked over quite a few forums, but have been unable to increase the fps on ipad retina. I currently get 40 fps and am targeting 60.
I am using orthographic projection for my 2d game. I have to draw 1 opaque background, 3 transparent…
I'm porting a very simple piece of code from OpenGLES 1.0 to OpenGLES 2.0.
In the original version, I have blending enabled with
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
I'm using the same code…
Hi I needed to draw a round corner rectangle.
I followed the procedure of the above image. I first drew the green rectangle. Then I drew the two black rectangles.And then I drew circles on the edges to make the corner round. Now what I get after…
I have some code, here is most of it:
class Cube {
public Cube()
{
...
ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);
vbb.order(ByteOrder.nativeOrder());
mFVertexBuffer = vbb.asFloatBuffer();
…
When I write OpenGL (1.0) programs for Android, I found it not easy to debug my programs. OpenGL is just a fixed pipeline of several steps which process vertex coordintates. Is there any way to peek and see what are results of consecutive steps of…
I'm stumped on this error:
.MainActivity (server)' ~ Consumer closed input channel or
an error occurred. events=0x8
The project compiles and begins to run, I looked at other people having this error and it seems to happen sometimes when your…