Skip to content

๐Ÿง  Text-to-3D Is An AI-Powered Web App That Converts Natural Language Prompts Into Stunning 3D Scenes And Models Using Three.js And Tripo3D. ๐Ÿš€ Users Can Interact with The Scene, Download Models, And Explore Real-Time Rendering Through a Sleek, Responsive Interface.

License

Notifications You must be signed in to change notification settings

thejatingupta7/text-to-3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŸ 3D Scene Generator ๐ŸŽฎ

A web application that allows users to generate 3D scenes and models from text descriptions using AI technologies.


Scroll ๐Ÿ“œโฌ‡๏ธ


โœจ Features

  • ๐Ÿ”ฎ 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

๐Ÿ› ๏ธ Technologies Used

  • 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

๐Ÿš€ Setup Instructions

Prerequisites

  • ๐Ÿ Python 3.6+
  • ๐Ÿ“ฆ Node.js (for optional tools)

Installation

  1. ๐Ÿ“ฅ Clone the repository
  2. ๐Ÿ“š Install Python dependencies:
    pip install -r requirements.txt
    
  3. ๐Ÿ”‘ Set up environment variables in .env file:
    OPENAI_API_KEY=your_api_key
    TRIPO3D_API_KEY=your_tripo3d_api_key
    

Running the Application

  1. ๐Ÿš€ Start the Flask server:
    python server.py
    
  2. ๐ŸŒ Open a web browser and navigate to http://localhost:5000

Recording.2025-04-05.153624.mp4

๐Ÿ“ Usage

  1. โœ๏ธ Enter a descriptive prompt for the 3D scene or model you want to generate
  2. ๐ŸŽฌ Click "Generate Scene" to create a Three.js scene
  3. ๐Ÿ—๏ธ Click "Generate 3D Model" to create a detailed 3D model using Tripo3D
  4. ๐Ÿ‘๏ธ View and interact with the 3D result in the viewport
  5. ๐Ÿ“ฅ Download the generated model if desired

๐Ÿ“ Project Structure

  • server.py: ๐Ÿง  Main Flask application with API endpoints
  • templates/index.html: ๐Ÿ–ฅ๏ธ Frontend interface
  • static/: ๐Ÿ“‚ Directory for static assets
    • scenes/: ๐Ÿž๏ธ Generated Three.js scene files
    • models/: ๐Ÿงฉ Generated 3D models
  • convert_to_gltf.js: ๐Ÿ”„ Utility for format conversion

๐Ÿ“œ License

Apache 2.0 License

About

๐Ÿง  Text-to-3D Is An AI-Powered Web App That Converts Natural Language Prompts Into Stunning 3D Scenes And Models Using Three.js And Tripo3D. ๐Ÿš€ Users Can Interact with The Scene, Download Models, And Explore Real-Time Rendering Through a Sleek, Responsive Interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published