Vecna 3D

2D-to-3D reconstruction pipeline

A Python pipeline that converts a single 2D photograph into a high-quality 3D .obj mesh file, ready for import into Blender, Unity, or Godot.

Creating 3D assets from scratch is time-intensive. Existing 2D-to-3D tools require manual preprocessing, don't handle backgrounds cleanly, and lack batch processing — making them impractical for production pipelines that need to process many images.

01

Integrated Stability AI's TripoSR model as the core 3D reconstruction engine, converting single images into textured mesh outputs.

02

Built an automated preprocessing pipeline: rembg for background removal, alpha blending for clean edges, and foreground centering to normalize input images.

03

Added batch processing to handle directories of images in a single run, with progress tracking and error recovery.

04

Optimized inference with CUDA acceleration for GPU-equipped machines, with automatic CPU fallback.

Outputs clean .obj meshes that import directly into Blender, Unity, and Godot without manual cleanup.

Batch processing handles full directories with consistent preprocessing — no manual image prep needed.

CUDA acceleration reduces per-image inference time significantly compared to CPU-only processing.

PythonTripoSRrembgCUDAComputer VisionBlender/Unity/Godot