OpenGL for Embedded Systems (OpenGL ES) is a subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones, PDAs, and video game consoles. OpenGL ES is managed by the not-for-profit technology consortium, the Khronos Group, Inc. Last version is OpenGL ES 2.0, publicly ...
1
vote
1answer
98 views
How can I add a parallax effect into my side-scrolling game?
How can I add a parallax effect into my side-scrolling game? I read a lot about parallax scrolling so I know what the logic is and what parallax is but I can't create a dynamic parallax effect.
I ...
0
votes
2answers
72 views
Should I use a VBO if the vertex data changes from time to time?
If I have a very large number of vertices, but they're static for about 70% - 80% of their life time, should I use a VBO for them? If so, what usage should I specify? This doesn't sound like a case ...
4
votes
2answers
154 views
Tile map/terrain implementation with differing heights of neighbouring tiles
Ahoy!
I'm looking for some information about tile maps, or rather, what a specific type of tile map is called.
I'm interested in the kind of implementation used in rollercoaster tycoon, or the ...
1
vote
0answers
92 views
2D deformable terrain made of point sprites
Would it make sense to create a large 2D terrain out of point sprites? The terrain needs to be deformable, so when a chunk of it disappears, the upper side that now has nothing underneath it, needs to ...
0
votes
1answer
27 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 ...
1
vote
1answer
170 views
Scrolling and Parallax scrolling in 2D game
I'm developing a 2D side-scrolling game.I have a scrollable bitmap for background with size 2400x480.How can i scroll this bitmap?I have searched for algorithms but i can't find any solution.
I know ...
0
votes
0answers
78 views
How to display bitmap using Texture api in android opengl
I want to display a bitmap image at screen using texture api in android opengl. Some code which I have used in our code as below.
public void onSurfaceChanged(GL10 gl, int width, int height) {
...
0
votes
0answers
84 views
Particle systems designer for OpenGL ES 2.0
What tools can I use to design particle systems for an OpenGL ES 2.0 game? I'm planning on running the game on iOS devices. I tried Particle Designer, but so far it did nothing but crash on my ...
1
vote
3answers
185 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 ...
0
votes
0answers
56 views
Vertices, Normals, Texcoords and Indices for an 2d image in OpenGL ES?
I need to show a 2d image in QCAR. The easiest way is to have the Vertices, Normals, Texcoords and Indices for the 2d image and use the Object3D from Qualcomm's sample codes.
Can anyone give me some ...
1
vote
1answer
348 views
Open GL Android frame-by-frame animation tutorial/example code
My first question was asked wrong, so I need to ask again :)
I found out, that I will have to do an OpenGL animation for my Android game. The closest (known) example is Talking Tom (but I don't know ...
0
votes
1answer
252 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
0answers
106 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
160 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
1answer
364 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
136 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, ...
1
vote
1answer
125 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 ...
-3
votes
2answers
389 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
58 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
67 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 ...
1
vote
1answer
201 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
261 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
261 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
128 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 ...
0
votes
0answers
258 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 ...
1
vote
1answer
378 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 ...
2
votes
1answer
246 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
100 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
193 views
Android Renderer: Difference two ways of using
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
0answers
150 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
votes
2answers
361 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
216 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
203 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
115 views
0
votes
0answers
162 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 ...
4
votes
2answers
558 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
194 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 ...
4
votes
2answers
238 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
309 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
509 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 ...
1
vote
1answer
381 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
594 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
546 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 ...
4
votes
1answer
560 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
227 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
249 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
408 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
290 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
179 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
0answers
516 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 ...