iDevGames Forums
Basic OpenGL ES question, please help - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: Basic OpenGL ES question, please help (/thread-2281.html)



Basic OpenGL ES question, please help - abdm436 - Oct 15, 2008 06:50 PM

Please go easy on me as I'm new with openGL.

I'm trying to animate images going across the screen. I'm using the Texture2D class from the Crash Landing example to render the image(s). I'm able to build a timer and start to animate the 1 image across the screen. The problem is, when I start to animate the 2nd image, it swaps out the render buffer and I lose the 1st image. I'm wondering how to continue to animate all images as it goes. The images come in staggered, so there will be any number of them on the screen at once. So, I'd like for a smooth animation of multiple images across the screen.

One last thing...

I'm trying to learn OpenGL ES and I'm finding it hard to information for a beginner. Does anyone have any good sources?

Thanks


Basic OpenGL ES question, please help - mdonahoe - Oct 16, 2008 12:59 PM

I'm no expert, so this just may be the blind leading the blind...

Are you making multiple calls to swapBuffers? Are you clearing the screen between textures? Because you shouldn't. You should clear at the beginning of a frame, draw all your textures, and then swapBuffers at the end of the frame. Crash Landing uses the Texture2D class, which seems handy, but I am not familiar with yet.

Anyway, good luck. Perhaps if you provide more details, one of the pros here could help you out.


Basic OpenGL ES question, please help - abdm436 - Oct 16, 2008 05:35 PM

Thanks for the response, I did update it to draw all the textures at once and then swap the buffers.

I'm still seeing some flickering though, is there a way to prevent this?


Basic OpenGL ES question, please help - imaumac - Oct 17, 2008 06:06 AM

abdm436 Wrote:I'm trying to learn OpenGL ES and I'm finding it hard to information for a beginner. Does anyone have any good sources?
Thanks

Hi
Could you put here some begguiners opengl
Tutorials links that already have please?