This is a class project of CMPS 260 directed by James Davis at UCSC.
A well documented face model render app on Android platform
- The serialized object is loaded instead of obj and mtl files for speed up (about 20X speed-up in a google pixel)
- The model is rotated when people rotate their mobile phone
- The light position is moved according to the touch position
- People can select the models and their texture maps and load them.
- The light intensity and the background brightness can be changed
- People can create gif images using this app
- The program is well documented
JPCT-ae for object loading
Standalone Animated GIF Writer for gif creation
-
Install Android Studio on your computer
-
Download this project, and open it with Android Studio.
-
Create a folder named My_JPCT on your phone. Its directory should be:
/storage/emulated/0/My_JPCT
-
Then copy the files under JPCT_Demo_Showcase_File to the My_JPCT folder. (From PC to your mobile phone) You can find the JPCT_Demo_Showcase_File folder under the home directory of this project.
Note that these are just serialized models and texture maps. You can also serialize your own model and put it together with your texture map into the My_JPCT folder on your phone.
Please also be careful if you are going to use your own model, you should load your model use software such as blender first and see if its center is at the corrdinate origin. Otherwise, you may not see your model on the phone screen even if you successfully load it. To serialize your model, please refer to this: How_To_Serialize_Model
- Simply the comments
This app has only been tested on a google pixel phone! However, if your phone support the TYPE_GAME_ROTATION_VECTOR sensor, I think this app will run properly on it.
Please contact me if you meet any difficulties when comprehending this app via email: