Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.
0
votes
0answers
25 views
Motorola Defy (CyanogenMod) and OpenGL ES textures
My friend tested my game on a Motorola Defy (with CyanogenMod v4.x, I don't remember exact version number, and she is not reachable now).
My game uses OpenGL ES (v1.1, and in another activity, v2.0). ...
0
votes
0answers
21 views
Android , why GLSurfaceview output is different in Various Devices (Google Nexux7,Samsung Galaxy Note II)
I have created an android app for drawing of lines,circles.. by using
GLSurfaceView in OpenGLES 2.0 like an Auto cad app.
The app works well with Google Nexus 7, in the sense that if we draw a ...
-1
votes
2answers
78 views
How to create a projection matrix in OpenGL ES 2.0 [closed]
So I have the following...
float s = 0.5f;
void renderFrameLine() {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
GLfloat vVertices[] = { s, s, ...
0
votes
0answers
37 views
Rendering Texture Quad to Screen or FBO (OpenGL ES)
I need to render the texture on the iOS device's screen or a render-to-texture frame buffer object. But it does not show any texture. It's all black.
(I am loading texture with image myself for ...
0
votes
1answer
67 views
Android/OpenGL ES2: How do I set fragment shader value using C;
This should be easy So I am using the following to create a fragment shader.
GLbyte fShaderStr[] = "precision mediump float;"
"void main() \n"
"{ ...
0
votes
0answers
46 views
Android: Using touch does not go to center
I have a simple OpenGL app that draws a circle, I want to move the circle based on where a person touches the screen. The problem is, OpenGL sees the height and width as -1 to 1, whereas Android sees ...
1
vote
2answers
123 views
OpenGL ES 2.0: 2D game rendering, no performance gain with glDraw call batching
I just did a small benchmark. To my surprise batching sprites into a single draw call doesn't give any significant performance boost. Following are my results:
Hardware: iPod touch 4
Extra info: ...
6
votes
0answers
215 views
Optimizing performance of a heavy fragment shader
I need help optimizing the following set of shaders:
Vertex:
precision mediump float;
uniform vec2 rubyTextureSize;
attribute vec4 vPosition;
attribute vec2 a_TexCoordinate;
varying vec2 tc;
...
3
votes
2answers
91 views
OpenGL ES 2.0: Enabling hi-res on iOS
I created an empty iOS project and then added a custom GLView class which is then added to AppDelegate. I have following questions:
1) How do I enable hi-res retina mode on iPhone 4? Currently I am ...
1
vote
2answers
88 views
Calling glGetError() in release builds?
Currently, I'm calling glGetError() after each OpenGL function call in order to be able to detect and report bugs.
I've been reading that glGetError() calls should be reduced to once per frame in ...
0
votes
1answer
113 views
iOS OpenGL ES 2.0 How to Billboard on Sphere and Rotate with Sphere
I have a sphere (earth) in OpenGL ES 2.0 for iOS. I also have markers that I want to place at lat/lons on the earth - but I want the markers to always face the user ( billboards ) but also move with ...
0
votes
1answer
95 views
bump mapping with 2 normal maps
I was wondering if its actually possible to do bump mapping with 2 normal maps... I have tried doing it this way however I get a function overload on max and dot.
uniform sampler2D n_mapTex;
uniform ...
0
votes
1answer
48 views
texture movement stutters
Hey I at the moment I have got my texture to move however it stutters as I increment by 0.001 every second. My animation is done via FPS if that make sense and here is some code
FrameCount++;
...
0
votes
1answer
65 views
texture won't move OpenGL ES 2.0
I want be able to move my texture in GLSL I have set my texture to wrap S and wrap T but not sure why it wont move
my fragment shader looks like this at the moment
uniform sampler2D n_mapTex;
...
2
votes
0answers
50 views
OpenGL ES Single Bitplane Texture (or something close)
I'm looking to use a texture to store single bits (or a low number of bits, two or three). This in of itself isn't hard if you're using nearest neighbor sampling with some bit plane unpacking. The ...
0
votes
0answers
54 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
87 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
42 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
81 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
49 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
113 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 ...
2
votes
0answers
159 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
178 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
77 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
255 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
216 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
101 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 ...
1
vote
0answers
79 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
70 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
297 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
364 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
296 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
32 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
69 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
vote
1answer
118 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
212 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
60 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
312 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
58 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
108 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
487 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
377 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
249 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
170 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
242 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
290 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
81 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
167 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
91 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
80 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:
...