Jump to content
KavinduMathish

Curvature VOP in Shading

Recommended Posts

Hello,

I wanted to add a different shader layer for the concave areas of my geo. So i used the curvature VOP. But the issue for me is the values it returns are really sharp. See the images below to get an idea. The first image is the result of the curvature VOP. As you can see it has really sharp edges. I dont want that. I want a smooth falloff. For example look at the second image. It's just a AA noise but it's really smooth. Doesn't have a hard edge between black and white. But with the curvature VOP i dont know how to get that smooth look. It returns values from 0 to 1. So i tried fit ranging, using ramps but still can't figure out a way to make it smooth. The third image is the current WIP render of the geo. As you can see when the curvature layer is used in the final render it looks really bad with sharp edges. I want those black areas to be smooth. Any tips on how smooth it out or a different approach to calculate the curvature values?

Thank You! :)

 

Captures247.PNG

Captures248.PNG

Captures249.PNG

Share this post


Link to post
Share on other sites

Maybe try creating the curvature attribute in SOPS and then bring it into the shader with a Bind node and read in that attribute :) 

Share this post


Link to post
Share on other sites
Just now, Rence said:

Maybe try creating the curvature attribute in SOPS and then bring it into the shader with a Bind node and read in that attribute :) 

I tried that too. But since it's values are per primitive it doesn't give a good result either. I have to increase the resolution of the geometry much more higher if to get a smooth result from SOPs. But the geo already has a lot of polygons so increasing the number of primitives more is just not a good way I think.

Share this post


Link to post
Share on other sites

Can't you promote the attribute to points and then do an Attribute Blur?

  • Like 1

Share this post


Link to post
Share on other sites
27 minutes ago, Rence said:

Can't you promote the attribute to points and then do an Attribute Blur?

 

I forgot about blurring. It worked like a charm. Thank you! :blush:

 

Captures250.PNG.4d65f0a6682571d528dfaf3ddcbeb3a7.PNG

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×