Jump to content

Distance based ramp shader


Recommended Posts

Hello all,

 

I'm trying to figure out how to shade a grid with multiple displacements based on furthest point from a defined grid, using a ramp to control color between max pos/neg.

 

I found this solution in an older topic, however I haven't managed to get it working on my scene, and it doesn't quite have the control I'd like (i.e. multiple color values along a ramp).

 

http://forums.odforce.net/topic/14220-proper-height-map-in-a-shader/?p=89519

 

Anyone have any tips? Should I be looking at VOPs or working directly in a shader?

 

I've attached an example scene with the type of geo I'm working with here - Essentially the mountain SOP becomes the surface I want to measure from, and the VOP displace is what I'd like to apply the shader/color to.

 

 

Any helps/tips are very much appreciated! :)

 

 

Thanks!

 

height shader.hip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...