Skip to content
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

Spectral range in SpectralFilm is overruled by constants in spectrum.h #417

Open
wvierber opened this issue Mar 9, 2024 · 0 comments
Open

Comments

@wvierber
Copy link

wvierber commented Mar 9, 2024

When using a SpectralFilm, adjusting "float lambdamax" [1050] and/or "float lambdamin" [330] does not result in the object being rendered outside of the 360-830 nm range. While there are channels for this extended spectral range outputted in the OpenEXR file, these are black.

Adjusting the constants in spectrum.h (to e.g. 330 and 1050) and recompiling PBRT does result in the object being rendered in the adjusted spectrum. It seems that the predefined visible spectral range overrules the arguments of SpectralFilm.

This can be reproduced using the scene and spectra used in debug.zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant