Android 3D Model Viewer

codeship badge

This is a demo of OpenGL ES 2.0. It is basically an android application with a 3D engine that can load Wavefront OBJ, STL & DAE files. The purpose of this application is to learn and share how to draw using OpenGL language. The application does not use any third party library.

News (13/11/2019)

Demo

Checkout this to see the features of the application: https://www.youtube.com/watch?v=PV92DKohXXk

Android Market

Notice

About

Load 3D models and see how to do it with this open source code application.

The main purpose of this app is to show how to draw in android using the OpenGL 2.0 by sharing the source code. So please, don't expect this application to be much richer or nicer than the ones already published in the app store, but at least it's opened to anyone who wants to contribute or don't want to start a similar project from scratch.

As this is my first android app and Im still learning the OpenGL 2.0 language, it is highly probable that there are bugs; but I will try to continue improving the app and adding more features. So please send me your comments, suggestions or complains by opening an issue or email me to [email protected].

The app comes with some included 3D models that were taken for free from Internet.

Whats next

Features

Try it

You can install the application in either of these ways:

    export ANDROID_HOME=/home/$USER/Android/Sdk
    ./gradlew assembleDebug
    adb install -r app/build/outputs/apk/app-debug.apk
    adb shell am start -n org.andresoviedo.dddmodel2/org.andresoviedo.app.model3D.MainActivity

Open the application. You should see a menu. From there you can load models Once the model is rendered, pinch and rotate to see the 3D scene from another perspective.

Screenshots

Screenshot1 Screenshot2 Screenshot3 Screenshot4 Screenshot5 cowboy.gif stormtrooper.gif Screenshot6

Emulator

You can run application in an emulator

// install some file provider (i.e. es file explorer)
adb devices -l
adb -s emulator-5554 install .\com.estrongs.android.pop_4.0.3.4-250_minAPI8(armeabi,x86)(nodpi).apk
// push some files to test file loading
adb -s emulator-5554 push .\app\src\main\assets\models /sdcard/download

Documentation

https://github.com/andresoviedo/android-3D-model-viewer/wiki

Final Notes

You are free to use this program while you keep this file and the authoring comments in the code. Any comments and suggestions are welcome.

Contact

http://www.andresoviedo.org

Donations

Marketing

If you want to buy 3D glasses on Amazon, thank you for clicking on following links as it may help supporting this project:

ChangeLog

(f) fixed, (i) improved, (n) new feature