Jump to content

How to DON'T render some specific planes?


Recommended Posts

Ok, guys, I'm progressing in Mantra and have got a new question - How to don't render some specific planes?

Real situation - I've got 2 light sources - Sun & Sky. And most of passes(image planes) are rendering for each light source and for each component(diffuse, reflect and refract in my situation).

My passes on exit are: 

  1. diffuse_color_noshading - combined light, no component, one pass
  2. sky_direct_diffuse
  3. sky_direct_reflect
  4. sky_direct_refract - don't need
  5. sky_indirect_diffuse - don't need
  6. sky_indirect_reflect
  7. sky_indirect_refract
  8. sun_direct_diffuse
  9. sun_direct_reflect
  10. sun_direct_refract - don't need
  11. sun_indirect_diffuse  - don't need
  12. sun_indirect_reflect
  13. sun_indirect_refract

So, I've got 4 passes(planes) which I don't need.

Haw can I get rid of them? I thought about light contribution, but don't see how to use it in my situation.

 

Yours respectfully,

Paul

Edited by PaulM3D
Link to comment
Share on other sites

Ok, I understand you. Next time - it will defenitely be next time - I'll do this. But in those particular situation it could be better explained by words.

So, when you setting up your extra image planes, you may choose "Direct Lighting(per component)" - "direct_comp" VEX variable. And, as in my case, set "Export variable for each light". But if you don't need some components you should'n use "For each component" toggle. Just create an image plane and input VEX variable like "diffuse_direct", or "coat_direct" - if, for example, you don't need "reflect" component. And for lights - you could set particular light by editing "Light Mask" field. The * symbol means all light. You can exclude particular light by setting ^ symbol before its name. Or just delete * and add name of light you need.

 

Attaching .hip files - it's very good practice, I totally agree! When you can dive in, explore it by yourself. But in my case I can't upload my file because of something like NDA and, unfortunately, I don't have a time right now to make an example.

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