Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com
0
votes
3answers
96 views
Where to run logic update in openGL ES?
Using Canvas with Surfaceview I had a run() method where I would essentially do the following:
onDraw();
update();
Where onDraw method would do the rendering and update would update all my game ...
-2
votes
1answer
110 views
Game code structure using openGL / Android [closed]
My game will have 3 activities (splashscreen, options menu and main game).
As it stands, each is a separate activity with it's own activity class and GLSurfaceview class.
Is this structure the right ...
0
votes
0answers
48 views
Strange problem with rendering quads in OpenGL ES 2.0 with custom classses on Android
I have 2 custom classes, one is for drawing quads (Quad) and the other is for drawing quads using VBO's (VBOQuad).
If I create a simple quad and render it like so:
Quad sprite = new Quad();
...
0
votes
2answers
121 views
onTouchEvent only working for one view within activity
I have a parent Activity which contains 2 views. One view is a custom view class, where I am overriding the onDraw method. This view contains an onTouchEvent function, which is checking for user ...
2
votes
1answer
123 views
OUYA Developer Kit throws various errors on start
I followed these instructions for Mac OS X using an existing IDE (shell + text editor) instead of the Eclipse ADT thingy. I activated “Use Host GPU”, and installed Intel HAXM.
Installing the ...
2
votes
1answer
155 views
How to create a 2D ocean effect in cocos2dx and box2d for iphone, android, windows phones
Currently my game needs a top ocean view. Can this ocean effect done using box2d? or should I dive into write my own physics (liquid/water simulation). Ideas and suggestions are welcome.
1
vote
1answer
99 views
Separate renderng thread in Android (OpenGL ES 2.0)
I'm used to mainly working with the Canvas SurfaceView API on Android and have recently been learning openGL ES 2.0
With canvas I know that surfaceView gives you the ability to start a new thread to ...
1
vote
1answer
106 views
Powers of 2 textures in Android 2d games?
I've read a lot about the importance of using powers of 2 png's for textures when using OpenGL ES. However, how does this relate to Google's own documentation regarding the resizing of graphics for ...
1
vote
1answer
40 views
Show view over existing view in same activity
I am newbie Android developer, and I am starting out with a simple Sudoku game. The problem I am facing right now is that I have my game showing on a dedicated Activity, which is displaying a custom ...
-1
votes
2answers
165 views
Developing a 2D Android game on Unity - Pros and Cons [closed]
Depending on your experiences, if you have created a 2D game on Android using Unity, was it painful? Have you ever said "I wish I have used X instead of Unity!"?
Tell me the Pros, Cons and the name ...
0
votes
0answers
43 views
Android: Switch(swipe) places on two images [closed]
I have two images next to each other and I want to switch their places with a swipe. I made collision detection but I don't now how to swipe and change their positions.
I'm really new at this, so ...
0
votes
1answer
147 views
GameLoop architecture for local multiplayer
I'm writing a game for Android to which I want to add a mulitplayer mode (local multiplayer via WiFi/Bluetooth, not online multiplayer via server). I stored the exchange-code between the client ...
0
votes
0answers
45 views
Understanding quaternions and axis angle representations [closed]
I have a sensor that gives me a quaternion. I convert the quaternion to an axis-angle representation using http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/. When I ...
0
votes
1answer
104 views
Drawing more that one quad with only one glDrawArray call…?
Edit
After initially thinking that my sprite batch test was faster than calling each sprite individually, it appears that is not the case!! :-(
With a single set of GL calls for a each sprite, I can ...
2
votes
2answers
109 views
How can set vibration option with my game in android? [closed]
I am using AndEngine to develop an Android game and I want vibration to be triggered when an enemy hits a player.
How can I implement this into my game?
2
votes
2answers
171 views
Android: Loading bitmaps without premultiplied alpha (OpenGL ES 2.0)
Is this possible? To load textures in non-premultiplied format (Straight alpha?)?
My game has 1 or 2 images which have semi-transparent pixels and I need to be able to fade them in and out but this ...
-2
votes
1answer
69 views
Android game adaptative game flux [closed]
¡Hi mates! Two friends and I are planning to code a game for Android using AndEngine GLES 2.0 Anchor but we have a concept problem, we need the game to be as adaptative as possible, I mean, if we make ...
0
votes
0answers
48 views
Listview on Canvas. Nullexception error
I'm developing a game app. I use a MVC that updates and renders animations/text in a canvas.
I need to show/hide a listView like I've done with this appTest:
...
1
vote
1answer
171 views
Adding local wireles multiplayer mode to my Android game
I've created a little game on Android. Now, I want to add a multiplayer mode which works with bluetooth or WiFi, so you can play together with other "smartphones" in your neighborhood . Which is the ...
1
vote
1answer
78 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
34 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();
...
2
votes
0answers
137 views
How can I tell if OpenGL has finished rendering the current frame?
If I make a call to http://developer.android.com/reference/android/opengl/GLSurfaceView.html#requestRender() from my game loop, how can I tell when OpenGL has finished rendering?
I don't want to ...
0
votes
2answers
143 views
Move Enemy towards Player in android using andEngine
I want to move all enemy towards player but i can't do this.Is there any way by which i c an perform this task?
3
votes
1answer
52 views
How can I change width of sprite Dynamically?
I want to change width of sprite dynamically but i can't perform it.!! Here i want to change only my white sprite i want to use these type of facility in my game in using AndEngine I want to display ...
-1
votes
1answer
50 views
How to Fix Some Portion of bound camera?
I want to add Progress bar with my game to display life of player but when i move down through DigitalOnScreen Control the black bar that i want to display is not displayed there. I want to display ...
1
vote
0answers
44 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
101 views
Develop a 2d isometric mobile game on Flash [closed]
I'm building a game on Flash that will run on web/Android/iOS.
The game is 2d isometric.I heard that developing mobile apps on Flash sucks and the graphics looks just awful.It'd be quite uncomfortable ...
3
votes
1answer
142 views
Google Play 3rd Party Payment Allowed?
Does Google allow 3rd party payment solutions to be enabled in developers' apps (i.e., Paypal, carrier/SMS payment), especially in countries where Google Checkout isn't present? Or does this violate ...
0
votes
1answer
95 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 ...
0
votes
0answers
59 views
Android - Rendering HUD View to SurfaceView
I have developed a relatively simple game in android, to get my head around it all, and on the back of it developed a crude game engine (in the loosest sense!). I use a SurfaceView and canvas (no ...
2
votes
0answers
121 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
73 views
Can't call method out of a timer. Why? [closed]
I have another problem i can't solve by myselve.
My situation:
I have four FrameLayouts in LinearLayouts.
I color them, set Layout hight and width at wrap content and just change the minwidth to ...
1
vote
1answer
162 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
68 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. ...
0
votes
1answer
67 views
Cost of changing scene in andengine
I'm working on a simple 2d puzzle with small textures (in count and quantity).
Now after I finished the game logic I'm considering tow options to switch between levels:
Remove all objects manually ...
0
votes
2answers
79 views
Android bitmap placing
I've recently added an explosion in my game, for when enemies get killed, and it works fine and all, but the explosion wont "spawn" on the enemies x and y.
The problem is that I'm not drawing the ...
7
votes
2answers
308 views
What's the best way to draw lots of trees
I'm writing an app which renders a random island planted with trees. The trees are currently two quads, criss-crossed and drawn with textures. I plan to have more complex meshes that form different ...
1
vote
1answer
207 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:
...
3
votes
3answers
200 views
Javascript board game: looking for optimization
I posted this question on stackoverflow before but received no answers so I decided to post it here and see if someone could suggest me something.
I'm working on a html/javascript game for android. ...
0
votes
1answer
88 views
'No Platforms Found' error in Unity Android
I am having a problem with Unity Android - every time I try to "build", a 'No Platforms Found' error pops up.
Thing is that I already have Android SDK in my computer (copied it into my G drive from ...
1
vote
2answers
256 views
Creating offline multiplayer Android games with Unity
Is it possible to create offline multiplayer Android games with Unity (played over bluetooth/ wi-fi)?
If so, then I would like to create a 2 player game prototype, containing a single room (empty ...
1
vote
0answers
72 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 ...
2
votes
2answers
117 views
How can I control the frame update rate of a thread?
I'm building a small game for a college project. It's quite a simple game. There are a number of dots on the screen and the player has to select them in a specific order. It's kind of a "join the ...
1
vote
2answers
200 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 ...
0
votes
0answers
104 views
graphic effects of Android game “Achtung” [closed]
I would be very gratefull if someone can give me a hint how the graphic effects of this android game ( http://www.isignz.nl/achtung ) works. Let us let this "pixie dust"-stuff aside for the moment; I ...
-6
votes
2answers
141 views
Moving a sprite diagonal?
I wonder how I should increase and decrease the value of xPos and yPos to be able to move a sprite object diagonal and in different angles?
canvas.drawBitmap(image, xPos - (image.getWidth() / 2), ...
0
votes
0answers
62 views
Texture not rendered correctly while zooming in LibGdx
I'm trying to make a game with libgdx which can run in multiple aspect ratio. The idea is to zoom in/zoom out the camera until the height of my screen same as the device height (my game is landscape). ...
0
votes
1answer
82 views
Android activities, when to use them?
I'm getting back into programming my game and I can see that I've used activities for so many things. I only have one with a custom-view (my actual game), the others are activities with XML-views, ...
5
votes
1answer
62 views
GLImpl.gldrawelements longer than usual
I'm developing a little game engine for the Android platform and I'm trying to improve the performance of this one. (I'm not an OpenGL expert)
I can see a framerate drop sometimes, when using DDMS ...
-6
votes
1answer
70 views
Android Game an [closed]
I want to develop an android game (3D/2D).. and I don't have any knowledge about android app development. So can you suggest some helpful and understandable resources like video tutorials or head ...


