3D game development constraints
3D game development in Android native is very complicated. The Android framework does not support direct 3D game development platforms. 2D game development is directly supported by Android Canvas. The developer requires OpenGL support to develop 3D games for Android.
Development is supported by Android NDK, which is based on C++. We will discuss a few constraints of 3D development for Android with OpenGL support.
Android provides the OpenGL library for development. The developer needs to set up scenes, light, and camera first to start any development process.
Vertices and triangles
Vertex refers to a point in 3D space. In Android, Vector3
can be used to define the vertices. A triangle is formed by three such vertices. Any triangle can be projected onto a 2D plane. Any 3D object can be simplified to a collection of triangles surrounding its surface.
For example, a cube surface is a collection of two triangles. Hence, a cube can be formed of 12 triangles as it has...