refraction color problem

   3518   4   1
User Avatar
Member
303 posts
Joined: May 2007
Offline
i need shading the surface of the water, how can i keep the water's color?
attached pic show's my problem,all three pics are shaded with houdini's default glass shader.

the first one's refraction attenuation is nice,but the color goes black

the second one, i add diffuse to the water,but it seems never opacity.

the third one is what i like, i add a blue volume under the water to let it refract the right color , but it's very slow, how can i add this color to the shader?

Attachments:
refcolor.jpg (105.4 KB)

https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Member
691 posts
Joined: June 2006
Offline
You can fetch the ray distance with a gather function (or gather vop), and fit the range, then control the interpolation with a color ramp parameter to have artistic control.
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
303 posts
Joined: May 2007
Offline
alejandro
You can fetch the ray distance with a gather function (or gather vop), and fit the range, then control the interpolation with a color ramp parameter to have artistic control.

thank you alejandro, i have understand your advise. but can you make a simple vop example? i don't know how to get the ray distance. and not fully understand gather vop(i once saw one gather vop example, it add a constant value 0, don't know why ).
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Member
691 posts
Joined: June 2006
Offline
Look at this post.

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=23300 [sidefx.com]

But this file has the ramp example.

Attachments:
thickness_test_01_858.hipnc (251.5 KB)

Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
303 posts
Joined: May 2007
Offline
alejandro
Look at this post.

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=23300 [sidefx.com]

But this file has the ramp example.

nice! thank you very much alejandro
https://vimeo.com/user3971456/videos [vimeo.com]
  • Quick Links