Hello,
I'm doing my first steps with OpenGL ES 2.0 trying things on my ipod touch. I was wondering how to solve this coordinates issue..
To explain better, I was trying to draw a quad and rotate/translate it using a vertex shader (also because from what I've read it seems the only way to do it).
Since I'm working with a ipod I have a 1...
I'm trying to squeeze some performance increases out of my iPhone OpenGL ES application. According to Instruments, my tiler utilization is near 100% most of the time, and my FPS is about 24. I'd like to get my FPS up over 30. I can get there by converting from GL_FLOAT to GL_SHORT, but that presents some fairly daunting technical prob...
I inherited an OpenGL iPhone app code which has some large PNG files (say, sunshine.png, 10,000 px by 80 px) and a corresponding PLIST file for each png (say, ImageData/sunshine.plist).
The trouble is, when I replace the PNG files, the app doesn't pick them up, apparently because it doesn't really read the PNG, just the corresponding ...
Hey there!
I'm trying now for quite a while to optimize the framerate of my game without really making progress. I'm running on the newest iPhone SDK and have a iPhone 3G 3.1.2 device.
I invoke arround 150 drawcalls, rendering about 1900 Triangles in total (all objects are textured using two texturelayers and multitexturing. most textu...
Seem like I'm not clearing the image correctly or something. On the other hand the view takes to much to render using the cos function. I appreciate if you can guide me to optmize the code with best practices. Thanks
And I would like to share with you this link: http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-tabl...
I'm in the process of writing an OpenGL ES powered framework for my next Android game(s). Currently I'm supporting three different techniques of drawing sprites:
the basic way: using vertex arrays (slow)
using vertex-buffer-objects (VBOs) (faster)
using the draw_texture extension (fastest, but only for basic sprites, i.e. no transfor...
Hi, all!
I am novice in OpenGL ES so your help will be much appreciated.
I have a code which cuts part of images (something like mozaik image) and shows it on the screen:
UIImage *top = [images objectAtIndex:0];
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = CGBitmapContextCreate(NULL, pageWidth, ...
I'm writing an Android application that uses OpenGL ES (GLSurfaceView and GLSurfaceView.Renderer). The problem is that when the user switches applications and then switches back to my app, the GLSurfaceView destroys and recreates the GL context. This is what it's supposed to do according to the documentation but is there a way to prevent...
My problem is incorrect alpha blending using OpenGL ES 1.1 on iPhone. Unlike many other peoples' issues with this, textures are not involved.
I am drawing dozens of small white circles on a light blue background. Each circle is a drawn as a GL_POINT. I am animating a fade from alpha=1.0 to alpha=0.0. Everything works perfectly in the iP...
I'm using texture-based DOT3 lighting to achieve bump mapping on older iPhones, and I'm wondering if there's a sneaky way to make it look correct even when the viewpoint changes.
With "real" lighting, normals get transformed by the inverse model-view matrix. With texture-based DOT3 lighting, there's no transform.
With shader-based bump...
I have a series of OpenGL-ES calls that properly render a triangle and texture it with alpha blending on the emulator (2.0.1). When I fire up the same code on an actual device (Droid 2.0.1), all I get are white squares.
This suggests to me that the textures aren't loading, but I can't figure out why they aren't loading. All of my textur...
Hi,
i am developing an application where i want to do some smoke effect like animation and interact with that smoke.
Do i need to implement it OpenGLES or any simple solution?
Is there any sample application for it?
...
I'm using an EAGL context and view for my application's normal screen rendering. This involves (as expected) creating and binding a renderbuffer and framebuffer to the view's CAEAGLLayer. This works as expected.
However, at some times, I want to use OpenGL to render some geometry fully offscreen (for the purpose of getting the resulting...
Hello,
I am new to OpenGL ES and are developing in Objective-C for iPhone.
What I am trying to understand is how light is positioned in my frustum. This is how I do it:
I create a square and put it as "floor" in my frustum. I am putting the light, right above, in the middle of the floor and point the direction of the light right dow...
Hello,
following this question : http://stackoverflow.com/questions/2125354/best-approach-for-oldschool-2d-zelda-like-game
Thank to previous replies, and with a major inspiration from http://insanitydesign.com/wp/projects/nehe-android-ports/ , i started to build a simple Tile Generator for my simple 2D zelda-like game project.
I can ...
Hello,
This is not really a functional problem I'm having but more a strategic question. I am new to 3D-programming and when looking at tutorials and examples I recon that the coordinates are usually between -1 and 1.
It feels more natural using integers as coordinates, I think. Is there any particula reason(s) why small float-values...
I have two textures (made from two different images). I want to mix these textures on one view. How I can rich this?
...
I am trying to learn how to add several objects and working with those in my 3D-world. I am developing for iPhone. Regarding my question below I couldn't find good information about it while Googling.
I have a function that creates all vertices-arrays with data in order to create a sphere. No problem adding it as the only object. The p...
I'm a noob in openGL and trying to learn as much as possible. I'm using this method to load my openGL textures, loading every .png as RGBA4444. I'm doing anything incorrect ?
- (void)loadTexture:(NSString*)nombre {
CGImageRef textureImage =[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:nombre ofType:nil...
Hi everyone,
I am relatively new to iPhone programming, and I have a considerably complex app to develop.
This app requires animations such as burning a photo, flushing something down a toilet, etc.
Is there any way I can manage to code these animations without having to learn OpenGL ES?
...