Page 1 of 1

Calculate mesh curvature

PostPosted: Sun Jan 20, 2019 8:59 pm
by mossman
Hello,

I am trying to calculate the curvature of a mesh in real time with a shader that I made with Amplify Shader Editor.
I made different approaches (I attached a shader) but the result is not the desired result (I attached a example).

How I get the mesh curvature data using Amplify Shader Editor?

Thanks

Re: Calculate mesh curvature

PostPosted: Mon Jan 21, 2019 7:07 am
by mehran
really interested in this.

Re: Calculate mesh curvature

PostPosted: Thu Jan 24, 2019 4:42 pm
by Amplify_Borba
Hello, there seem to be several techniques for achieving this, and we do have a sample included for a screenspace solution that you can find in the AmplifyShaderEditor \ Examples \ Official \ ScreenSpaceCurvature folder.

Unfortunately, the source for the image you've shared doesn't seem to provide any code to inspect as its files are compiled, so I can't offer any insight on how he achieved that specific effect. I would try and contact the author directly in this regard, perhaps he would be inclined to share further information on how he achieved that final result.