Tagged Questions
3
votes
2answers
72 views
OpenGL ES 2.0: Enabling hi-res on iOS
I created an empty iOS project and then added a custom GLView class which is then added to AppDelegate. I have following questions:
1) How do I enable hi-res retina mode on iPhone 4? Currently I am ...
0
votes
1answer
80 views
iOS OpenGL ES 2.0 How to Billboard on Sphere and Rotate with Sphere
I have a sphere (earth) in OpenGL ES 2.0 for iOS. I also have markers that I want to place at lat/lons on the earth - but I want the markers to always face the user ( billboards ) but also move with ...
0
votes
0answers
47 views
Cocos2d/Box2d Component based entity system
Recently I've read somewhere that it is not a good idea to inherit from CCSprite class when making your game objects. In my CBES each Game Object has :
-PhysicsComponent(responsible for updating ...
2
votes
0answers
92 views
Displacement Mapping opengl-es
I need to do an application similar to this Morfo. And I posted a question here where the answer states the solution is "Displacement Mapping" . And I googled this to do it in opengles. I couldnt get ...
0
votes
1answer
220 views
Create cylinder using OpenGL-ES [closed]
I want to draw cone using OpenGL ES I have gone through many links to draw cylinder but I don't have any idea or approach to draw the cylinder. I've seen the gluCylinder function for OpenGL, but no ...
0
votes
0answers
27 views
Make a layer over an image and adjust its co-ordinates by touch
I need to make a layer over an image and adjust the layer to fit to image and get its co-ordinates of the layer.
I need to adjust the layer by touch and pinch.
The sample image is as below. I need ...
3
votes
0answers
63 views
Rotate an image and get back to its original position - opengles glkit
I need to rotate an image in opengles GLkit and get it back to its original position in GLkit.
rotation += 5;
_modelViewMatrix = GLKMatrix4Rotate( _modelViewMatrix, GLKMathDegreesToRadians(5), 1, 0, ...
1
vote
1answer
108 views
opengles display human face in iphone and animate it?
I need to make a human 2D face to 3D face.
I used this link to load an ".obj" file and map the textures. This example is only for cube and pyramid. I loaded a human face ".obj" file.
This loads the ...
1
vote
1answer
174 views
OpenGL ES screen to world coordinate
I am currently attempting to convert my screen coordinates to world coordinates, to be able to interact with objects. I am using glm and unProject to try and achieve this, so far this is my code:
...
1
vote
1answer
54 views
Does iOS support BC4 compressed texture?
I've been designing a new OpenGL image algorithm using BC4 textures at its core.
It works well accross Windows and Mac, my main targets up to now.
But today, the customer added a new requirement : it ...
0
votes
0answers
45 views
iOS billboard rendering performance
What is the fastest way to render semi-transparent billboards (for a particle system) on iOS? I'm currently using GLES1, but if required for performance I can switch to GLES2.
Does sorting the quads ...
2
votes
1answer
266 views
How to load a png file without alpha premultiplying in ios?
I am making a game in which I use the alpha value, in some cases for transparency, in others for occlusion, and for HDR in others.
I'm loading the images like this (this is MonoTouch, but objective-c ...
-1
votes
1answer
134 views
Using OpenGL ES: very general questions [closed]
I'm quite new to both Xcode and the OpenGL ES API.
Me and the team I work with have decided to develop a game, but we have two important constraints:
very, very little time...
we can use only OpenGL ...
3
votes
4answers
307 views
Benefits of upgrading from OpenGL ES 1.1 to 2.0 on iOS
I have an animated 3D iPhone game that I first wrote using OpenGL ES 1.1 in late 2009.
After many updates to the rest of the game, the OpenGL ES 1.1 code still runs fine under iOS 6, but I'm ...
2
votes
1answer
564 views
Game Development at iOS, Android and PC with OpenGL ES
I'm beginning iOS apps development, and my aim is to make games to launch on App Store.
But I want to know if it's possible to program a game on Xcode with OpenGL ES (C++ game logic), integrate it on ...
6
votes
3answers
259 views
OpenGL ES 1.1 - How to batch draw particles with different translations?
Assuming that I've combined all of my vertex data for many particles into a single array, how would I batch draw all of those particles in a manner that preserves their unique translations?
Any code ...
1
vote
1answer
120 views
World orientation in OpenGLES clarification
I have a 3d tile map made up of individual billboards in OpenGLES. Each is a 2 triangles mesh and has a 3D Vector to determine its position and another defining its rotation from the origin at ...
0
votes
3answers
191 views
Simple iOS glDrawElements - BAD_ACCESS
You can copy paste this into the default OpenGl template created in Xcode.
Why am I not seeing anything :-)
It is strange as the glDrawArrays(GL_TRIANGLES, 0, 3); is working fine, but with
...
2
votes
1answer
389 views
Bad FPS for smaller size (OpenGL ES with SDL)
If you saw my other question, well, there is still a little problem:
Click here to watch on youtube
Basically, the frame rate is very bad on the actual device, where for some reason the animation is ...
1
vote
1answer
259 views
Offset Forward vector of object based on Rotation
I'm using the Bullet 3D physics engine in a iOS application running openGL ES 1.1
Currently I'm accepting info from the gyroscope to allow the user to "look around" a 3d world that follows a bouncing ...
0
votes
1answer
326 views
OpenGLES how to make a 3D object iOS
I am a newbie in OpenGLES, so pardon me if I cannot state the question properly.
Is it possible to create a 3D box with the following imports only:
OpenGLES, QuartzCore, GLKit
I have created a 2D ...
1
vote
1answer
345 views
Why do my pyramids fade black and then back to colour again [closed]
I have the following vertecies and norms
GLfloat verts[36] = {
-0.5, 0, 0.5,
0, 0, -0.5,
0.5, 0, 0.5,
0, 0, -0.5,
0.5, 0, 0.5,
0, 1, 0,
-0.5, 0, 0.5,
0, 0, -0.5,
0, 1, 0,
0.5, 0, 0.5,
-0.5, 0, ...
0
votes
1answer
136 views
Writing a basic shader for large input files
I started writing a shader for my iOS app and instead of starting from scratch i used this tutorial here:
http://www.raywenderlich.com/3664/opengl-es-2-0-for-iphone-tutorial
I wrote an import ...
1
vote
3answers
1k views
How do I render .dae models?
I'm building a game for iOS. I'm quite new to OpenGL but what I want is to take a 3D model I have made in Google SketchUp and use it in my 3d game. The problem is I don't know how to proceed. I have ...
3
votes
2answers
844 views
Cocos2D: Upgrading from OpenGL ES 1.1 to 2.0
I have recently starting upgrading my ios game to the latest Cocos2D (2.0 rc), and I am having some difficulties upgrading my texture generation code to OpenGL 2.0.
In the old version I generated ...
0
votes
1answer
300 views
Extra fire simulation on iPad device
I have with me an iOS app for iPad which creates a few fire simulations over a png.Well,its working well exactly how we wanted it but when we are testing it on a device,we get an extra fire ...
1
vote
1answer
419 views
OpenGL ES 2 - glSwapBuffers?
this is what i do to blit FBO onto screen in ViewController:
[m_Context presentRenderbuffer:GL_RENDERBUFFER];
but i need something like glSwapBuffers, so that i can call it somewhere from the ...
0
votes
1answer
270 views
Straightforward guidelines for converting OpenGL to OpenGL ES?
Is there a straightforward list of finite steps that I need to follow to convert an OpenGL program into an OpenGL ES that's used on the iPhone and iPad? I'd be using GLKit.
I've seen some similar API ...
2
votes
2answers
583 views
Can I use PBOs for textures in iOS?
As far as I can see, there is no GL_PIXEL_UNPACK_BUFFER. Also, the OpenGL ES 2.0 specification (and as far as I know, no iOS device currently supports OpenGL ES > 2.0) states that glMapBufferOES() can ...
3
votes
1answer
386 views
Can glTexImage2D() use an already existing memory block?
Can I use glTexImage2D() and / or glTexSubImage2D() (or maybe there's some other method I don't know about) with an already existing block of memory, instead of always uploading the changed pixels? I ...
3
votes
5answers
579 views
Should iOS games use a Timer?
No matter what frameworks we use -- Core Graphics, Cocos2D, OpenGL ES -- to write games, should a timer be used (for games that has animation even when a user doesn't do any input, such as after ...
3
votes
4answers
1k views
IOS OpenGl transparency performance issue
I have built a game in Unity that uses OpenGL ES 1.1 for IOS. I have a nice constant frame rate of 30 until i place a semi transparent texture over the top on my entire scene. I expect the drop in ...
1
vote
0answers
123 views
Strange and erratic transformations when using OpenGL VBOs to render scene
I have an existing iOS game with fairly simple scenes (all textured quads) and I'm using Apple's "Texture2D" class. I'm trying to convert this class to use VBOs since the vertices of my objects ...
2
votes
0answers
859 views
OpenGL ES 2.0 Camera advices and general thoughts for a 2D engine
I'm working on my first 2D OpenGL engine for iOs 5+ using GLKit (that's to say: OpenGL ES 2.0).
While I am on a good path and a lot of things are implemented and nicely working, I'd like to share with ...
0
votes
2answers
331 views
Can I dynamicaly modify 3D objects?
I am new to OpenGL, I am able to render a model object (a human model) that is using .obj and .mtl file in iOS.
Now I want to make a modification to the loaded model. For example, I want to change ...
0
votes
0answers
275 views
Unity + NativeToolkit + OpenGL ES 1.1 in native view iOS
I have been working on one quite frustrating project lately. My goal is to launch iOS view from Unity (done by using NativeToolkit plugin) and then to launch an OpenGL ES 1.1 component in that view. I ...
2
votes
1answer
2k views
Why do my sprites have a dark shadow/line/frame surrounding the texture?
I'm starting OpenGL with Apple's GLKit hand I'm having some trouble to get my sprites displayed properly. The Problem is that they all are surrounded with thin dark lines. The screen shot below shows ...
1
vote
3answers
1k views
How do I repeat a texture with GLKit?
I am using GLKit in order to show textures on my project. The code is like this:
-(void)setTextureImage:(UIImage *)image {
NSError *error;
texture = [GLKTextureLoader ...
1
vote
2answers
430 views
What is the best way to store meshes or 3d models in a class
I am wondering, how I should store my mesh into memory after loading it from whatever file. I have Questions floating in my head:
Should a mesh could have sub meshes or does the 3d model just store ...
9
votes
3answers
1k views
Is it worth supporting iOS 3.x or iPhone 3G devices anymore when developing a game?
Is it still worth it for a game developer to try and support older devices: iPhone 3G and earlier or to support older OS: iOS 3.x and earlier?
Or is it recommended to make use of OpenGL ES 2.0 ...
1
vote
1answer
402 views
OpenGL ES Faces appear to be transparent when alpha is 1.0?
I am working on an object (OBJ File) loader for my app on iOS, currently I have successfully read the vertices and the faces of the object, and I am now just adding colours to the imported models.
I ...
4
votes
2answers
2k views
What should I do to get my Blender models into my iOS game?
I am working on a 3D OpenGL|ES game for iPad. All the models are created in Blender. How should I go about getting my models into my game?
I have the following requirements of my models:
One ...
2
votes
5answers
2k views
Skipping glReadPixels and reading iPhone's “VRAM” directly
I'd like to rapidly capture "screenshots" of my OpenGL ES iPhone game and turn them into a video. I've tried the following approach (it works but degrades the game play to an unacceptable level):
...
0
votes
2answers
1k views
Most efficient way to capture OpenGL ES content of iPhone screen
I'd like to efficiently capture a "screenshot" of my OpenGL ES iPhone game. I put screenshot in quotes because I really want to move the screen contents into a pixel buffer that I can eventually use ...
7
votes
1answer
5k views
Blend Modes in Cocos2D with glBlendFunc
We've been trying to replicate the most common blending modes that are available in Photoshop and Quartz 2D, but we've only come up with 3 and that's after some long searching online.
For anyone ...
7
votes
2answers
630 views
Recording the gameplay in the game itself?
I'm presently working on a 3D car racing game for the iOS platform. I had to implement a replay system and then record that replay in a video file to upload it to YouTube.
I'm only having issues ...
2
votes
2answers
777 views
OpenGL ES on iOS Books
I was wondering if someone has read both the:
iPhone 3D Programming
And
OpenGL ES 2.0
books and have an opinion if one is better than the other?
I'm basically wanting to get into doing 3D ...

