Corona Renderer Forum

Corona Renderer for Cinema 4D => [C4D] Feature Requests => Topic started by: mb3d on 2018-08-08, 13:19:01

Title: Curvature Shader
Post by: mb3d on 2018-08-08, 13:19:01
Hi,

Is any news on a curvature shader in upcoming update?


Thanks.
Title: Re: Curvature Shader
Post by: houska on 2018-08-08, 14:01:40
Hi!

Unfortunately, we do not plan to implement a curvature shader as of now.
Title: Re: Curvature Shader
Post by: maru on 2018-08-08, 14:05:25
Dubcat posted a kind of hack to get curvature map out of rounded edges: https://forum.corona-renderer.com/index.php?topic=13398.msg86428#msg86428
Maybe this can be reproduced in C4D. :)
Title: Re: Curvature Shader
Post by: mb3d on 2018-08-08, 14:44:31
Thanks for the reply houska,

You can use the inverse AO method

It works as a opacity map. :)
Title: Re: Curvature Shader
Post by: houska on 2018-08-08, 15:04:15
Well, AO is something related, yet fundamentally different (it will cast rays, which slows down the render, whereas the curvature shader only samples the surface in the surrounding area), so it will not be exactly what you want if curvature is what you're after.
Title: Re: Curvature Shader
Post by: Eddoron on 2018-08-13, 22:07:29
I tried using the round-edges shader as a mask a while ago but it doesn't show up or not properly.

Switching it to legacy behavior makes the areas (more) visible, but they're colored by what seems like the object/world space normals and this can't be completely overridden by desaturating it with a filter shader for example. The colorizer shader above with no interpolation "can help" a bit if the object is to be seen from a distance but a proper result looks different. Layer, fusion, any type of mask.