Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] I need help! => Topic started by: prince_jr on 2020-01-02, 15:32:01

Title: imperfections on edges
Post by: prince_jr on 2020-01-02, 15:32:01
hi to everone, and happy new year!

i don't know if there is already a topic for this...
i want to add some imperfections to edges of an object for a close-up render. for example a concrete wall, where the cement is missing in some places (broken off)
> see attached image.

1. i tried to solve it with a texture in the bump slot of round edges
    > didn't work very well / it wasn't satisfying enough, as far iim searching for a realistic look.

2. i tried to solve it with a displacement map and beveled edges.
    > the problem here is...the height of the displacement is the same on both, surface and beveled edge.
    > would be nice if there is a way to handle displacement separately. one slot for surface, one for edges ;o)

back to my request...
is there any way to accomplish this?

i thank you for your help and inputs.

Title: Re: imperfections on edges
Post by: Cinemike on 2020-01-02, 17:05:44
You can always bevel your edges and instantly get faces to apply displacement to.
Title: Re: imperfections on edges
Post by: rojharris on 2020-01-03, 11:08:57
Hmmm.. There should be a way to mask displacement using the AO filter set to 'outside'... however I can't get it to work... tried a few things but if I get anywhere I'll let you know.

Title: Re: imperfections on edges
Post by: houska on 2020-01-03, 11:11:50
The AO shader is currently not allowed in the Displacement channel. There should even be a warning about that.
Title: Re: imperfections on edges
Post by: prince_jr on 2020-01-03, 12:51:45
thanks for your answers so far.

@houska:
this methode is very time-consuming. i'm looking for a "global" solution by edge shader.

@rojharris:
okay, thanks for the hint.

@houska:
basically i'm doing architectural renderings (interior & exterior) > adding imperfections to edges would be a "killer"-feature in corona! :oD
would be on my wishlist for future releases :o) but i don't know if this will ever be possible...!?

so...how would you personally add imperfections to edges at the moment?
Title: Re: imperfections on edges
Post by: Beanzvision on 2020-01-08, 18:08:54
I had a quick play around and came up with this. Feel free to tweak it how you see fit. :)

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=27460.0;attach=117765;image)
Title: Re: imperfections on edges
Post by: prince_jr on 2020-01-09, 23:20:17
thx @beanzvision
i tried to tweak it. but as i tried on another object (for example 200x100x10cm) the shader is messed up (stretched).
i ended up by manually deforming the edges. it took too loooong... :o(

would be nice if there's an easier way to get such results in future.
i like the round edges feature and always use it. not only bump should work with it, but displacement, too ;o)