Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

3D Product Marketing Pipeline

An automated pipeline that transforms a text description into a production-ready 3D asset and marketing campaign.

๐Ÿš€ Features

  • Concept to Image: Uses Gemini 1.5 to refine product concepts and generate high-quality visual prompts.
  • Image to 3D: Full integration with Meshy.ai to create professional PBR-textured 3D meshes (.glb) using base64 encoding.
  • Virtual Photoshoot: Automated offscreen rendering of the 3D asset into studio-quality marketing shots using pyrender and trimesh.
  • Marketing Intelligence: AI-driven analysis of the final render to produce targeting strategies, slogans, and ad copy.

๐Ÿ› ๏ธ Tech Stack

  • AI: Google Gemini 1.5 Pro/Flash, Meshy.ai
  • 3D: Trimesh, Pyrender (requires OpenGL/GPU or OSMesa)
  • Language: Python 3.10+

๐Ÿ“ฆ Installation

  1. Clone the repository:

    git clone <your-repo-url>
    cd 3dmeshlogic
  2. Install dependencies:

    pip install -r requirements.txt

    Note: pyrender may requires a valid OpenGL context or OSMesa for headless operation.

  3. Setup Environment: Create a .env file from the template:

    cp .env.example .env

    Add your API keys:

๐ŸŽฎ Usage

Run the pipeline with a single command:

python main.py "A modern ergonomic desk lamp with carbon fiber finish"

The results will be available in the outputs/ directory:

  • outputs/images/: The initial product concept.
  • outputs/meshes/: High-quality 3D models (.glb).
  • outputs/photoshoots/: Rendered production shots.

๐Ÿ›ก๏ธ License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages