A digital wardrobe app. v1 milestone: an Android avatar creator — a stylized 3D mannequin the user reshapes with sliders. Nothing else is in scope yet.
- Renders a realistic parametric human with Filament.
- Sliders are generated at runtime from the model's 24 glTF morph targets.
- One-finger drag orbits, pinch zooms.
- Slider values persist across restarts (DataStore).
Explicitly not in v1: photo import, face mapping, clothes, outfits, recommendations, accounts, backend, iOS.
See docs/adr/0001-avatar-rendering.md. Short version: Kotlin + Compose, Filament's
ModelViewer renders a GLB generated by tools/make_avatar.py. The GLB has three morph
targets; sliders set their weights through RenderableManager.setMorphWeights.
- Android Studio with Android SDK 35 and JDK 17
- Blender 4.x (only to generate the model, once)
-
Generate the avatar model. Install Blender 4.2+ and MPFB 2 as a Blender extension (from https://extensions.blender.org/add-ons/mpfb/), then:
blender --background --python tools/make_avatar.py
This writes
app/src/main/assets/models/avatar.glb, a realistic human with 24 named morph targets covering gender, age, muscle, weight, proportions, height, cupsize and firmness plus MPFB detail targets. The app reads the target names from the GLB and creates one slider per target — no hard-coded slider list. MakeHuman assets are CC0. -
Open the repository root in Android Studio. Let it download Gradle and the SDK. If there is no wrapper, use File > New > New Project > Import or run
gradle wrapper --gradle-version 8.9once with a local Gradle install. -
Run the
appconfiguration on a device or emulator (API 24+).
If the model has not been generated, the app shows a message instead of crashing.
gradle :app:compileDebugKotlin # fast loop
gradle :app:testDebugUnitTest :app:assembleDebug # full gate.github/workflows/build-apk.yml runs the full gate on pushes to main, pull requests,
and manual dispatch. It uses JDK 17 + Android SDK 35, builds :app:assembleDebug, and
uploads app-debug.apk as a workflow artifact. Download it from the Actions run page.
The generated avatar.glb is committed so CI can bundle it into the APK. Regenerate it
with the Blender command above when the mesh changes.
- Drag: orbit
- Pinch: zoom
- Sliders: reshape the mannequin; changes save automatically
- Skin tone and preset body types
- Photo-based face, then photo-derived body
- Wardrobe item CRUD (photos + tags)
- Clothing layered onto the avatar
- Rule-based outfit suggestions