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

Adaptive Sampling Problem #21

Open
archondoyen opened this issue Mar 1, 2024 · 1 comment
Open

Adaptive Sampling Problem #21

archondoyen opened this issue Mar 1, 2024 · 1 comment

Comments

@archondoyen
Copy link

I am currently learning how to use Mitsuba3, the tutorials are immensely helpful.

I want to achieve this function: manually specify the k ray samples for Pixel at (x, y)..For example, set 32 samples for Pixel(1,1) and 4 samples for Pixel(200,200).

I've gone through the API and tutorials, but haven't found clear instructions on how to achieve this.

Could someone please provide guidance or assistance on implementing this feature? Any insights or pointers would be greatly appreciated.

@njroussel
Copy link
Member

Hi @archondoyen

Mitsuba doesn't have the necessary "tooling" for adaptive sampling. This doesn't mean that it isn't possible to do it, but it definitely requires some work on your own.

Typically an integrator is only defined by a sample method which takes a ray and the scene as input. In order to do adaptive sapmling, you must handle this one level higher at the Integrator::render() method, where you actually define the rays that are given to the integrator and accumulate its results into the Film.

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

2 participants