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

About customizing ray directions #71

Open
IwakuraRein opened this issue Jun 8, 2021 · 0 comments
Open

About customizing ray directions #71

IwakuraRein opened this issue Jun 8, 2021 · 0 comments

Comments

@IwakuraRein
Copy link

Hi Benedit.

I know the path tracing algorithm demands the ωo generated randomly, I want to customize the ωo of the first bounce of each ray though.

I've tried to fathom tungsten's core codes but can't get everything clear, for I just started learning pbrt. I've made PathTracer.cpp load an exr file describing the ωo of each pixel, but I have no idea where I can assign them. I guess the random generation happens in the class PathSampleGenerator, and handleSurface(), estimateDirect(), sampleDirect(), and chooseLight() in the TraceBase.cpp need modifications. Could you teach me a bit?

Thanks. 😊

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