Tagged Questions
0
votes
0answers
28 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 ...
0
votes
1answer
68 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
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
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
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 ...
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 ...
-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
1answer
220 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
...
2
votes
1answer
515 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 ...
2
votes
1answer
629 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 ...
1
vote
1answer
118 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
200 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 ...
1
vote
2answers
259 views
Quaternion Camera
Can someone help me figure out how to use a Quaternion with the PerspectiveCamera in libGDX or in general? I am trying to rotate my camera around a sphere that is being drawn at (0,0,0). I am not sure ...
1
vote
1answer
165 views
Using Quaternion in libGDX
Can someone give me an explanation about how to use the Quaternion class in libGDX to move my camera around a sphere or just set it up, manipulate it, and apply it general? I am trying to acheive ...
1
vote
1answer
75 views
2D map/plane with nodes overlayed that supports panning, scaling and clicking on nodes
I'm trying my hand at Android development and seem to be running into an invisible ceiling in trying to get what I want accomplished. Basically I'm trying to create an app that renders a 2D surface ...
0
votes
1answer
159 views
Android, apply a pixelshader on a canvas
Can an opengl pixelshader be applied on a Canvas?
I want to render a bitmap on a canvas, then apply a pixelshader to get, for example, a blur effect. Is this possible?
I don't want to simulate the ...
2
votes
2answers
152 views
how to render small texture on another texture?
can anybody help me to render small texture on another texture.
i.e
I have one background image, when user touches on the screen it should draw small(circle or any object) on it.
can anybody suggest ...
7
votes
4answers
2k views
Sprite Animation in Android with OpenGL ES
How to do a sprite animation in android using OpenGL ES?
What i have done :
Now I am able to draw a rectangle and apply my texture(Spritesheet) to it
What I need to know :
Now the rectangle shows ...
1
vote
1answer
465 views
Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
OpenGL ES - Android.
Hello all, I am unable to rotate the triangle accordingly in such a way that its tip always points to my finger.
What i did : Constructed a triangle in by GL.GL_TRIANGLES. Added ...
1
vote
1answer
574 views
Sprite animation in openGL - Some frames are being skipped
Earlier, I was facing problems on implementing sprite animation in openGL ES.
Now its being sorted up. But the problem that i am facing now is that some of my frames are being skipped when a bullet(a ...
5
votes
5answers
751 views
Which version of OpenGL for Android?
I've been trying to learn OpenGL ES 2.0 to create a simple 2D game. I bought a book on android development, but after seeing that the author uses his own SDK that implements OpenGL ES 1.0 I decided to ...
1
vote
1answer
349 views
openGL ES - change the render mode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY on touch [closed]
i want to change the rendermode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY when i touch the screen.
WHAT i Need :
Initially the object should be stationary. after touching the screen, it ...
3
votes
1answer
376 views
how to do sprinkle effect of water in opengl in android?
I want to achieve sprinkling effect of water in android using opengl.
so,
do i need to achieve it with graphics?
is there any other way to do it using opengl?
or how can i start working on this,any ...
5
votes
2answers
794 views
Implementing fog of war in opengl es 2.0 game
Hi game development community, this is my first question here! ;)
I'm developing a tactics/strategy real time android game and I've been wondering for some time what's the best way to implement an ...
0
votes
1answer
672 views
Reducing Memory Use on OpenGL ES
I'm using an opengl es based framework to create my game.I have an out of memory problem on some devices.I have 15 textures with a size 1024x1024(totally 10 mb).On memory they covers a lot of ...
1
vote
2answers
381 views
Android OpenGL textures sometimes corrupted
Just trying to get some sprites (textured squares) to draw from a texture atlas and 50% of the time after the application is first launched/ reorientated/ brought from sleep these various graphical ...
0
votes
1answer
105 views
android opengl-es spritesheet display number
Whats the best way to display numbers on android with opengl using a spritesheet?
I like to display the number "294" using the spritesheet:
http://i.stack.imgur.com/wv5Zh.png
2
votes
1answer
92 views
Touch point on the near plane
I have a matrix created with either orthoM or frustumM GL function, where the near plane is logically the surface of the tablet. I would like to translate touch locations to their location on the near ...
4
votes
1answer
1k views
OpenGL ES 2.0 Best Practices / Architecture Guide
I've recently started working with OpenGL (ES 2.0) on the Android. While there is lots of documentation about the basics, I can't seem to find much about the overall architecture of OpenGL. In ...
1
vote
1answer
1k views
2D Quads : Translation with OpenGL ES 2.0 on Android [closed]
I have a simple 2D engine that renders 2D textured quads, and right now I can scale the quad or rotate it, but when I try to translate it I have a strange distortion (the quad is squashed in the half ...
4
votes
2answers
345 views
Geometry vs sprites
I'm developing an android game, where the enemies are geometrical shapes. Performance is a main goal for me so I was wondering if defining shapes directly in OpenGL would be more efficient than using ...
0
votes
2answers
389 views
Help with Meshes, and Shading
In a game I'm making in LibGdx, I wish to incorporate a ripple effect. I'm confused as to how I get access to the individual pixels on the screen, or any way to influence them (apart from what I can ...
0
votes
3answers
3k views
2D Rendering with OpenGL ES 2.0 on Android (matrices not working)
So I'm trying to render two moving quads, each at different locations. My shaders are as simple as possible (vertices are only transformed by the modelview-projection matrix, there's only one color).
...
0
votes
0answers
333 views
FPS problem with 2D OpenGL ES framework
I'm using the following framework :Beginning Android Games Framework
On my phone Galaxy S2 there is 60 FPS.But on galaxy tab 10.1 fps is going down to 40.Then i remove glView.setEGLConfigChooser(8, ...
4
votes
3answers
6k views
glTranslate, how exactly does it work?
I have some trouble understanding how does glTranslate work.
At first I thought it would just simply add values to axis to do the transformation.
However then I have created two objects that would ...
0
votes
2answers
888 views
Problem with drawing textures in OpenGL ES
I'm developing a 2D game for Android and i'm using the framework which has been told in the book which named Beginning Android Games by Mario Zechner.So my framework is well designed and using OpenGL ...
1
vote
1answer
249 views
From simple physics with a ball, to a more complicated shape
Hello fellow game devs and stack overflowers...
I recently made a transition from OpenGL ES 1.1 to 2.0 (on Android via NDK) and things are going well so far. I'm working on doing a dice rolling ...
1
vote
1answer
613 views
Handling different screen densities in Android Devices?
Well, i know there are plenty of different-sized screens in devices that run Android.
The SDK I code with deploys to all major desktop platforms and android. I am aware i must have special cares to ...
0
votes
1answer
1k views
Texture displays on Android emulator but not on device
I have written a simple UI which takes an image (256x256) and maps it to a rectangle. This works perfectly on the emulator however on the phone the texture does not show, I see only a white ...
1
vote
3answers
3k views
Open GL ES 2.0 with Android
I was wondering if someone could recommended a book that covers both android game developement and OpenGL ES 2.0. I have found some books with OpenGL 1.0, but I have heard that the syntax for OpenGL ...
-1
votes
1answer
540 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 ...
-1
votes
1answer
2k 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) {
...