A simple iphone game like papi jump tutorial
Not trying to beg off anyone but if someone did happen to have a simple game tutorial for iphone and xcode would they be so kind as to post it here? ...
Not trying to beg off anyone but if someone did happen to have a simple game tutorial for iphone and xcode would they be so kind as to post it here? ...
I've written a couple apps that are currently published in the app store. However, I'd like to start writing games that use OpenGL ES. I know how to model objects in 3D Studio Max but what I don't know is how to get my models into an OpenGL ES application on the iPhone/iPad and then manipulate those objects to create gameplay. Can anyon...
I have an iPad app that uses a ton(500+) of small(128x128, 256x256 or less) textures with alpha. At any given time there are probably 30~90 of these textures loaded with around 30 displayed. The app has slightly slow load times when I use PNG files so i am trying to improve them by using pvr textures. I want to keep as much quality as...
It is possible use Display Lists (glGenLists) on iOS? I'm doing some openGL ES for iPhone platform and I want gain more performance so i think that Display List was a good idea. ...
I'm drawing some lines in cocos2d (using handy ccDrawLine), nothing fancy, but i want to check if my animated line hits something. I could do some math calculations for some objects, but for some dynamic parts in the scene it would be much easier if i could do: if pixel not black at (x,y) // line will hit something do handleCollisi...
Hello, I'm having a problem rendering a background texture in my iPhone app. The following images show the problem: http://www.tojamgames.com/wp-content/uploads/2010/09/background_layer1.png tojamgames.com/wp-content/uploads/2010/09/IMG_0246.png (can't make this a link, sorry) First one is the correct image, the second one is the on...
Hi, my iPhone app uses OpenGL ES in full screen mode (the status bar is hidden), just as the OpenGL ES application template. Using the simulator "Toggle In-Call Status Bar" has no effect, i.e. there is no visual/acoustic notification for the user. I'd like to know whether this is an issue of the simulator or it happens also on the device...
I have an application that receives information from a database, and is used to visualize 2D bitmaps onto a GLSurfaceView. The information received will determine the x-position of the bitmap, and which bitmap image to use (there are 4 different bitmaps in my res folder to choose from). Below are the three classes that are being used. ...
There is this site... ... where they explain how to draw an antialiased line. Exactly what I want! but... I don't understand how to achieve that for a simple line. I have found the online version of the book (the article is kind of derived from the book), i have downloaded the sample code (showing a stick figure doing fancy moves)...
After trying out various combinations for the glBlendFunc, I've noticed that most of them have no effect on my phone (HTC Desire) while they work just fine in the emulator. On the phone, only 0+1, 1+0, 1+1 have any visible effect, while all other combinations seem to be ignored. Is this a hardware limitation? P.S. I'm running my tests o...
Hello All, In my application , I need to do brightness related operation on the image. I done with following things Getting image from photo library. Drawing that image using the Open GL. Changing the brightness of the image. -(void) DoBrightness:(float) aBrightness { [EAGLContext setCurrentContext:context]; // Clear the buffer g...
Dear All Having little experience in Opengl es (or opengl) I was hoping somebody could help me out with this. I'm creating an opengl es application and I would like to be able to dynamically create the text of my buttons etc. The 2 obvious reasons for that are: -to be modular (changing the text quickly without using photoshop) -to ...
Hello, I would like to off-load some computations from the CPU to the GPU of my cell-phone. Since OpenGL ES 2.x the GPU supports vertex and fragment shaders. How can I use the GPU to do some calculations. Are there any Getting-Started tutorials? As for now, I guess that I have to load the data in via textures render them to FBO (frame...
Hi, i've a question about UIImagePickerController class reference, in photo-camera mode. I'm developing an OpenGl game. I should add to game photo-camera features: game should open a window (say for example 200x200 pixels, in the middle of screen), that display in real time a preview of photo-camera IN FRONT OF GL VIEWPORT. So photo-ca...
Hey guys, I know you can do texture tiling in OpenGL by setting the texture coordinates to something like 2.0 but is there a way I can do texture tiling with OpenGL texture matrix? ...
Hi, I'm trying to work out a strategy for transparency using WebGL, to support the case of a transparent object that encloses another. As described over at http://learningwebgl.com/blog/?p=859, conceptually we can Render background Enable blending and disable depth test Render foreground I'm a little naive here, and I'd appreciate ...
I have several 3d models in an OpenGL ES application for iPhone and at some point i want the user to touch the screen and act on them. The problem is to recognize which, among the ones rendered on the screen, has been touched. In order to achieve this I calculated the picking ray as suggested by the OpenGL FAQ, and I now want to detect i...
I'm writing a game for iOS. It has a game map, and I'm using OpenGL to draw it, because the other options were too slow. I have units on the map, represented by alphabetic letters, a la Dwarf Fortress. However, rendering text in OpenGL bites. I'm presently using a performance-tweaked mutant of Texture2D, which was good enough to protot...
The apple docs say it's possible but does anyone know if there is a performance hit when say drawing a quartz path on top of images loaded with opengl es? Or, mixing drawing of paths from both etc? Thanks. ...
Hey guys, I was reading about creating abstraction layers to make it easy to switch between platforms. They did not go into much detail but here is what I got out if it. Is it just something like this? void pushMatrix(){ if (directx){ // do directx function }else if (opengl){ // do opengl function } } Is this how it ...