A web application that allows users to generate 3D scenes and models from text descriptions using AI technologies.
- ๐ฎ Generate Three.js-compatible 3D scenes from text prompts
- ๐๏ธ Create realistic 3D models using Tripo3D API integration
- ๐ฑ๏ธ Interactive 3D viewport using Three.js
- ๐พ Download 3D models in glTF/GLB format
- ๐ฑ Modern, responsive web interface
- Backend: ๐ Flask (Python)
- Frontend: ๐ HTML, CSS, JavaScript
- 3D Rendering: ๐ง Three.js
- AI Services:
- ๐ง Azure OpenAI API for scene generation
- ๐จ Tripo3D API for 3D model creation
- ๐ Python 3.6+
- ๐ฆ Node.js (for optional tools)
- ๐ฅ Clone the repository
- ๐ Install Python dependencies:
pip install -r requirements.txt
- ๐ Set up environment variables in
.env
file:OPENAI_API_KEY=your_api_key TRIPO3D_API_KEY=your_tripo3d_api_key
- ๐ Start the Flask server:
python server.py
- ๐ Open a web browser and navigate to
http://localhost:5000
Recording.2025-04-05.153624.mp4
- โ๏ธ Enter a descriptive prompt for the 3D scene or model you want to generate
- ๐ฌ Click "Generate Scene" to create a Three.js scene
- ๐๏ธ Click "Generate 3D Model" to create a detailed 3D model using Tripo3D
- ๐๏ธ View and interact with the 3D result in the viewport
- ๐ฅ Download the generated model if desired
server.py
: ๐ง Main Flask application with API endpointstemplates/index.html
: ๐ฅ๏ธ Frontend interfacestatic/
: ๐ Directory for static assetsscenes/
: ๐๏ธ Generated Three.js scene filesmodels/
: ๐งฉ Generated 3D models
convert_to_gltf.js
: ๐ Utility for format conversion