Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.
0
votes
0answers
27 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 ...
1
vote
1answer
60 views
Switching from OpenGL ES 1.0 to 2.0
I have been developing an Android app using OpenGL 1.0 for quite some time using a naive approach to rendering, basically making a call to glColor4f(...) and glDrawArrays(...) with FloatBuffers each ...
-1
votes
1answer
32 views
Why doesn't onSurfaceCreated ever run in this code?
I create my game element this way in my activity:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mGame = new Game(this);
mGame.bootstrap();
...
1
vote
0answers
51 views
iPhone GLSL shader dynamic branching issue
I am trying to pass an array of vec3 as uniform and then iterate through them on each pixel. The size of array varies on situations so I can't make the loop with constant number of iterations. ...
1
vote
0answers
33 views
Android opengles how to use glunproject
How to use glunproject in my android app?
I have the following parts in my engine:
A projection matrix
A view matrix for the camera
A model matrix for each of the objects in my world. This matrix ...
0
votes
1answer
72 views
Get back or delete an existing OpenGL object, then change it and draw at new. How?
With OpenGL i'm drawing for example a circle.
Can i take this drawn circle back out of the window and change something and then draw it back on the window?
Or can i /have to delete it and then draw ...
1
vote
0answers
76 views
How to make the background of an OpenGL object transparent?
It sounds so simple but i didn't get it to work.
The Background of my FrameLayout where i add the GLSurfaceView in is colored blue but there is only black.
So here is my method to initiate the ...
1
vote
1answer
126 views
How to draw an OpenGL object in another on Android? -> Eyes and Eyeballs
As i allready wrote in another question:
I'm working on OpenGL since a Week, so i'm new to the most stuff. (also my englisch isn't the best. Hop you can understand the most anyway)
So i'm ...
1
vote
0answers
61 views
How to change/modify or animate an existing OpenGL object on Android?
I maybe know understand it all a little bit better so i thoug i make a new shorter question to eventually get an answer.
Get back or delete an existing OpenGL object, then change it and draw at new. ...
1
vote
1answer
145 views
How do I get smooth edges with OpenGL on Android?
Here is a screenshot that maybe makes clear what my problem is.
I'm only drawing 2D circles with OpenGL.
I already read the following:
...
1
vote
1answer
84 views
Selecting and moving object in OpenGL Gameplay3D Engine
I'm using Gameplay3d as a game engine to develop a simple board game. PEG Solitaire
I've come to the part where I've created a 2D grid for all the movable object, empty locations and also where it's ...
2
votes
0answers
58 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 ...
-4
votes
0answers
48 views
How to create a object file ( .obj ) file of human head [closed]
I need to do an application similar to this Morfo. For this I need a 3D model of type .obj file as below.
What is the tool I need to use? Can you please provide me some links!
1
vote
0answers
60 views
Android multi screen rendering
Is it possible on Android to render specifically / only, to the connected Monitor/TV on the hdmi port?
If so, is it possible to use OpenGL ES to render a different scene on the monitor and on the ...
0
votes
1answer
52 views
Interleaved formats for meshes confusion
So I have been reading up on data formatting for 3D objects so that I can render my meshes as fast as possible in openGL, I am quite new to openGL so bear with me.
The format for interleaving your ...
1
vote
2answers
133 views
GLSL Motion blur on mobile.. possible at acceptable framerates?
I have been struggling to implement a simple linear motion blur effect on mobile (Android, OpenGLES 2.0) but it just seems to destroy my framerate.
I'm rendering to texture (FBO) then applying a ...
7
votes
1answer
309 views
How wise is this multithreading architecture?
I'm rewriting a game engine I wrote in an attempt to parallelize as much as possible. I'm considering making properties which may be accessed from multiple threads all use accessors which use boost ...
0
votes
1answer
121 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
25 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
42 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
votes
0answers
22 views
Load a two texture for a single image at a regular interval of time - GLkit openglES
I used the below code to load the texture on a object.
- (void)ldText:(UIImage *)Image
{
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
...
1
vote
1answer
83 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
104 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
41 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 ...
2
votes
0answers
212 views
Improving performance of a particle system (OpenGL ES)
I'm in the process of implementing a simple particle system for a 2D mobile game (using OpenGL ES 2.0). It's working, but it's pretty slow. I start getting frame rate battering after about 400 ...
0
votes
0answers
33 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 ...
1
vote
2answers
79 views
How to get a texture from current point of view in OpenGL 2.0 ES?
Probably the title is confusing, but I didn't know how to ask better, sorry about that. What I would like to do is get a bitmap texture that represents exactly what's rendered at one point in time and ...
2
votes
1answer
262 views
Trying to run sample AndEngine gles2 code in the simulator throws “java.lang.IllegalArgumentException: No EGLConfig found!”, how can I fix this?
I tried to run a small sample game code in the emulator but it crashed. My LogCat is given here. Can you help me resolve the issue.
02-23 15:18:50.543: D/AndEngine(636): MainActivity.onCreate ...
2
votes
2answers
208 views
Point Sprites vs Textured Quads in Open GLES 2.0
I'm wondering what would perform better, point sprites (GL_POINTS) or regular sprites (GL_TRIANGLES). Here's the scenario:
I am developing a simple particle system to allow me to produce various ...
0
votes
1answer
168 views
Which version of AndEngine (gles1 or gles2) should I learn? [closed]
I m new to Game Development. I've chosen AndEngine, but there are 2 versions: gles1 and gles2. I tried sample code from both and found that gles2 code is not run on an emulator, but required an actual ...
2
votes
1answer
131 views
culling lines on the back of a globe
I am drawing a simple outline of the world using GL_LINE_STRIPs (in WebGL).
I want to not draw those lines that are on the other side of the spinning globe.
Using Nicol Bolas approach below I am ...
0
votes
0answers
144 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 ...
-1
votes
1answer
114 views
2d triangle with OpenGL-Es on Android
hey I am trying to draw a triangle on opengl es . I just followed a tutorial to do it. eventhough everything seems to be fine it does not work. everytime I run my code it sends me back to main menu.
...
0
votes
0answers
63 views
Starting OpenGL ES 2 [closed]
Really, I'm a bit confused now.
I want to learn OpenGL ES 2, and eventually make games for Android and iPhone.
Thing is, I don't really have any of these devices, so I need solution for emulating ...
3
votes
1answer
116 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
72 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 ...
0
votes
0answers
58 views
Understanding fonts generated by bmGlyph
Recently, I've purchased a Mac software for generating textured fonts for use in OpenGL applications.
The software is called bmGlyph.
I used it to generate a simple Arial font output and it gave me:
...
0
votes
1answer
126 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
2answers
234 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 ...
2
votes
1answer
202 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
vote
1answer
240 views
Android OpenGL ES RENDERMODE_WHEN_DIRTY implementation
I am trying to understand RENDERMODE_WHEN_DIRTY so that I could save battery life wherever possible.. I made this sample application so that GlSurfaceView is updated with random color only when the ...
-1
votes
1answer
119 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
266 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 ...
4
votes
1answer
265 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 ...
4
votes
3answers
505 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 ...
1
vote
1answer
420 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 ...
4
votes
3answers
371 views
OpenGL ES 2.0 - How to batch draw particles that have unique translations, rotations, scales, and alphas?
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 examples ...
6
votes
3answers
238 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
93 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 ...
0
votes
1answer
167 views
To stop Spite animation scrolling along the background in openGL ES
After using the endless road algorithm as described here, I also implemented the scrolling of walls along with it.
I have the walk animation of the person which is stationed at the center of the ...