๐ฆ ClawHub
Photo to 3D
by @m15010495895-sudo
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...
TERMINAL
clawhub install photo-to-3d๐ About This Skill
name: photo-to-3d description: 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 model (.glb) via Tripo3D API. Use when user wants to convert photos/images to 3D models, generate 3D assets from pictures, or create 3D content from 2D images. Triggers on "photo to 3D", "image to 3D", "convert to 3D model", "generate 3D", "็ ง็่ฝฌ3D", "ๅพ็็ๆ3Dๆจกๅ", "ไธ้ฎ3Dๅปบๆจก".
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/apikeyTRIPO_API_KEY โ Get from https://platform.tripo3d.ai/Usage
# Full pipeline: photo โ isometric view โ 3D model
python3 scripts/photo_to_3d.py Custom prompt for Gemini preprocessing
python3 scripts/photo_to_3d.py --prompt "your custom prompt"Skip preprocessing (image is already a clean isometric view)
python3 scripts/photo_to_3d.py --skip-preprocessCustom output directory
python3 scripts/photo_to_3d.py --output-dir ./my_output
Output
output/{name}_isometric.png โ Gemini-generated isometric viewoutput/{name}_model.glb โ Final 3D model fileDefault 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
usdzconvert๐ก Examples
# Full pipeline: photo โ isometric view โ 3D model
python3 scripts/photo_to_3d.py Custom prompt for Gemini preprocessing
python3 scripts/photo_to_3d.py --prompt "your custom prompt"Skip preprocessing (image is already a clean isometric view)
python3 scripts/photo_to_3d.py --skip-preprocessCustom output directory
python3 scripts/photo_to_3d.py --output-dir ./my_output
๐ Tips & Best Practices
usdzconvert