Skip to content
Discussion options

You must be logged in to vote

What I would suggest is to implement a chi^2 test first, as is done in many other BSDF plugins. Next, you can spot-check the value of the BSDF and result of the sampling algorithm for specific input arguments and compare variants. If discrepancies emerge, you can std::cout variables within the implementation. The important thing is not to try to debug something like this within a rendering algorithm.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@leroyvn
Comment options

@wjakob
Comment options

@leroyvn
Comment options

@wjakob
Comment options

@wjakob
Comment options

Answer selected by leroyvn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants