iamjaideep80 Posted July 14, 2009 Share Posted July 14, 2009 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. Quote Link to comment Share on other sites More sharing options...
sam.h Posted July 14, 2009 Share Posted July 14, 2009 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 Quote Link to comment Share on other sites More sharing options...
iamjaideep80 Posted July 14, 2009 Author Share Posted July 14, 2009 Thanks Sam. But can I do it with normal shaders. This way, I have to write shaders for all my existing shaders. Quote Link to comment Share on other sites More sharing options...
sam.h Posted July 14, 2009 Share Posted July 14, 2009 Thanks Sam. But can I do it with normal shaders. This way, I have to write shaders for all my existing shaders. I don't know sorry Quote Link to comment Share on other sites More sharing options...
Alanw Posted July 15, 2009 Share Posted July 15, 2009 (edited) 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 July 15, 2009 by Alanw Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.