opengl-es

UIDeviceOrientationUnknown in landscape mode

I am trying to figure out what orientation the iphone has in the simulator and instead of giving it to me using the UIDevice orientation property I just get UIDeviceOrientationUnknown. Does this property not work in the simulator? What could be the possible reason for this happening? I am using opengl es ...

iPhone:Open-gl to start with..?

Hello friends, I am developing several iPhone applications using UIKit. I want to learn and develop a simple and rich graphics iPhone game application using Open-gl library quickly. I googled it and got some links like below. http://maniacdev.com/2009/04/8-great-resources-for-learning-iphone-opengl-es/ But i want to hear from you exper...

UIButtons unresponsive when put along with EAGLView

In my iPhone game, I have an EAGLView where OpenGL rendering happens. Above it I have 2 UIButtons placed in the XIB. Once the EAGLView Viewcontroller is pushed, for the first few seconds, the UIButtons are unresponsive. But the OpenGL rendering happens seamlessly. Has anyone suffered from a similar problem ? Any pointers on what could b...

Why are my y coordinates in reverse

So I am trying to render my program in landscape mode... however I am coming across something that I am having trouble wrapping my mind around. In order to move down on my map I have to have a negative offset. If I keep the current positive yOffset of 100 then the map scrolls down instead of up. Why is this? I'm not happy having to pu...

Trying to render to texture using framebuffer always results in white texture

Using a couple of posts here in StackOverflow, I created what is supposed to be a simple render-to-texture using a framebuffer. The problem here is that it's not working. Something is broken in the mix, as my final texture is just a white square. I am not getting any gl errors whatsoever. Here is my code. Declare instance variables. G...

OpenGL ES multi-texture alpha blending question

This maybe a noob question, however, I haven't been able to find a suitable answers: I have an object in OpenGL ES (in fact, an UV mapped export from Blender) and I'd like to apply two textures to it. To be precise, I have a earth-like sphere and I would like to add two textures (a day-side and a night-side) to it. I had thought throug...

Learning Graphics Framework for iPhone Development

I have some development experience of CocoaTouch Layer, Core Service Layer iPhone Applications. Now, I have to migrate for some pure 2d and 3d graphical iPhone Applications. For that as per my knowledge, I need following frameworks to learn : 1) Core Graphics 2) OpenGL ES 3) Quartz Core I want to know that what should be the approach...

OpenGL in Android

Since the latest android update came out, I haven't been very active with the new sdk. In fact, I don't know much about it. What I'm particularly interested in is of the changes that occurred, if any, regarding opengl. Did the implementation change? How would i go about writing a game in opengl for android with sdk 2.0? Thanks ...

How do you use glFrustrum in OpenGL ES1 on iPhone

So I am using Xcode 3.2.1 and am trying to make an iPhone OpenGL ES1 project. The default template for an opengl project is ok, but I have been trying to split the code up so not everything is done per frame on the drawView() call. I have a seperate setupRC method that sets the lighting, turns on depth test, turns on culling and sets t...

OpenGL ES iPhone Textures

For one of my new games I'm using OpenGL ES since it has multiple enemies and bullets, etc. How do you draw images on the screen with Opengl ES? I have a player.png image that is a 48x48 pixel image; how would I draw that on the screen? ...

Where do I look to learn OpenGL ES for iPhone

I want to learn OpenGL ES but don't know where the best place is to look and learn the fastest and most in-depth ...

iPhone Scrolling Help

Well when i try to scroll with opengl es on the iphone the player ship disappears... http://web-geeks.com/help.png i am trying to have one ship that scrolls with the view(the ship that is in the center of the screen) and the other one is just to see if its actually scrolling right... my problem is it that the one in the middle keeps dis...

What is the fastest way to draw a lot of Points in OpenGL ES?

I'm making a game for android where I need to draw a lot of points that change position every frame. I use the ndk to get faster processing performance of the math/physics section of the game, so I need to use OpenGL to get the fastest performance. Right now, I make a texture every frame out of an array that holds the colors of every p...

The basic OpenGL sample always freezes in Android 1.5 when changing orientation

Hi, I have begun learning OpenGL ES under Android 1.5 (I use the emulator and an HTC Magic device). However, even for the simplest of their samples, the one that only renders a blank screen, if you switch the orientation several times (switching like ~5 times between portrait and landscape is usually enough), the app freezes and I need ...

Android 2D opengl line circle

I am new to open gl, and have been trying to do some basic 2d openGL in android. I am able to set up my 2D view, and draw squares and triangles. I am trying to draw a circle and am not exactly sure how to do it. I have found several techniques while searching, one using triangles rotated around the center w/ the given radius, this wil...

android: set up simplest opengl es app.

hello, i am looking for some sample code or tutorial that sets up the most basic opengl es application. for example, just do glClear() in the renderloop. i have already been searching the web but all i found was either out of date or too much and too complicated. thanks! ...

OpenGL key frame animation - the best approach

Hi, I'm trying to animate object. I use keyframe animation: I have two vertex buffers (two frames) with vertices of my object - first buffer is for object start state and second for end state. To transform the object I simply use linear interpolation. To make it more clear, please take a look at the code snippet: FloatBuffer vertexBu...

How to make iPhone OpenGL ES context update straight away?

I have an OpenGL ES application for the iPhone I am developing, being a port of a 2d-oriented application from another platform. I have chosen to render the graphics using OpenGL ES for performance reasons. However, the main application runs on a separate thread (due to the original application design), so from within my app delegate I d...

Looking for Tim Omernick's Fireworks iPhone app

Does anyone have the Fireworks app that Tim Omernick (of ngmoco) posted here: gamemakers.ngmoco.com/post/111712416/stanford-university-and-apple-were-kind-enough-to He originally provided a download link to the source code, but the download link is down and just says "Account Suspended". I am currently working on my own OpenGL ES game ...

OpenGl es view and uitableview

I have written an application using opengl es view. Now I want to add a uitableview to display on the screen. However I am needing some guidance on how opengl es view and the other views play together nice. For example I have read some things that would lead me to think I need to pause the opengl view when the table is displayed. Can...