-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump mapping is broken for BDPT and lightpath #385
Comments
Slightly confusingly, this is actually bump mapping, not displacement mapping. (Which is currently only supported for I am almost certain that the issue is due to pbrt-v4 not using the appropriate correction factor for shading normals with adjoint light transport. (See Eric Veach's Non-symmetric Scattering in Light Transport Algorithms paper for details.) In pbrt-v3, the correction is performed here: https://github.com/mmp/pbrt-v3/blob/13d871faae88233b327d04cda24022b8bb0093ee/src/integrators/bdpt.cpp#L206. But it is not included in pbrt-v4--here is the corresponding part of the code: pbrt-v4/src/pbrt/cpu/integrators.cpp Line 2109 in 6d9d64e
So why not? The problem is that applying that correction can lead to high variance in many cases. So if the shading normals aren't too far off the geometric normal, not applying the correction may be preferable. You might try re-adding that functionality in pbrt-v4 (and finding the right spot in the |
I agree, the reason I called it displacement is that pbrt-v4 scene format uses “texture displacement” for the bump map. (Fixed the issue title) Thank you for the suggestion, I will try it. Best |
Bump mapping works differently for lightpath, BDPT, and path integrators. Tests are done with pbrt-v4 ffdc498
Lightpath:

BDPT:

Path:

Ground truth (pbrt-v3 BDPT):

Scene is using
water-raindrop.png
(and Al_eta for v3) frombarcelona-pavilion
cornell_box.pbrt.txt
cornell_box_v3.pbrt.txt
The text was updated successfully, but these errors were encountered: