← 返回
未分类 Key

Photo to 3D

One-click photo to 3D model pipeline. Upload any photo, AI generates a clean isometric view via Gemini (Nano Banana), then converts it to a production-ready...
一键式照片转3D模型流程。上传任意照片,AI通过Gemini生成干净的正等测视图,随后将其转换为可用于生产的……
m15010495895-sudo m15010495895-sudo 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 676
下载
💾 31
安装
1
版本
#latest

概述

Photo to 3D Model

Two-step pipeline that converts any photo into a 3D model:

  1. Gemini preprocess — Transform photo into a clean white-background 45° isometric view
  2. Tripo3D generate — Convert the isometric image into a .glb 3D model

Requirements

  • GEMINI_API_KEY — Get from https://aistudio.google.com/apikey
  • TRIPO_API_KEY — Get from https://platform.tripo3d.ai/

Usage

# Full pipeline: photo → isometric view → 3D model
python3 scripts/photo_to_3d.py <image_path>

# Custom prompt for Gemini preprocessing
python3 scripts/photo_to_3d.py <image_path> --prompt "your custom prompt"

# Skip preprocessing (image is already a clean isometric view)
python3 scripts/photo_to_3d.py <image_path> --skip-preprocess

# Custom output directory
python3 scripts/photo_to_3d.py <image_path> --output-dir ./my_output

Output

  • output/{name}_isometric.png — Gemini-generated isometric view
  • output/{name}_model.glb — Final 3D model file

Default Gemini Prompt

The built-in prompt generates a 45° isometric "3D-printed model" style render with PBR materials on a pure white background. Override with --prompt for custom styles (e.g., game assets, architectural models, product renders).

Notes

  • Supported input: .jpg, .jpeg, .png, .webp
  • Tripo3D generation takes ~1-3 minutes depending on complexity
  • For higher quality, preprocess source images with upscayl before running
  • Output .glb files can be converted to .usdz for Apple AR using usdzconvert

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 09:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 331 📥 94,033
design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 134 📥 52,953
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 430 📥 117,148