Two-step pipeline that converts any photo into a 3D model:
GEMINI_API_KEY — Get from https://aistudio.google.com/apikeyTRIPO_API_KEY — Get from https://platform.tripo3d.ai/# 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/{name}_isometric.png — Gemini-generated isometric viewoutput/{name}_model.glb — Final 3D model fileThe 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).
usdzconvert共 1 个版本