opengl-es

Is there a WebGL API I can read/learn from?

UPDATE: I got my O3D situation straightened out, but I have yet to settle on one of the libraries listed below. I think I will try a scatter plot in all projects and see which one handles the data easily and is easiest to program in. I have been reading the tutorials on http://learningwebgl.com/blog/ to try and play with a new language...

iPhone opengl mesh rendering in one corner of the screen?!?

Sorry about this long block of code, but I think it makes sense to include all of it. No matter what I play with, I cannot get my mesh to render fullscreen. The viewport is fullscreen, as is the GL view. Here's what happens: http://img191.imageshack.us/img191/247/screenshot2010082000163.png This is the code that runs in my drawing l...

Android OpenGL memory usage profiling?

I'm struggling with some issues which I believer are memory related with my Android app, yet I can't seem to figure out how to get information on how much memory my app is using. I have a suspicion that some textures I am loading are not getting cleared by the garbage collector, but I want to be able to test before I start blindly makin...

iPhone OpenGL - How to gradient fade out a texture?

I want to customize the reflection from the FlowCover (Cover Flow remake) sample code. Now, the reflection (a texture) is only transparent but I want it to have a gradient so that the texture fades to be completely transparent. How would you achieve this effect with OpenGL? This is the code that handles the textures. glPushMatrix(); gl...

OpenGL-ES 2.0 and egl* functions (iOS)

There're set of definition called "egl" in GLES 1.1: http://www.khronos.org/opengles/sdk/1.1/docs/man/ It's the "Native Platform Graphics Interface Layer": http://www.khronos.org/opengles/ However, they're not in GLES 2.0: http://www.khronos.org/opengles/sdk/docs/man/ So I got some questions: Is this a separated spec from GLES? Or ...

Which is the most efficient way to translate each model in an OpenGL ES scene?

I have some 3d models I am loading into an OpenGL ES scene. If I simply load all of them I'll get them placed one over the other since they' ve been all centered into the coordinate system origin when created in Blender. I need to position them in different places so what I am doing right now is this for each model: glMatrixMode( G...

16 bit images and android processing.

Am i correct in saying a 16 bit image will be decode and drawn faster than a 24 or 32 bit? I know the file size will be less but if the bitmaps will actually be drawn faster than it would be worth the effort to convert them. If it is faster, how would i go about saving a 16 bit jpeg file? I only found an option in photoshop to save a 16 ...

Is there a substitute for glPolygonMode in Open GL ES/WebGL?

I would like to create a game in wireframe mode however without the glPolygoneMode command I don't know how I would do it. Is it something I could code myself with what is available? I'm completely new to opengl. If anyone has done this and has the code snippet I would love to see it. Any help is appreciated. ...

How are the units setup in OpenGL ES 1.0 for iOS?

The example that XCode generates for an OpenGL ES App, creates a square using the following coordinates: static const GLfloat squareVertices[] = { -0.5f, -0.33f, 0.5f, -0.33f, -0.5f, 0.33f, 0.5f, 0.33f, }; How does this generate a square when the sides are clearly of unequal length? Has the scaling been set up ...

Android screen video recoring

Hey, does anyone know how I should go about recording a video screen capture of an OpenGL application? So far my plan of attack is to take individual screenshots then run it through a video encoder. Does anyone here know of any sample code I can look at or has any suggestions of things I can look at? EDIT: I'm looking for the OpenGL a...

Android OpenGL ES and 2D

Hi guys, Well, here's my request. I don't know OpenGL already, and I'm not willing to learn it, I want to learn OpenGL ES directly since I'm targeting my development to android, however. I want to learn openGL ES in order to develop my 2D games, I choosed that for performances purpose (since basic SurfaceView drawing isn't that efficien...

IPad OpenGL Es Application flickering

Hi Guys, I have an opengl es application on my ipad which is basically a paint application, uses pretty much the same code as glpaint, the sample from apple. When I run it in the simulator, everything looks fine, the lines render properly etc. But when I put it onto the actual ipad, every time I touch the screen, the entire screen fli...

Why does culling remove faces of this cube which are not occluded?

The following code is a modified version of XCode's iPhone square example, to draw a cube. But when I use culling, the cube renders with faces missing. Can anyone tell me what I'm doing wrong? #import "ES1Renderer.h" @implementation ES1Renderer // Create an OpenGL ES 1.1 context - (id)init { if ((self = [super init])) { ...

Correct way to use png/jpg in OpenGL ES

What is the correct way to save images in png format, if I want to use it in my Android OpenGL ES application as texture? Somehow some textures work, and some texture get incorrect vertex mapping. The code is the same, the image is different. ...

Android Devices Problems with OpenGL ES GL 11

Hello, I tested my app on some Android 2.1 and 2.2 devices. So I think that they support OpenGL ES 1.1 But on some devices I had problems whit my app. I get an unsupported operation exception means the device does not support the GL 11 interface. Is this a hardware problem? Are there some possibilities to avoid this problem? Thanks, Mij...

OpenGL ES 2.0 possible without NDK?

I am learning Android development, specifically to eventually do OpengL 2.0 ES on it. So far I have read that the NDK supports Opengl 2.0 ES. However, is there also a Java API for it? If there is a Java API for it, which one is recommended? I know both C++ and Java, so it is not a big deal if I have to use the NDK, but I would ...

openGL ES - working fine in simulator and not in device

Hi, I created an custom class object for each selected image. Custom class is for handling the image touches for moving the image. What i had done is i had declared that EAGLView as super class of that "Custom class". In EAGLView in had declared its super class as UIImageView. So i'm the drawing the image through openGL. What happend is...

openGL ES - working fine in simulator and not in device

Hi, I'm using openGL for image editing. So i need to plot multiple images.So i was creating multiple objects of EAGLView, But before that do i need to clear any buffers or do i need to do anything else. Because it is drwaing the image for the first time correctly and for the second images its zooming the images but with the actual frame...

Cover art in Android

I am trying to create an app where, when you search for a particular animal, from a webservice, I get all the Animal names I have on my server along with their Image URLs. What I want to do is to sift through these Images like you can in case of an album art. If I have to cache(i.e. ship) the images with my app, I will do that to improv...

glPointSizePointerOES and glScalef

I am using point sprites to display a few ten thousand points, each with a different size. It works well, looks great and is quite fast. I'm using a VBO with the coordinates and the sizes in it (4 floats per point). Here is my display code glEnable(GL_POINT_SPRITE_OES); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, pointTextur...