hi
i want to render diffuse passes for each light,so I add extra image plane in mantra and use this setting.
but the rendered image is very funny~
how to deal with it?
thanks
Error in rendering extra images planes
2974 3 0- flyingc
- Member
- 160 posts
- Joined:
- Offline
- Fabian
- Member
- 127 posts
- Joined: July 2005
- Offline
- Alanw
- Member
- 320 posts
- Joined: Aug. 2007
- Offline
Most (if not all) of the Illumination loops inside shaders that ship with Houdini are built to accumulate all lights into a single value before exporting that value. This goes for terms like diffuse and specular for the most part.
This means that you'll have to write a custom illumination loop that outputs the value you are interested in “before” you sum it for this checkbox to work as expected.
simplified example.
illuminance(P, N, M_PI/2) {
/* other code … */
/* specular */
spec = specularBRDF(Nl, Nspec, V, rough); /* output this value */
totalillum += spec; /* sum all lights, then pass this to Cf eventually */
}
There should be a good amount of info around odforce on the subject. You can also look into the specularBRDF and diffuseBRDF functions as they can be used inside of an illuminance loop.
This means that you'll have to write a custom illumination loop that outputs the value you are interested in “before” you sum it for this checkbox to work as expected.
simplified example.
illuminance(P, N, M_PI/2) {
/* other code … */
/* specular */
spec = specularBRDF(Nl, Nspec, V, rough); /* output this value */
totalillum += spec; /* sum all lights, then pass this to Cf eventually */
}
There should be a good amount of info around odforce on the subject. You can also look into the specularBRDF and diffuseBRDF functions as they can be used inside of an illuminance loop.
- silvina
- Staff
- 181 posts
- Joined: July 2005
- Offline
This is also in docs (scroll to the How To area):
http://www.sidefx.com/docs/houdini10.0/rendering/deeprasters [sidefx.com]
http://www.sidefx.com/docs/houdini10.0/rendering/deeprasters [sidefx.com]
-
- Quick Links