How hannahlowery/3d-llm-asset-library works
This is a desktop 3D closet and outfit editor: users browse and manage a model catalog, select clothing by text or sketch, inspect it in a live viewport, and export or send the outfit to Blender. The Qt app coordinates the UI and local FastAPI service; the backend manages catalog data and the AI selection flow. Rendering, export, and Blender transfer are distinct product branches. Connections use README statements and the provided source index; unsampled implementation details are not inferred.
Main entry points: agent.py Closet agent · AssetStore.cpp Closet manager · main.py FastAPI routes · BackendClient.cpp HTTP client
Components 21
Desktop app
- Qt app
QT/main.cpp - Closet manager
QT/src/AssetStore.cpp - HTTP client
QT/src/BackendClient.cpp
Backend and catalog
- FastAPI routes
AssetLibrary/Backend_py/main.py - Catalog queries
AssetLibrary/Backend_py/database.py - PostgreSQL
- Key encryption
AssetLibrary/Backend_py/API_Encyption.py
AI selection
- Closet agent
AssetLibrary/Backend_py/LLM_py/agent.py - Request guardrails
AssetLibrary/Backend_py/LLM_py/guardrails.py - Sketch analysis
AssetLibrary/Backend_py/LLM_py/sketch.py - Agent schemas
AssetLibrary/Backend_py/schemas.py
Viewport and export
- 3D viewport
QT/src/ViewportItem.cpp - OpenGL renderer
AssetLibrary/src/Model.cpp - Camera controls
AssetLibrary/src/Camera.cpp - Model exporter
QT/src/ModelExporter.cpp
Blender integration
- Blender link
QT/src/BlenderLink.cpp - Blender add-on
AssetLibrary/Backend_py/blender_plugin/asset_library/__init__.py - Plugin downloader
AssetLibrary/Backend_py/blender_plugin/asset_library/client.py - Blender importer
AssetLibrary/Backend_py/blender_plugin/asset_library/importer.py
Other components
- User
- OpenRouter LLM
Connections 23
- User → Qt app: uses
README.md - Qt app → HTTP client: starts backend
README.md - Closet manager → HTTP client: requests catalog
QT/src/AssetStore.cpp - HTTP client → FastAPI routes: HTTP requests
README.md - FastAPI routes → Catalog queries: routes catalog calls
AssetLibrary/Backend_py/main.py - Catalog queries → PostgreSQL: reads and writes
README.md - FastAPI routes → Closet agent: dispatches commands
AssetLibrary/Backend_py/main.py - FastAPI routes → Sketch analysis: describes strokes
AssetLibrary/Backend_py/main.py - Closet agent → Catalog queries: builds catalog
AssetLibrary/Backend_py/LLM_py/agent.py - Closet agent → Request guardrails: checks requests
AssetLibrary/Backend_py/LLM_py/agent.py - Closet agent → Agent schemas: validates decisions
AssetLibrary/Backend_py/LLM_py/agent.py - Closet agent → Key encryption: loads key
AssetLibrary/Backend_py/LLM_py/agent.py - Closet agent → OpenRouter LLM: sends prompt
AssetLibrary/Backend_py/LLM_py/agent.py - HTTP client → Closet manager: returns selections
- Closet manager → 3D viewport: updates outfit
README.md - 3D viewport → OpenGL renderer: renders scene
README.md - 3D viewport → Camera controls: controls view
- Closet manager → Model exporter: exports outfit
README.md - Closet manager → Blender link: sends outfit
README.md - Blender link → Blender add-on: connects add-on
README.md - Blender add-on → Plugin downloader: downloads files
AssetLibrary/Backend_py/blender_plugin/asset_library/__init__.py - Blender add-on → Blender importer: imports models
AssetLibrary/Backend_py/blender_plugin/asset_library/__init__.py - Plugin downloader → FastAPI routes: fetches model files
AssetLibrary/Backend_py/blender_plugin/asset_library/client.py