I'm developing on a Droid, version 2.1-update1. My supported GL extensions include GL_OES_point_sprite and GL_OES_point_size_array.
I am unable to get point sprites to render. The code below throws UnsupportedOperationException from GLWrapperBase at the glTexEnvi call. If I disable textures and comment out the glTexEnvi all, it t...
I am working on drawing anti-aliased lines in OpenGL-ES on iPhone. I am using an approach outlined in iPhone 3D Programming, called "Rendering Anti-Aliased Lines with Textures". The basis idea is to iterate through the line creating a bounding rectangle for each line segment (pair of vertices). This bounding rectangle can be represented ...
Hi,
I have several openGL views on the iphone app (xcode) with different sprites, and I'm trying to create an animation, so that when I slide the finger on the sprite the whole view slides out of the screen, and another view slides in with different set of sprites.
Is that possible? If yes, what's the most efficient way to do it?
Than...
I know that iPhone uses OpenGL ES 2.0, but I don't know the version of the underlying language GLSL. Is it 1.3, 1.4, 2.0, other?
Thanks.
...
Hi,
Rather new to trying to get OpenGL ES working on the iPhone, but I've created a working demo from an OpenGL template and wanted to add it to another App which is a standard UIViewController App. After searching around it seems that I can't addSubview a CAEAGLLayer to a CALayer aka UIView. How would I go about doing this? Or am I com...
I have one module to implement in which I have to change the Brightness and Contrast of the Image for IPhone.
After ref some samples like GLImageProcessing , seems need to go with Open GL (In this sample, we can able to do one activity at a time either brightness or contrast), As I am new to this Open GL and not able to work out with th...
Hi,
I have same problem as it is explained in follwowing link
http://efreedom.com/Question/1-1506299/Applying-brightness-and-contrast-with-OpenGL-ES . I want do brightness and contrast on last changed modifications, by using this code i can do one at a time .Please any body let to know me how can i do it ??
...
I've run into what originally seemed should be a very simple problem, but have spent many many hours trying to figure out and have gotten nowhere.
I'm working with Apple's GLImageProcessing sample code and have simplified it to display one EAGLView with a UISlider that adjusts the hue of an image. I've modified EAGLView to inherit fro...
Im using CGBitmapContextCreate to read the data from a png file.
I then resize the image with a couple of loops to fit the OpenGL ES image size criteria.
I was wondering if there is a better way to this.
Basically what I do now is have a nested loop like:
for(i<newHeight){
for(j<newWidth){
copy image data
}
}
For instanc...
Hi,
I am working on a OpenGL ES 2.0 shader and I have tightly packed data e.g. three 5-bit unsigned integers within a block of two bytes. To unpack this data I obviously need bit-shifting, but this is not supported in OpenGL ES Shading Language (see page 29 http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.20.8.pdf)
Consequently I ...
I'm creating an Android app utilising OpenGL ES, and need some help with the vertex, texture and normal pointers. The examples I've seen stop at a fairly basic level so I seem to be missing a bit of information.
My basic draw() process is
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
gl.glTexCoordPointer(3, GL10.GL_FLOAT, 0, ...
I need to load textures in background thread in OpenGL ES. But glGenTextures always returns zero when called in background thread.
-(void) someMethodInMainThread {
[self performSelectorInBackground:@selector(load) withObject:nil];
}
-(void) load {
GLuint textureID = 0;
glGenTextures(1, &textureID);
}
textureID is zer...
Starting with the iPhone 3G S, OpenGL ES 2.0 has been supported on iOS devices. However, I can't find much in the way of sample code for OpenGL ES 2.0 aimed at the iPhone, or even some generic examples. Where can I find sample code or tutorials about OpenGL ES 2.0 for the iPhone?
...
I'm an experienced Android developer (if such thing exists) who has never worked with OpenGL before.
There are various advantages of the Android platform (open-source, open distribution, portable, and so on) that make me think that it might be a great environment to finally get into OpenGL.
But I'm also worried that the complexity of ...
I'm using Apple's sample application GLPaint as a basis for an OpenGL ES painting application, but I can't figure out how to implement undo functionality within it.
I don't want to take images of every stroke and store them. Is there any way of using different frame buffer objects to implement undo? Do you have other suggestions for b...
Hello,
I'm a newbie in iphone development so plz don't mind. I'm trying to draw PNG on my screen using libpng but its just displaying nothing on the screen. The code I'm using is:
// Sets up matrices and transforms for OpenGL ES
glViewport(0, 0, backingWidth, backingHeight);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrthof(0.0f, ...
Hello any one knows a good tutorial where i can find a pointer to fire/flame effects on the iphone. i know i will have to use opengl but got no clue where to start.
Cheers.
...
I tried to the code from http://stackoverflow.com/questions/2878536/fastest-2d-frame-rate-possible-with-android-ndk-my-try-included-better-options/3476199#3476199 ,
but textures didn't show, just filled with black.
who can show me a example of how to use textures in android ndk with opengl es 2.0?
Thanks!
my phone is Moto Milestone wi...
Hi,
I'm working on a select function in a program that will select the vertex closest to a specific touch point (iPhone development). My idea for finding this point is to find the screen coordinates of all the significant vertices, find the screen vertex that gives the minimum distance between the touch point and that vertex, and then u...
I'm creating a dice game for the iPhone. I'm using SIO2 as engine, but I think this question is more general OpenGL-related.
Since the iPhone lacks support for anti-aliasing, my dice looks kind of edgy. If possible, I'd like to make the edges of the die rounded and smooth instead of sharp. I've found one app, MotionX, that manages to d...