Mitsuba reads -34% against pbrt on vol-cornell-fog (lamp just above the fog)

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start with bench/results/VOLUMES.md and trace the vol-cornell-fog Mitsuba export, focusing on the medium around the emitter and room. Compare a minimal homogeneous slab scene with the lamp at 0, 4 mm, and 10 cm from the slab top, rendered in pbrt and Mitsuba at 1024 spp; use slabSingleScatterPhase as the single-scatter reference. Done when the discrepancy is explained and the benchmark guidance reflects the result.

Written by the indexing model from the issue text.

Description

question volumes

Where: bench/results/VOLUMES.md (media agreement)

On vol-cornell-fog (the examples' volumes page: fog filling the room up to 4 mm under the lamp, blocks inside) Mitsuba reads -34% against pbrt, darkest near the lamp (-37% top third, -23% bottom). Ours reads +0.7% against pbrt (pbrt itself reads ~1% low on this coloured lamp: spectral uplift, as on vol-cornell-smoke).

vol-cornell-fog-empty (no blocks) reads the same (-33%), so the surfaces inside the fog are not the cause. On vol-cornell-smoke (a cube of medium far from the lamp) all three agree.

Suspects

  • Our Mitsuba exporter when the medium surrounds the emitter (the lamp just outside the medium boundary, MediumInterface on the emitter / room).
  • Mitsuba volpath with an area emitter whose surface touches a medium boundary.

How to settle it

A minimal scene: a homogeneous slab under a small area lamp, with the lamp at 0 / 4 mm / 10 cm from the slab top, rendered in pbrt and Mitsuba at 1024 spp, plus the single-scatter closed form (slabSingleScatterPhase). Until then, judge vol-cornell-fog against pbrt only.

Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
15h 19m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/pathtracer

All issues in pmndrs/pathtracer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.