Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display 3D models in android?

I want to display some 3D models (.obj files) in an android app using android studio.

The user enters some data and the models have to be placed relative to each other according to the user input.

So all I need is to display some 3D models placed relative to each other according to the data entered before, and the user will be able to see the models from any direction when swiping the screen.

I don't know how to achieve this. I tried to use OpenGL-ES, but without avail as I can't find enough tutorials and the documentation is hard to be understood.

Any help or suggestion is welcome.

Thanks in advance.

like image 947
PЯӨGЯΛMMΣЯ Avatar asked Dec 26 '19 12:12

PЯӨGЯΛMMΣЯ


1 Answers

Found this 3D Viewer on GitHub (supports OBJ, GLTF)

Also, I believe it is possible to find some converters OBJ ~> GLTF (by Khronos). You can write Android App with embedded Web View in which you can show GLTF.

If someone will work on Android app using some HTML / JS framework like Phonegap or VueJS + Quasar, then GLTF could be good way to go (if OBJ ~> GLTF is not a problem).

like image 163
Alexey Matveev Avatar answered Sep 23 '22 12:09

Alexey Matveev