Tony Yiding Tian

MatForge

Four SIGGRAPH papers in one Vulkan path tracer

Vulkan 1.3, Slang, C++ · Nov – Dec 2025 · Team of 3

A ruined conservatory with a piano, rendered by MatForge

A GPU path tracer that implements four SIGGRAPH and SIGGRAPH Asia papers (2023–24) in one Vulkan ray tracing pipeline, built by three of us in five weeks for CIS 5650, on NVIDIA's nvpro vk_gltf_renderer. I wrote 2,400+ lines of its C++ and Slang: the sampling, its convergence analysis, and the RMIP intersection shader.

One pipeline, four papers

Each paper owns a stage of a path's life:

  1. Sampling. Quad-optimized low-discrepancy sequences supply the random numbers.
  2. Geometry. RMIP ray-traces displacement maps directly, with no tessellation.
  3. Directions. Bounded VNDF sampling picks GGX reflection directions.
  4. Evaluation. Fast-MSX adds back the energy rough microfacets lose to multiple scattering.
  5. Integration. Monte Carlo combines them: f(ωi, ωo) · L(ωo) · cos θ / pdf.

Quad-optimized sampling

From Ostromoukhov et al., SIGGRAPH 2024: low-discrepancy sequences optimized for the 2×2 pixel quads a GPU shades together, filling the sample space better than standard Sobol'. I built it end to end. On the host, a builder constructs the generator matrices of a base-3 Sobol' sequence from irreducible polynomials; on the GPU, a Slang sampler draws Owen-scrambled points, tracking each path's dimension, across 47 dimensions and up to 243 (3⁵) points. A toggle switches between it and PCG while rendering.

Samples per pixelQOLDSPCGGainLower MSE
6437.70 dB37.24 dB+0.46 dB10.1%
12840.67 dB39.80 dB+0.87 dB18.2%
25643.58 dB42.03 dB+1.55 dB30.0%
51246.38 dB43.81 dB+2.57 dB44.7%
PSNR with QOLDS and with PCG. The gain grows with the sample count, for under 1% more frame time.

To measure it I wrote an automated convergence framework: it renders each sampling configuration, scores the images by PSNR, MSE and SSIM, and writes the results as CSV for plotting.

Displacement without tessellation

RMIP, from Thonat, Georgiev, Beaune and Boubekeur (Adobe, SIGGRAPH Asia 2023), ray-traces displacement maps directly instead of tessellating them into triangles. A rectangular min-max image pyramid bounds the displaced height over any rectangle of texels, so a ray can be traversed through texture space hierarchically, skipping whole regions it can't hit. Cecilia built the pyramid and analyzed it; I wrote the custom Vulkan intersection shader that traverses it and reports where a ray meets the displaced surface, with support for glTF's KHR_materials_displacement. Getting it visually correct took 24 rounds of fixes.

Six flat planes carrying displacement maps, cobblestones, diamond quilting, rounded bumps and planks, each standing out in relief
Displacement maps ray-traced by RMIP, each on a flat plane with no tessellated geometry.
Samples per pixelPSNR, all leaves / ψSSIM, all leaves / ψψ speedup
426.15 / 26.170.6396 / 0.64123.19×
1632.22 / 32.270.8772 / 0.87891.42×
6438.42 / 38.650.9675 / 0.96921.15×
25645.38 / 47.280.9933 / 0.99500.93×
51250.26 / 49.950.9978 / 0.99760.77×
Two ways through the pyramid's leaves: testing every one, or ψ-guided marching. Guided marching is up to 3.2× faster at low sample counts and falls behind from about 128; holes stay under 0.3% of pixels at 512.

The material model

Xiaonan built the other two papers into the material system:

The demo scene

Sweeper3D's Forgotten Hall, with many of its materials and textures reworked so each paper has something to show: displaced stone paths, terrain and roof tiles for RMIP; rough stone, aged wood and metal fittings for the microfacet models; and foliage-dappled indirect light for the sampling.

Close up in the demo scene: stacks of old books, a goblet and a horse figurine on a round table, beside a weathered piano
A close view of the demo scene.

Project website · GitHub

[email protected] · LinkedIn · GitHub · Resume