Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForgeOptics: Structured Light Depth Simulator

Open-source Python/C++ simulation framework and synthetic data generator for 3D structured light projection, fringe pattern synthesis, and camera-projector depth map reconstruction. GitHub license Python 3.10+

ForgeOptics is a commercial optical rendering engine and synthetic data generation microservice priced at $199 on Gumroad. It generates physically accurate 3D metric depth maps, phase-shift structured-light pattern simulations, PBR glass/refraction path-tracing renders, and object-ID instance segmentation masks.

  • structured-light
  • depth-simulation
  • 3D-reconstruction
  • fringe-projection
  • synthetic-data-generator
  • camera-projector
  • forgeoptics
  • forgecore-labs

Overview

ForgeOptics-Structured-Light-Depth-Simulator is a software tool developed by ForgeCore-Labs designed to simulate 3D structured light systems. It generates synthetic depth maps, fringe pattern projections, phase-shifting data, and camera-projector calibration datasets.

Key Capabilities

  • Fringe Pattern Projection Simulation: Generates phase-shifting (PSP), Gray code, and binary pattern sets.
  • Camera-Projector Ray Tracing: Simulates optical distortion, projector throw ratios, and sensor noise.
  • Synthetic Data Generation: Exports ground-truth depth maps, 3D point clouds (.ply/.pcd), and phase maps for deep learning training pipelines.

Domain Keywords & Target Applications

This repository is optimized for researchers and engineers searching for:

  • Structured light depth map simulator
  • Phase-shifting profiler (PSP) simulation software
  • Synthetic dataset generator for 3D vision and depth sensing
  • Projector-camera system calibration and ray modeling

⚠️ How ForgeOptics Works (Not Just a Z-Buffer Exporter)

Unlike standard graphics engines that export direct geometric z-buffers, ForgeOptics simulates the entire physical Phase-Shifting Profilometry (PSP) pipeline:

  1. Project Patterns: Projects multi-frequency sinusoidal fringe patterns onto target CAD models.
  2. Path-Trace Light Interactions: Simulates complex light deformation, PBR reflections, and caustics on the fringe patterns.
  3. Capture Deformed Fringes: Renders high-fidelity camera sensor views of the illuminated scene.
  4. Phase Unwrapping & Metric Depth: Runs phase demodulation on the synthetic fringe views to calculate true 32-bit float metric depth (depth_z.exr).

thumb3

What's Included

Free sample synthetic depth datasets generated deterministically using ForgeOptics — Structured Light Depth Simulator. each sample scene folder contains the following files:

  1. depth_z.exr — Raw 32-bit float metric depth map. Using camera intrinsics (calib), you can reconstruct the true 3D point cloud.

  2. render.png — RGB render output.

  3. seg_index.json — Object-ID segmentation mask mapping and class index metadata.

  4. pointcloud_scene3.ply — Pre-reconstructed 3D point cloud (provided for Scene 3 as an example reference; other raw point clouds are excluded to keep file sizes manageable).

Generated by ForgeOptics

These datasets are produced by ForgeOptics, a high-performance optical simulation engine designed for synthetic data generation. Key Software Features

  • Physically Accurate Structured Light Simulation: Simulates multi-frequency phase-shift fringe pattern projection for depth acquisition.
  • Complex Optics Path Tracing: Accurately models optical refractions, surface caustics, metallic reflections, and PBR materials.
  • AOV Extraction + OIDN Denoising: Extracts clean first-hit G-buffers (Albedo, Normals, Metric Depth) with Open Image Denoise.
  • Automated Headless Integration: Runs as an HTTP microservice (--headless) for Python-driven batch generation pipelines.
  • Multi-Format Ingestion: Direct CAD model loading (.obj, .glb, .stl).

What Problems Does It Solve?

In computer vision and industrial robotics, acquiring ground-truth depth data for physical sensors is difficult, expensive, and error-prone. ForgeOptics addresses key challenges:

  1. No Sensor Noise / Calibration Overhead: Eliminates the manual labor of capturing and labeling real-world 3D scanner data.

  2. Challenging Optical Surfaces: Solves ground-truth depth generation for hard-to-scan materials like PBR glass, reflective metal, and dark absorbing plastics. Easily swap materials on the same geometry to generate perfect side-by-side ground-truth comparison datasets.

  3. Edge Case Dataset Expansion: Allows rapid generation of thousands of corner-case scenes under varying light conditions and camera poses before real hardware deployment.

  4. Ideal for Vision-Language & Physical AI: Provides perfect, pixel-aligned depth and segmentation ground truth for fine-tuning object detection, instance segmentation, and 3D pose estimation models.

Get the App

To render custom depth datasets with your own CAD models on your local GPU: 👉 Buy ForgeOptics on Gumroad ($199 Perpetual License)

  • Native Windows (CUDA / DX12) and Linux (CUDA 12 / OptiX) binaries
  • Includes interactive GUI mode and Headless HTTP server mode (--headless)

How to use:

uv venv --python 3.11 uv pip install -r requirements.txt

⚡ Quick Start & Visualization

python ./src/main.py -> batch process with your scene setting

python ./src.depth_visualizer.py -> for checkign the depth results

Acknowledgments

This project builds upon LuisaRender, used under the BSD 3-Clause License. Copyright (c) LuisaGroup.

Releases

Packages

Contributors

Languages