Search the Community
Showing results for tags 'selfshadow'.
Found 2 results
StepbyStepVFX posted a topic in Lighting & RenderingHello, This is not really a new topic, but I never found any convincing answer to it. Here is the scene : (i) a ground plane A which has a shadowmatte shader applied into it; (ii) a cube B that also has the same shadowmatte material applied to it and (iii) a volume having the form of a sphere C to which a billowysmoke material is applied (for fun, I could have taken a solid with a classic shader). I want B to cast shadows on C but not on A; I want simultaneously to have C to cast shadows on A. Said otherwise, I would like that all objects having the shadowmatte applied onto them cast and receive shadows onto / from objects having a different material, and avoid any "selfshadowing" ("self" being understood as objects having this same shader applied onto them) Therefore, saying B don't cast shadows don't work, neither saying A don't receive shadows. By the way, it seems that all masks options can't work in this situation, nor making groups. It seems to me that it would requires to change the code of the shader, so that when a ray hits a surface, it should "understand" what was the previous surface he was bouncing from and get its shader name, to know if ultimately it can be considered a shadow ray or not... Being quite weak in shading, I may express that very badly, but in short : does anyone knows any tricks to solve the problem above ? The only way I can get what I want is through having different passes / AOV with masks and solve that in comp. But a one shot solution would make gain some time :-) selfShadowingTest.hip