Open-source Python/C++ simulation framework and synthetic data generator for 3D structured light projection, fringe pattern synthesis, and camera-projector depth map reconstruction.
![]()
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
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.
- 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.
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
Unlike standard graphics engines that export direct geometric z-buffers, ForgeOptics simulates the entire physical Phase-Shifting Profilometry (PSP) pipeline:
- Project Patterns: Projects multi-frequency sinusoidal fringe patterns onto target CAD models.
- Path-Trace Light Interactions: Simulates complex light deformation, PBR reflections, and caustics on the fringe patterns.
- Capture Deformed Fringes: Renders high-fidelity camera sensor views of the illuminated scene.
- Phase Unwrapping & Metric Depth: Runs phase demodulation on the synthetic fringe views to calculate true 32-bit float metric depth (
depth_z.exr).
Free sample synthetic depth datasets generated deterministically using ForgeOptics — Structured Light Depth Simulator. each sample scene folder contains the following files:
-
depth_z.exr — Raw 32-bit float metric depth map. Using camera intrinsics (calib), you can reconstruct the true 3D point cloud.
-
render.png — RGB render output.
-
seg_index.json — Object-ID segmentation mask mapping and class index metadata.
-
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).
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).
In computer vision and industrial robotics, acquiring ground-truth depth data for physical sensors is difficult, expensive, and error-prone. ForgeOptics addresses key challenges:
-
No Sensor Noise / Calibration Overhead: Eliminates the manual labor of capturing and labeling real-world 3D scanner data.
-
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.
-
Edge Case Dataset Expansion: Allows rapid generation of thousands of corner-case scenes under varying light conditions and camera poses before real hardware deployment.
-
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.
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)
uv venv --python 3.11
uv pip install -r requirements.txt
python ./src/main.py -> batch process with your scene setting
python ./src.depth_visualizer.py -> for checkign the depth results
This project builds upon LuisaRender, used under the BSD 3-Clause License. Copyright (c) LuisaGroup.