Professional Documents
Culture Documents
Kauserali Hafizji
June Software
About Me @ Tap N Tap Android UI Toolkit for Tablets @ CrowdSpottr Built the android version @ June Software 2d Games for iOS and Android
Agenda
Understand why OpenGL ES for Android Apps Anatomy of an OpenGL ES Implementation My experiences of using OpenGL ES QnA
Sdk Animations
Animations can be done in 2 ways:
Tweened animation Frame by frame animation
10
11
3. OpenGL ES
Use OpenGL to render the elements. Pros All the rendering happens in one view and we dont have to worry about invalidations. Can render 2X-5X of regular FPS. Cons Programming intensive.
13
14
15
Co-ordinate axis
17
Viewports
Chunk of space that can be seen. OpenGL ES provides two kinds of viewports:
1. Perspective projection 2. Orthographic projection
18
Vertexes
A point in 3d space
X co-ordinate Y co-ordinate Z co-ordinate
19
Polygons
The biggest polygon that OpenGL ES allows you to draw is a triangle. Anything else needs to be drawn with a series of triangles.
20
3d Mesh
Textured Mesh
21
22
OpenGL ES animation
Press Me
23
24
25
26
onSurfaceCreatedonDrawFrame
In code
28
29
References
Jeff Lamarches blog
(http://iphonedevelopment.blogspot.com)
Man pages
(http://www.khronos.org/opengles/sdk/1.1/docs/man/)
OpenGL SuperBible
(http://www.opengl.org/sdk/docs/books/SuperBible/)
30
Conclusion
31
Questions??
32
Thank You
ali.hafizji@gmail.com @Ali_hafizji
33