Tagged Questions
3
votes
2answers
1k views
What is causing these visual artifacts on my OpenGL sprites?
What could be the cause of the defects in my characters sprite? I am using OpenGL ES 2.0. I draw my sprites in a sprite batch that uses UV coordinates from one large texture atlas. If you look around ...
3
votes
2answers
1k 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: ...
2
votes
1answer
158 views
re-using objects
I'm working with openGL ES 2.0 on Android and I've created a custom 'Quad' class.
This allows me to make a sprite object like so:
Quad mySprite = new Quad();
mySprite.setSize(w,h);
...
2
votes
1answer
2k views
Best practice to use Sprites in a game using AndEngine GLES2
Currently I am having static reference to all my sprites and loading and initializing them in my OnCreateResource mthod of SimpleBaseGameActivity, But now I have to override onAreaTouched listener on ...
2
votes
2answers
642 views
Horizontal wrapping with AndEngine
How would one implement the effect of a sprite disappearing on one side of the screen and appearing on the other using AndEngine? Like in Kid Icarus, seen here at around 1:22.
1
vote
1answer
308 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
2answers
1k views
Simple Android loading screen when using OpenGL
My game uses openGL ES 2.0 on Android and it's got to the point where the pause (while loading resources) has become noticeable.
All I'm after is to show a static screen (probably via an XML layout ...
1
vote
1answer
941 views
OpenGL ES 2.0. Sprite Sheet Animation
I've found a bunch of tutorials on how to make this work on Open GL 1 & 1.1 but I can't find it for 2.0.
I would work it out by loading the texture and use a matrix on the vertex shader to move ...
0
votes
3answers
2k views
Using multiple sprite sheets for same object AndEnginge
I have multiple sprite sheets for my object(Parrot) like eating, moving left to right, right to left and much more. I am using AndEngine gles2.0. How should I implement it? Every time I have to use ...
0
votes
1answer
348 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 ...