-
Notifications
You must be signed in to change notification settings - Fork 242
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
Add eval(), sample_direction() and pdf_direction() to distant sensor #12
base: master
Are you sure you want to change the base?
Conversation
Hi @Speierers, any news regarding that? I had a look at @merlinND's |
// ds.emitter = this; | ||
// TODO: --^ must be fixed as soon as SurfaceInteraction3f is fit for | ||
// sensor sampling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the issue here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it's not SurfaceInteraction3f
but DirectionSample3f
. The emitter
member is set to point to the sampled object e.g.
upon call to DirectionalEmitter::sample_direction()
, and nothing equivalent can happen here. So I was wondering if generalising this member to accept any EndPoint
would make sense or if I should just ignore it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, this makes sense. And what prevents you from doing so? (e.g. something related to the ptrace
PR?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing, it's just out of the scope of mere plugin changes, so I just wanted to know if there was a reason not to do so :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually overlooked this: both SurfaceInteraction
and DirectionSample
would need some changes. I'll submit a separate PR for this.
Hi @leroyvn , Not sure to remember what was the issue with |
Hi @Speierers, see this other comment for details. |
I'm revisiting this PR. The issue we had back in July is still here. I started work on Wrapping it up:
|
Hi @leroyvn, I was just looking at the PRs you mention. It was actually not 100% clear what the issue with |
Hi @wjakob,
I think I do (see #19 (comment)). |
d43e297
to
8bc5ae2
Compare
Description
This PR implements the missing
eval()
,sample_direction()
andpdf_direction()
methods for the distant sensor plugin.Notes:
SurfaceInteraction3f
. Depending on the outcome, I might close this PR.Thecheckerboard
test segfaults when rebasing ontomaster
, I still have to investigate that. EDIT: This appeared with 1372c60.Testing
I added a few unit tests to check if the implementation was correct.
Checklist:
cuda_*
andllvm_*
variants. If you can't test this, please leave belowTested with the LLVM backend only (no CUDA).