How to convert the .obj file to openGL Android?

I have a .obj file (3D model), but I have no idea how to upload it to openGL Android. How is this achieved?

Are there any walkthroughs on this topic?

+6
source share
2 answers

You have 3 options:

  • Accept the use of a comprehensive framework containing loading model capabilities such as Min3D , Bonzai, or Rajawali . (There is a metric ton of these frameworks). Personally, I prefer Min3D, as it imposes minimal restrictions on the design of your application, and it has been tested more intensively than most alternatives. A good tutorial on loading models using Min3D can be found here .

  • Use a standalone model loader written for Android in Java, such as this . A license is a GPL, if I remember correctly, and interacting with the API is pretty trivial.

  • Write your own model downloader! OBJ is simply the simplest file format for analysis, and it takes just an hour or two to create your own custom loader. This method will fix any licensing issues you may have, and if you are new to 3D rendering, this can be a useful exercise.

+4
source

There is a free library for using 3D objects in android Rajawali. You can get all the information here . He actually has very good tutorials, and I hope this helps you. It will also show how to use the .obj file.

You can get the library from here .

Also, download an app from them to check out Rajawali-based examples.

+2
source

All Articles