After playing around with some live wallpaper stuff, I decided to re-use the code I have in a fashion that's potentially usable to polycounters and other artists out there. So with that in mind I've put together a model viewing application for displaying real-time models on your android phone or tablet.
The current features are as listed:
- Blinn-phong specular model with fresnel
- Up to 3 lights supported (needs to be updated to save presets)
- Emissive and Transparency support
- Diffuse, Specular, Normal and Emissive png or jpg's supported
- Toggle enabled texturesd
- Wireframe display mode
- Fullbright display of a single texture
- Multiple models
- Live wallpaper mode with various viewing options
Future plans include:
- faster model loading
- light and camera presets
- free/paid versions on the marketplace
- gallery mode (basically swipe left/right to view different models)
Preview Image: (click for an imgur album)
Beta Version 11 Release
Installation Instructions: place the polyviewer folder within your data directory on your android phone or in the root directory on your microSD. Installing the apk requires browsing to it where you have placed it and installing it from your phone (you may have to allow for installation of unknown sources).
Models must be in obj format. Textures have to use the naming convention of the obj model name and contain diffuse, specular, normal or emissive in the name. To use alpha channels, you have to save the textures out as pre-multiplied alphas (limitation of android) if you wish to use transparency.
The diffuse map alpha is used for transparency and the specular alpha is used as the roughness value for the specular (between 0 and 255 currently).
Multiple models can be placed into a folder and will be loaded and displayed as a single scene. each model and it's textures should be unique.
This has been tested and runs smoothly on my galaxy s2. I DO NOT GUARANTEE this will run smoothly if at all. This is a test release so I can hopefully get more feedback on performance and other issues. Feel free to leave any feedback or comments. I am also looking for perhaps a couple test environments to build some more stuff into the live wallpaper.
Edit: updated the to the 11th revision.