Implement CreateMaxMinDistSampler
wahn opened this issue · comments
Jan Walter commented
On the C++ side:
> rg -tcpp CreateMaxMinDistSampler
core/api.cpp
827: sampler = CreateMaxMinDistSampler(paramSet);
samplers/maxmin.h
85:MaxMinDistSampler *CreateMaxMinDistSampler(const ParamSet ¶ms);
samplers/maxmin.cpp
73:MaxMinDistSampler *CreateMaxMinDistSampler(const ParamSet ¶ms) {
TODO: Rust counterpart ...
Jan Walter commented
Commit 31f74d7 implements the MaxMinDistSampler, but the result differs from the C++ versions:
> imf_diff -d -f pbrt.exr pbrt_rust.exr diff.jpg
differing pixels: 83.680% (209199 of 250000)
average difference: 6.693%
maximum difference: 80.439%
Summary: Many pixels differ strongly.
== "pbrt.exr" and "pbrt_rust.exr" are different
Jan Walter commented
Commit 2b34e5d fixes the problem and the issue can be closed ...
> imf_diff pbrt.exr pbrt_rust.exr
pbrt.exr pbrt_rust.exr: no differences.
== "pbrt.exr" and "pbrt_rust.exr" are identical