Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multi-lobe BRDF stochastic selection

1 REPLY 1
Reply
Message 1 of 2
maxtarpini
297 Views, 1 Reply

Multi-lobe BRDF stochastic selection

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) ?

Tags (3)
Labels (3)
1 REPLY 1
Message 2 of 2
alan.kingFCDLA
in reply to: maxtarpini

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).

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report