How sridhar0908/simulate_game_character works
This Flask application lets users create accounts, submit text prompts, and generate downloadable 3D game-character models. The main workflow records a generation, processes it asynchronously, then exposes status and model-file routes; the generation service builds an image, removes its background, creates and cleans a mesh, and exports GLB. The README also describes interactive 3D preview and saved generations. Source excerpts support the generation and persistence flow; template and viewer details are only documented, so those relationships are limited to README evidence.
Main entry points: app.py Flask routes · models.py Generation records · text_to3d.py Mesh cleanup and export · main.js Browser interactions
Components 17
Web application
- Flask routes
app.py - Configuration
config.py - Validation and status helpers
utils.py - Generation request
app.py - Background processing
app.py - Model download
app.py
Accounts and records
- User accounts
app.py - Generation records
models.py - SQLite database
models.py
3D generation
- Prompt-to-image
text_to3d.py - Background removal
text_to3d.py - Image-to-mesh
text_to3d.py - Mesh cleanup and export
text_to3d.py
User experience
- Web pages
templates - Browser interactions
static/js/main.js - 3D preview
templates
Other components
- User
Connections 20
- User → Flask routes: uses
README.md - Flask routes → Configuration: loads
app.py - Flask routes → Generation records: uses
app.py - Flask routes → Validation and status helpers: imports
app.py - Flask routes → Web pages: renders
app.py - Flask routes → User accounts: handles
app.py - User accounts → SQLite database: reads and writes
app.py - User → Generation request: submits prompt
README.md - Generation request → Generation records: creates record
app.py - Generation request → Background processing: starts
app.py - Background processing → Generation records: updates status
app.py - Background processing → Prompt-to-image: generates model
app.py - Prompt-to-image → Background removal: removes background
text_to3d.py - Background removal → Image-to-mesh: prepares image
text_to3d.py - Image-to-mesh → Mesh cleanup and export: returns mesh
text_to3d.py - Mesh cleanup and export → Generation records: saves generation result
- User → Browser interactions: interacts
README.md - Browser interactions → 3D preview: supports preview
README.md - User → Model download: downloads model
README.md - Model download → Mesh cleanup and export: serves exported file
app.py