RenderKit / oidn

Intel® Open Image Denoise library
https://www.openimagedenoise.org/
Apache License 2.0
1.77k stars 164 forks source link

Clarification on the normal buffer #14

Closed TomCrypto closed 5 years ago

TomCrypto commented 5 years ago

This doesn't seem to be specified anywhere, but should the contents of the normal buffer be literal normals with potentially negative values, or should they be converted to positive values using N * 0.5 + 0.5? The bit about arbitrary lengths being allowed suggests the former and it does seem to work fine, but I just wanted to have hard confirmation. It's not completely obvious to me since the other buffer contents are always strictly nonnegative so maybe it's worth a mention in the readme either way?

atafra commented 5 years ago

The normals should be the actual normal vectors, with both positive and negative values. We've updated the documentation to clarify this.