Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.

learn more… | top users | synonyms

0
votes
1answer
528 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 ...
9
votes
3answers
2k 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
335 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 ...
1
vote
0answers
811 views

Depth sorting 2D textures in a batch with OpenGL ES 2.0

I have a combo of texture atlases and sprite batches in an OpenGLES 2.0 2D game I'm developing which is working well, but I have a problem with depth sorting. I'm using atlases to reduce the number ...
3
votes
1answer
2k views

irrlicht for android

I was just wondering after noticing that moblox was.built with irrlicht if there is an android port of it? Or did the dev make his own port from scratch? From my research I noticed a port project ...
2
votes
1answer
518 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 ...
6
votes
3answers
2k views

C++ and OpenGL ES: glDrawArrays calls are time consuming

Currently, I'm profiling my iOS. All the calls to glDrawArrays are expensive. For example, here is a screenshot of the rendering part of a particle system: As you can see, the glDrawArrays call ...
3
votes
1answer
360 views

Fill texture with white color

How to paint texture with white color? Example what I mean: SpriteBatch.setColor changes tint only.
0
votes
1answer
159 views

Overlapping buttons with OpenGL and GLKit

I'm developing a game for iOS and I'm quite new to OpenGL. I'd like to ask some help please, hoping that it could be useful to other people too. At the moment I'm managing buttons simply by drawing ...
1
vote
2answers
192 views

How to export deform modifier animation into a game engine?

Hi we animated a simple plane with deform modifier to give a folding cloth like effect. How do we export it from maya so that we are able to import into our game engine. Can we export them as a ...
0
votes
1answer
880 views

All of my matrix functions not working? OpenGL ES 2.0

I am trying to make a projection matrix scaling the screen and making a coordination system. For some reason I don't think any of my matrix calling is working... the 3 function I am using are ...
3
votes
3answers
764 views

What tool should I use for drawing 2D OpenGL shapes?

I'm working on a very simple OpenGL ES 2.0 game, and I'm not sure what tool to use to create the vertex data I need. My first thought was adobe illustrator, but I can't seem to find any info on how to ...
0
votes
1answer
1k views

Formula for replicating glTexGen in OpenGL ES 2.0 GLSL

I also posted this on the main StackExchange, but this seems like a better place, but for give me for the double post if it shows up twice. I have been trying for several hours to implement a GLSL ...
3
votes
2answers
2k views

OpenGL GL_TRIANGLE_STRIP creating grid with degenerate triangles / for one draw call

I need to create a grid ready for GL_TRIANGLE_STRIP rendering with One drawcall - so i need to degenerate the triangles. I am almost there but missing last row/column and can't figure out why. My ...
4
votes
1answer
1k 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 ...
3
votes
4answers
641 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 ...
7
votes
1answer
2k views

OpenGL ES create stencil effect using texture

Environment This is the environment I am working in: OpenGL ES 2.0 iPhone Simulator & iPhone 4 iMac 27" using NVIDIA GeForce GTX 680MX 2048 MB Hope that helps. The Problem Been searching ...
1
vote
1answer
417 views

Keeping Track of Position OpenGL

I have a sphere in my 3D world located at the origin. I have models orbiting it and I need to keep track of each models' position (x, y, x coordinates) as well as update their bounding boxes for ...
1
vote
2answers
430 views

Quaternion Camera

Can someone help me figure out how to use a Quaternion with the PerspectiveCamera in libGDX or in general? I am trying to rotate my camera around a sphere that is being drawn at (0,0,0). I am not sure ...
1
vote
1answer
2k views

How do I draw a scrolling background?

How can I draw background tile in my 2D side-scrolling game? Is that loop logical for OpenGL es? My tile 2400x480. Also I want to use parallax scrolling for my game. ...
1
vote
1answer
634 views

Using Quaternion in libGDX

Can someone give me an explanation about how to use the Quaternion class in libGDX to move my camera around a sphere or just set it up, manipulate it, and apply it general? I am trying to acheive ...
0
votes
1answer
360 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
513 views

Apply portion of texture atlas

I'm trying to write a shader that only maps a portion of a large texture to my sprite and I'm getting a strange behaviour with my current code. This is what I have right now: Texture atlas ...
0
votes
1answer
426 views

Android, apply a pixelshader on a canvas

Can an opengl pixelshader be applied on a Canvas? I want to render a bitmap on a canvas, then apply a pixelshader to get, for example, a blur effect. Is this possible? I don't want to simulate the ...
1
vote
2answers
937 views

How can I create a fast, real-time, fixed length glowing ray?

Similar to the disintegrate skill in Diablo 3. It should not light other objects in scene. Just glowing and animated. Like in this video http://www.youtube.com/watch?v=D_c4x6aQAG8. Should I use ...
3
votes
5answers
853 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
1answer
225 views

Book and resource about vanilla OpenGL ES 2.0 development

I found this book but it talks about an SDK created by the author rather than pure simple OpenGL ES 2.0; this sounds more like a commercial to me than a good book for programming. I would like to ...
3
votes
2answers
1k views

The purpose of using invert and transpose

In openGl ES and the World of 3D - why use the invers matrix? The thing is that I dont have any intuition to, why it is used, therefore please correct me: As fare as I understand, it is used in ...
6
votes
4answers
2k views

iPhone 3d Model format: .h file, .obj, or some other?

I'm beginning to write an iPhone game using OpenGL-ES and I've come across a problem with deciding what format my 3D models should be in. I've read (link escapes me at the moment) that some ...
0
votes
1answer
532 views

OpenGLES GLSL Shader attributes always bound to 0

So I have a very simple vertex shader as follows #version 120 attribute vec3 position; attribute vec3 inColor; uniform mat4 mvp; varying vec3 fragColor; void main(void){ fragColor = inColor; ...
2
votes
2answers
1k views

Cocos2d v2.0 and OpenGL 2.0/1.0: where to start

I started developing my very first game 3 months ago using Cocos2d 2.0 for iPhone. I am now in the stage where I'd like to add some cool effects to the bullets and some special weapons (see my ...
2
votes
2answers
192 views

how to render small texture on another texture?

can anybody help me to render small texture on another texture. i.e I have one background image, when user touches on the screen it should draw small(circle or any object) on it. can anybody suggest ...
3
votes
1answer
1k views

Z Order in 2D with orthographic projection and texture atlas

I am working with a 2D game in OpenGL ES and have a question about z-order together with a texture atlas. I am using an orthographic projection because I want pixel-perfect rendering of 2D sprites, ...
1
vote
3answers
2k 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 ...
-5
votes
4answers
3k views

How to implement a 2d collision detection for Android

I am making a 2d space shooter using opengl ES. Can someone please show me how to implement a collision detection between the enemy ship and player ship. The code for the two classes are below: ...
1
vote
0answers
653 views

OpenGL ES multiple objects not being rendered

I am doing the following to render multiple balls move around the screen but only 1 ball is seen to appear and function. I don't know why the rest (count-1) balls are not being drawn public void ...
2
votes
1answer
515 views

cocos2d/OpenGL multitexturing problem

I've got a simple shader to test multitextureing the problem is both samplers are using same image as their reference. the shader code is basically just this : vec4 mid = ...
3
votes
2answers
2k 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 ...
2
votes
0answers
132 views

Is there a way to export 3D objects with animation from Blender or any other app into OpenGL ES 1.1 code?

The problem is that all the examples I've found are obsolete or iOS/Android specific and not "pure" OpenGL ES 1.1. If anyone can provide me with a good example/tutorial/book it would be very much ...
2
votes
1answer
966 views

Sprite animation in openGL - Some frames are being skipped

Earlier, I was facing problems on implementing sprite animation in openGL ES. Now its being sorted up. But the problem that i am facing now is that some of my frames are being skipped when a bullet(a ...
1
vote
2answers
2k views

Trying to Draw a 2D Triangle in OpenGL ES 2.0

I'm trying to convert a code from OpenGL to OpenGL ES 2.0 (for the BlackBerry PlayBook). So far what I got is this (just the part of the code that should draw the triangle): void setupScene() { ...
1
vote
1answer
898 views

Rotate triangle so that its tip points in the direction of the point on the screen that we last touched

OpenGL ES - Android. Hello all, I am unable to rotate the triangle accordingly in such a way that its tip always points to my finger. What i did : Constructed a triangle in by GL.GL_TRIANGLES. Added ...
0
votes
1answer
150 views

Lighting get darker when texture is aplied

Im using OpenGL ES 1.1 for iPhone. I'm attempting to implement a skybox in my 3d world and started out by following one of Jeff Lamarches tutorials on creating textures. Heres the tutorial: ...
2
votes
4answers
702 views

How to create OpenGL (ES 1.0) texture programmatically?

I need to draw inside a buffer and then upload it as texture to OpenGL. So basicaly unsigned char* buffer and then call to glTexImage2D(). I will be using Marmalade mobile SDK and OpenGL ES 1.0.
3
votes
2answers
757 views

OpenGL sprites and point size limitation

I'm developing a simple particle system that should be able to perform on mobile devices (iOS, Andorid). My plan was to use GL_POINT_SPRITE/GL_PROGRAM_POINT_SIZE method because of it's efficiency ...
1
vote
1answer
895 views

openGL ES - change the render mode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY on touch [closed]

i want to change the rendermode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY when i touch the screen. WHAT i Need : Initially the object should be stationary. after touching the screen, it ...
1
vote
3answers
133 views

How to handle wildly varying rendering hardware / getting baseline

I've recently started with mobile programming (cross-platform, also with desktop) and am encountering wildly differing hardware performance, in particular with OpenGL and the GPU. I know I'll ...
5
votes
5answers
1k views

Which version of OpenGL for Android?

I've been trying to learn OpenGL ES 2.0 to create a simple 2D game. I bought a book on android development, but after seeing that the author uses his own SDK that implements OpenGL ES 1.0 I decided to ...
3
votes
1answer
501 views

how to do sprinkle effect of water in opengl in android?

I want to achieve sprinkling effect of water in android using opengl. so, do i need to achieve it with graphics? is there any other way to do it using opengl? or how can i start working on this,any ...
1
vote
1answer
179 views

Artifacts when draw particles with some alpha

I want to draw in my game some particles. But when I draw one particle above another particle, alpha channel from this above "clear" previous drawed particle. I set in OpenGL blend in this way: ...