Skip to content

Debug Japanese Classroom scene #36

@wahn

Description

@wahn

The C++ version does render the Japanese Classroom scene (from https://benedikt-bitterli.me/resources) fine:

classroom

Whereas the current Rust version panics:

> ./target/release/examples/pest_test -i ../../../../Downloads/classroom/scene.pbrt
FILE = ../../../../Downloads/classroom/scene.pbrt
search_directory is /home/jan/git/self_hosted/Rust/pbrt/../../../../Downloads/classroom
13596 bytes read
...
Rendering with 4 thread(s) ...
block_queue.len() = 3726
thread '<unnamed>' panicked at 'ld = RGBSpectrum { c: [-0.008398388, -0.010858062, -0.013359588] }', src/integrators/path.rs:128:29
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread '<unnamed>' panicked at 'ld = RGBSpectrum { c: [-12.454978, -12.454978, -12.454978] }', src/integrators/path.rs:128:29
1 / 3726 [>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.03 % 43633.82/s 0s 
thread '<unnamed>' panicked at 'ld = RGBSpectrum { c: [-11.307451, -11.307451, -11.307451] }', src/integrators/path.rs:128:29
thread '<unnamed>' panicked at 'ld = RGBSpectrum { c: [-19.646214, -19.646214, -19.646214] }', src/integrators/path.rs:128:29
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', /checkout/src/libcore/result.rs:916:5
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Any', /checkout/src/libcore/result.rs:916:5

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions