Closed expenses closed 3 years ago
Hi @expenses ,
Thanks for reporting this. I just confirmed your reported problem and the fix you suggest seems to work.
Maybe I wait a bit if the PR gets accepted and a new release of ply-rs
will be created.
Thanks, again
Hi @expenses ,
could you try with the latest commits, please? For me the ganesha.pbrt
scene seems to work now. Because I do not ship example scenes with the Rust crate anymore you might have to clone this repository:
https://gitlab.com/jdb-walter/rs-pbrt-test-scenes
After you cloned the repository you have to unpack the scene and make sure that you are rendering from within that directory:
$ cd pbrt/
$ tar zxfv pbrt_ganesha.tar.gz
$ cd pbrt_ganesha/
$ rs_pbrt ganesha.pbrt
pbrt version 0.9.1 (v0.9.1-1-g10bd3b9) [Detected 28 cores]
Copyright (c) 2016-2021 Jan Douglas Bert Walter.
Rust code based on C++ code by Matt Pharr, Greg Humphreys, and Wenzel Jakob.
Integrator "path"
"integer maxdepth" [4]
Sampler "halton"
"integer pixelsamples" [512]
Film "image"
"string filename" ["ganesha.exr"]
"integer xresolution" [720]
"integer yresolution" [720]
Rendering with 28 thread(s) ...
2116 / 2116 [========================================================================] 100.00 % 32.03/s
Writing image "pbrt.png" with bounds Bounds2i { p_min: Point2i { x: 0, y: 0 }, p_max: Point2i { x: 720, y: 720 } }
It would be great if you could run that test, so I could close the issue ...
Thanks
I'm getting the following error while trying to run
cargo run --release -- pbrt_ganesha/ganesha.pbrt
:This problem is caused by Undefined Behaviour in versions
0.5.3
and below oflinked-hash-map
: https://github.com/contain-rs/linked-hash-map/pull/106 which is imported viaply-rs
.I have a PR up for
ply-rs
that fixes this issue: https://github.com/Fluci/ply-rs/pull/18 so for now settingply-rs
inCargo.toml
toply-rs = { git = "https://github.com/expenses/ply-rs", branch = "linked-hash-map-bump" }
works.It seems like
ply-rs
hasn't been updated for a while so it's up to you whether you want to wait for it to update or to fix this in a different way.