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

learn more… | top users | synonyms

1
vote
0answers
536 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
2k views

How do I implement a score database in Android?

I making a 2D game for Android using OpenGL-ES technology. It is a space shooting game where the player shoots enemy ships. I want to keep a track of score for the amount of enemy ships destroyed ...
2
votes
2answers
5k views

Drawing a circle in OpenGL ES Android, squiggly boundaries

I am new to OpenGL ES and facing a hard time drawing a circle on my GLSurfaceView. Here's what I have so far. The circle class public class MyGLBall { private int points=40; private float ...
5
votes
1answer
258 views

Where to store shaders

I have an OpenGL renderer which has a Scene member variable. The Scene object can contain N SceneObjects. I use these SceneObjects for storing the vertex position and any transforms. My question is, ...
3
votes
4answers
2k 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 ...
-5
votes
4answers
2k 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
135 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 ...
1
vote
0answers
174 views

Creation of .des files from .png files?

A DES file is text file. In this file you can find information about the atlas(sprrite sheet) file including: where to find atlas (sprite sheet) image AND describe the position of original image on ...
2
votes
1answer
2k views

How to get the texture coordinate of a neighbouring pixel for a blur shader?

I'm still having some trouble to get my head around fragment shaders and doing some image processing on textures. The context is a 2D sprite: a simple texture painted on a quad. All done with OpenGL ...
0
votes
1answer
2k views

OpenGL es glDrawTexfOES() 2D texture is totaly black no color

First of all I know this is a duplicated question and I check out another questions but didn't helped! I'm trying to convert my android game from canvas system to the GL10. After lots of googling I ...
2
votes
1answer
727 views

OpenGL ES drop shadows for 2D sprites

I've got a an OpenGL scene rendered with a bunch of sprites, and I'd like to automagically add drop shadows to all of them. Here's a picture showing what I mean: The scene uses orthographic ...
1
vote
1answer
695 views

Keeping track of onscreen objects in opengl es on Android

In a small game Im working on I was able to implement ray picking with an opensource 3d engine called min3d but I cant figure how to keep track of what object is onscreen. I will some times have ...
3
votes
0answers
1k views

OpenGL ES 2.0 Camera advices and general thoughts for a 2D engine [closed]

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 ...
2
votes
1answer
2k views

Are OpenGL Textures more memory efficient than Android Bitmaps?

I have a custom application that deals with many Bitmaps tiles that are 256x256 images (png,jpg). I'm currently using the View 2d canvas and bring in all images as RGB_565. Although I'm generally ...
3
votes
1answer
1k views

Android how to get opengl 3D coordinates in ontouch event

I created a cube in opengl and it rotates in ontouch event. To to this I created a CustomSurfaceView as follows public class CustomSurfaceView extends GLSurfaceView { @Override public boolean ...
0
votes
2answers
200 views

Transition between two Views

i want to animation the transition between game screens , in my game loop i have a function called getCurrentScreen() which returns a Screen object this Screen Class has a function called present() ...
0
votes
2answers
406 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 ...
1
vote
1answer
399 views

Special Effects in a 3d game

I am creating a 3d game ( a car racing game) using opengl ES. i know the rendering concept and also using a physics engine for all the physics stuff. All modeling is done using 3d modeling softwares. ...
6
votes
1answer
509 views

Fast and simple attenuation from a flaming torch

I have a single point light-source which is a flaming torch. I compute the distance from the light accurately. I am not trying to have a particularly realistic torch effect, but I will be moving the ...
0
votes
1answer
434 views

Opengl-es 1.1 draw blur on model?

How can I draw blurred models/images in 3d space like here:
7
votes
2answers
5k views

How to decide to use OpenGL ES 1.0 or 2.0 for Android?

I started learning some Android development and one of the first things I thought I could make is a simple game. However, I'm faced with one difficult question right off the bat. Should I use OpenGL ...
2
votes
0answers
790 views

Can one use OpenGL ES from Google Go? [closed]

I've recently used Google's Go language and was impressed by its great support for parallelism. I'd like to try Go for a simple game -- just a test-case -- and I'm wondering if I can use OpenGL ES ...
5
votes
2answers
717 views

Best way to do buttons for an OpenGL ES iPhone game

I'm making a simple 2d game in OpenGL ES and I want to add movement buttons to it. What's the best way of going about this? In previous projects I've simply added UIButtons to the view but I hear ...
2
votes
1answer
791 views

Ball bouncing and throwing, how to?

I was given a task to make a 3D game for Android, but since I never programmed games and opengl until now I'm totally lost on how and where to start. Right now I'm using libgdx framework to ease my ...
0
votes
1answer
915 views

Android - Using opengles through java vs c++

Ive been reteaching myself opengl so I can make a game on android. However Ive been struggling with how to build objects and scenes in opengl using c/c++ and passing them through the jni to the ...
2
votes
2answers
2k views

How to use OpenGL's glUseProgram?

While in the rendering loop, is it OK to call glUseProgram? Does it have a big overhead? I'm planing to use a program for each different material in the scene. I'm a real beginner with OpenGL and I'm ...
8
votes
3answers
3k views

How can I bend an object in OpenGL?

Is there a way one could bend an object, like a cylinder or a plane using OpenGL? I'm an OpenGL beginner (I'm using OpenGL ES 2.0, if that matters, although I suspect, math matters most in this case, ...
3
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 ...
7
votes
1answer
5k views

What do the components of gl_TexCoord[0] mean?

What are the differences between gl_TexCoord[0].s, gl_TexCoord[0].t gl_TexCoord[0].p and gl_TexCoord[0].x, gl_TexCoord[0].y gl_TexCoord[0].z ? I understand that gl_TexCoord[0].x, gl_TexCoord[0].y ...
2
votes
1answer
695 views

How to convert from OpenGL to OpenGL ES?

I need to convert code from OpenGL to OpenGL ES 1.1, I found that the GLUT library is missing in that. Can anyone tell me what do I do to replace glRasterPos3f in OpenGL?
3
votes
1answer
2k views

Changing the color of some fragment of a texture using shaders

Declarative programming language QML allows to connect the elements, their properties with universal variables in shader programs description. For these purposes there is such elements as ...
3
votes
2answers
1k views

What is causing these visual artifacts on my OpenGL sprites?

What could be the cause of the defects in my characters sprite? I am using OpenGL ES 2.0. I draw my sprites in a sprite batch that uses UV coordinates from one large texture atlas. If you look around ...
-3
votes
1answer
1k views

What can be the cause of sudden lag spikes in my Android game?

My Android game has sudden lag spikes sometimes. I know this is due to something going wrong. My phone has a 1GHz processor so there shouldn't be a problem. Basically I use the Canvas class to render ...
3
votes
2answers
440 views

What is UVIndex and how do I use it on OpenGL?

I am a noob in OpenGL ES 2.0 (for WebGL) and I'm trying to draw a simple model I've made with a 3D tool and exported to .fbx format. I've been able to draw some models that only have: A vertex buffer, ...
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 ...
1
vote
2answers
631 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 ...
4
votes
1answer
358 views

UVW: better explanation, and how to implement with GLES texture2D()

UVW texture coordinates, as opposed to UV texture coordinates, do not get very adequate explanation on the web. Many people offer the simple exlanation, "UV is for 2-dimensional textures and UVW are ...
1
vote
2answers
341 views

What do I need to know for writing code for both OpenGL and OpenGL ES 2.0

I am developing an engine that uses both OpenGL and OpenGL ES 2.0. I am well seasoned in OpenGL but not ES (although I am aware it is a subset of OpenGL). I could not find a set of differences that I ...
3
votes
2answers
2k views

How to make a background fill the screen on different-resolution phones?

I am developing my first Android OpenGL game. It's a 2D game and I would like the background to always fill the screen. I've managed to achieve this by stretching the texture to fit the size of the ...
0
votes
1answer
1k views

Equivalent of glDrawTexfOES in OpenGL ES 2.0?

I have been using the glDrawTexf extension to draw labels in my Android app using OpenGL ES 1.1. But I have now moved to OpenGL ES 2.0 and can't figure out what is the equivalent of this call? I ...
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 ...
3
votes
1answer
484 views

Unusual Lighting Effects - Random Polygons Coloured

I am working on creating an object loader for use with iOS, I have managed to load the vertices, normals and face data from and OBJ file, and then place this data into arrays for reconstructing the ...
1
vote
1answer
457 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 ...
2
votes
3answers
669 views

Culling Techniques for 3d OpenGL ES game

I'm developing a 3d flight simulator for Android and am using a relatively large (10k triangles) scene in 3ds format for the scenery. The scene is one polygon soup, not separated into separate ...
4
votes
2answers
2k views

How should I represent a tile in OpenGL-es

Let me start with I am currently learning OpenGl-es using Android. I have been having the hardest time trying to design a simple and logical way of making tiles (2d flat polygons). The tutorials tell ...
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
3answers
846 views

does opengl automatically handle offscreen rendering?

I'm wondering if opengl can automatically manage offscreen rendering. I mean if it can detect and ignore sprites and textures if they are rendered out of screen. if it makes any difference i'm ...
1
vote
1answer
1k views

What is OpenGL ES Shading Language based on and what are the differences?

My guess is that it is derived from version 1.10 of the OpenGL Shading Language, document revision number 59. Found it here, page 7: ...
0
votes
2answers
2k 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 ...