Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.
1
vote
0answers
411 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
1k 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
3k 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 ...
4
votes
1answer
220 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
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 ...
-5
votes
4answers
1k 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
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 ...
1
vote
0answers
140 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
1k 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
1k 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
592 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
609 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 ...
2
votes
0answers
855 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 ...
2
votes
1answer
1k 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
185 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
0answers
527 views
Android Renderer: Difference two ways of using [closed]
I use two ways of Renderer to draw a triangle. One is work and one is none.
Here is my two solutions. (You should see the line :glView.setRenderer method. That the basic difference of my two ...
0
votes
2answers
330 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 ...
-4
votes
2answers
937 views
3D architecture app for Android or iPhone
I want to make an app for 3D modeling on iPhone/Android. I cannot get the basic idea of how to get started.
I have various options such as learning OpenGL ES, UDK or Unity3d but I want to create ...
1
vote
1answer
334 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
423 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
348 views
0
votes
0answers
274 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 ...
5
votes
2answers
3k 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
602 views
Can one use OpenGL ES from Google Go?
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
567 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
626 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
794 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
2k 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, ...
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 ...
5
votes
1answer
3k 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
566 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
1k 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
948 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
673 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
332 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
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 ...
4
votes
1answer
321 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
308 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
1k 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
932 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
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 ...
3
votes
1answer
392 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
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 ...
2
votes
3answers
522 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 ...
-1
votes
1answer
1k views
smoke effect for a rocket in OpenGL es 1.0 android
hello i am new to game development , i have a read this thread which make a smoke effect for a rocket in OpenGL es but i have problem with understanding it can anyone suggest me some articles about it ...
4
votes
2answers
1k 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 ...
