how to change the Shadow color

   6658   6   0
User Avatar
Member
217 posts
Joined: Sept. 2009
Offline
Hi there,

i would like to color the shadow of an Object.
How can I go for this in the shader vops?

Any suggestins would be nice.

Thanks!
User Avatar
Member
9380 posts
Joined: July 2007
Offline
there are a few ways, but if you want it to do inside surface shader then you can use isshadowray node and change opacity to some color just for shadow rays
here is the simple example

there are also some tips at the bottom of this page http://www.sidefx.com/docs/houdini11.0/light/shadows [sidefx.com]

Attachments:
shadow_color.hip (159.5 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
217 posts
Joined: Sept. 2009
Offline
Thanks tamte,

Are there other technics?. I just want that (as example) only the shadows on the floor became green. Taking this approche means that the shadow of the Sphere object is also green on other objects.
A approche based on the object which recieves the shadows and not which casts the shadow.

Thanks!
User Avatar
Member
9380 posts
Joined: July 2007
Offline
then you probably need to use illuminance loop inside your shader and alter shadow color there

Attachments:
received_shadow_color.hip (176.1 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
217 posts
Joined: Sept. 2009
Offline
Thanks Tamte!

exactly what i was looking for!!!…
please tell me how you learned all this!?
User Avatar
Member
9380 posts
Joined: July 2007
Offline
mainly through forums i guess and investigating many examples or native shaders and tools
on the other hand learning is fun so it is quite fast process
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
217 posts
Joined: Sept. 2009
Offline
Thanks tamte!
  • Quick Links