Textured scope in OpenGL ES

I want to have a textured sphere in OpenGl ES. What is the best way to do this? One of them is to create it manually. Another is to create it, for example, Blender and load it - what file format should I use?

+4
source share
1 answer

In blender, export the model as an obj file. Cancel the rotation by 90 degrees and select "triangulation". If you use lighting, turn on the normal options.

The next step is to convert the obj file to something easy to use. Use this tool:

http://www.heikobehrens.net/2009/08/27/obj2opengl/

Now you have your vertices, normals, and texture coordinates in arrays ready for rendering.

Good luck

Edit: Does Android use Java correctly? The tool exports to C header files, but you can easily convert it to java.

+4
source

All Articles