Am trying to color ray traced shadows… can only get shades of black.
I remember this being trivial in earlier releases… I think by using a shadow or light shader with shadow color parameter fields.
How do we do this now?
Colored Shadows
4724 4 2- fgillis
- Member
- 156 posts
- Joined: July 2005
- Offline
- houdiniuser42
- Member
- 42 posts
- Joined: Nov. 2006
- Offline
- mark
- Staff
- 2592 posts
- Joined: July 2005
- Offline
fgillis
Am trying to color ray traced shadows… can only get shades of black.
I remember this being trivial in earlier releases… I think by using a shadow or light shader with shadow color parameter fields.
How do we do this now?
Set the opacity to something other than grey (i.e. the Of variable inVOPs).
If you apply a basic surface and set the opacity to something other than grey you should get colored shadows (though it might not be intuitive - if you set the opacity to 1,0,0 the surface will be opaque in red, passing the green/blue light through - a cyan shadow).
- houdiniuser42
- Member
- 42 posts
- Joined: Nov. 2006
- Offline
markfgillis
Am trying to color ray traced shadows… can only get shades of black.
I remember this being trivial in earlier releases… I think by using a shadow or light shader with shadow color parameter fields.
How do we do this now?
Set the opacity to something other than grey (i.e. the Of variable inVOPs).
If you apply a basic surface and set the opacity to something other than grey you should get colored shadows (though it might not be intuitive - if you set the opacity to 1,0,0 the surface will be opaque in red, passing the green/blue light through - a cyan shadow).
is this an improvement on Zerouni's examples? sounds similar to example one, but more simple?
============================
and specifically in regard to:
markcouldn't a Complement VOP be wired in to make the shadow color picking easier?
… (though it might not be intuitive - if you set the opacity to 1,0,0 the surface will be opaque in red, passing the green/blue light through - a cyan shadow).
============================
anyway, the 3 examples in a bit more detail than my earlier post:
taken from Zerouni's - Houdini on the Spot book. highly worth it. hope to see another one for H10. :wink:
pg 201 - 202
Example 1 uses 2 light sources, with one casting shadows and the other not… then you end up w/ the same “shadow color math” scenario that mark mentions.
Example 2 uses a custom shadow shader done in VEX. *shudders* i'll just recommend going to the book for this one. pg 202
Example 3 he states, "modify the surface shader so that the object becomes transparent only for shadows." again uses some VEX, but it's cleaner and leaner.
hope that helps some. good luck.
- fgillis
- Member
- 156 posts
- Joined: July 2005
- Offline
-
- Quick Links