Jump to content

How To Get Light Specific Extra Image Planes


Recommended Posts

Hi,

I have a scene with 10 lights. I want 10 passes with illumination by each individual light.

I know that for 3 point lighting we can use RGB method. But that won't help with more than 3 lights. I am trying to do it with mantra node and Extra Image Planes option. There is an option called, Export variable for each Light. I am giving "Cf" as a vex variable and " Export variable for each Light" ON. It creates 10 channels but no information in it.

Plz reply if anybody knows how to do it.

Link to comment
Share on other sites

Hi,

I have a scene with 10 lights. I want 10 passes with illumination by each individual light.

I know that for 3 point lighting we can use RGB method. But that won't help with more than 3 lights. I am trying to do it with mantra node and Extra Image Planes option. There is an option called, Export variable for each Light. I am giving "Cf" as a vex variable and " Export variable for each Light" ON. It creates 10 channels but no information in it.

Plz reply if anybody knows how to do it.

You need to have an export parameter that is inside an illuminance loop (check out the help on the mantra node). I don't know what they are called (or if they exist) in the normal lighting model vops.

An example of it working is attached. Search the forums for "illuminance loop", there are a few threads out there.

perLightExport.hipnc

Link to comment
Share on other sites

The option to export per-light image planes on the Mantra ROP will only work if you've made your own illuminance loop that exports each light's contribution before it gets summed. The default LightingModel VOP, Lambert VOP and Specular VOP's outputs combine all of your light's contribution in their export variables.

if you've already written your shaders properly, then all you have to do is toggle the "Export variable for each light" option and it will work.

Edited by Alanw
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...