Multi-lobe BRDF stochastic selection

Multi-lobe BRDF stochastic selection

maxtarpini
Collaborator Collaborator
383 Views
1 Reply
Message 1 of 2

Multi-lobe BRDF stochastic selection

maxtarpini
Collaborator
Collaborator

How should I use the multi-lobe BRDF mechanism (AtBSDF..) if I want to just sample one lobe at time by selecting it randomly among let's say two lobes .. like if I had the old Phong model where I stochastically choose diffuse vs specular (while still having MIS working for the specular lobe) ?

0 Likes
384 Views
1 Reply
Reply (1)
Message 2 of 2

alan.kingFCDLA
Contributor
Contributor

Hello, this could be done via one-sample MIS and something like the balance or power heuristic, where the PDFs returned by the BSDF represent a combined probability density. Because of the one-sample MIS, no matter your choice of lobe when sampling you would be returning a combined probability density.


There is a caveat here in that arnold would not know which category of BSDF was chosen unless you tell it via the lobe masks and lobe index in the output (which is a codepath that is not very well documented and is under-utilized), so this sort of thing works best with matched categories of BSDF (ie, two glossy reflection lobes).

0 Likes