Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.
0
votes
1answer
40 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
0answers
30 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
54 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
37 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
38 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
40 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
38 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
70 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
33 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
58 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
38 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
84 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
94 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
145 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
64 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. ...