Collection Ray Visibility

Hello devs, since we already have Indirect Only for Collection in Cycles ( which is in my limited understanding was something like Camera Ray visibility )

Is it possible to expose the other Ray visibility for collection ? Like shadow, in my case I need a shadow matte pass only from characters, not combination between characters and environment.

This might be feel as a feature request, but I feel that Indirect Only already does the job for excluding Camera ray visibility, which is could be extended for other rays, isn’t it ?

Thanks

3 Likes

It’s relatively trivial to create a material that is transparent but casts shadows. Cycles now supports AOVs, so I wonder if there is also an AOV solution to the problem you’re trying to solve?
Anyways, per-collection ray visibility that can be overridden is something I would love to see.

afaik Cycles Shader AOV only works with Color and Value input, it can’t be used to override the object’s material and control light path ray.

For example I want to override material for all objects under Environment collection, I need to give all the materials a light path node, transparent shader and mix them with their original shader network so I can get cast shadow to be off, but this is going to affect all the materials for objects under this Environment collection whatever Scene I’m working on, which is not something I want.

In my case objects under Environment collections can be thousand objects that linked from another library, my screenshot above is only simplified example of what I usually did for separating collection in shot production, which I always miss this ray visibility option for collection.

I’d be happy to try and assist with a workaround… but I don’t want to turn this into a help thread if you meant for it to be a discussion about a feature (which I agree is a good idea). Feel free to DM.

1 Like

Thank you for your willing to help with workaround, my current workaround was to do this in compositing, which I need to subtract the shadow pass with environment shadow pass so I can get only shadow from characters. I’m ok with that for now.

Could this also address the possibility of lights affecting only the collections they’re in? This would be extremely useful for my workflow. Having the possibility to tweak the light just a bit in certain areas instead of creating whole new layers would be amazing.

1 Like

That is going to be different thing, probably light linking is what you want, this feature is on the dev list, so we can expect that is in progress

1 Like

That’s great news. Thank you!! :slight_smile: