Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] General Discussion => Topic started by: 3dkobi on 2019-02-03, 10:29:16

Title: How to create curvature based edge wear\Dirt ?
Post by: 3dkobi on 2019-02-03, 10:29:16
How can I created curvature based edge wear\Dirt ?
something similar to the attached pics.
Kobi
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: 3dkobi on 2019-02-03, 10:51:31
Never mind - I found the AO shader....:)
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Gruender on 2019-02-05, 08:48:14
Does triplanar work for you in max distance rollout?
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: romullus on 2019-02-05, 10:31:40
Triplanar is just a mapping shader, it needs input texmap to work and yes, it should work in max distance slot without problems.
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Gruender on 2019-02-05, 11:22:55
Yes, it should, but here it doesn't!

Of course I use a bitmap in triplanar!! With this setup applied, I can change triplanar size, blend modes for max distance texture and value for max distance, but it doesnt change anything.
So that's why I asked. Just for curiousity! It seems as if there is a bug!

Cheers...
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: romullus on 2019-02-05, 12:17:31
Ok, ok, no need to shout :] I can't know everyone's level of expertise, sorry for asuming that you don't know the basics.

Triplanar in AO is working in 3ds Max (see attached example*), so it definitely should work in C4D too. If you sure that it's not working, then report it as a bug.

* - on the left is regular mapping (notice texture streching), on the right is triplanar.
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: TomG on 2019-02-05, 19:15:44
After some testing, sometimes Triplanar doesn't seem to be working (and sometimes it is) - note that this is Triplanar overall, not just when used in the AO map. We are investigating, under internal tracking 316011885.
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Basshunter on 2020-01-30, 13:27:44
Never mind - I found the AO shader....:)

Hey buddy! Did you achieve the result you were looking for with the AO map.
I'm trying to do the same thing with no success.
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: evalery on 2020-01-30, 14:23:06
sorry this is an old post and probably not relevant anymore, but I actually managed to do this effect with the Corona AO shader and I've used a dirt map for the distance
i watched a corona tutorial about this on youtube :

list=PLt4UrWcQaAX9V8_rM8HHNGu2xRLfLBOP3

also attached my result. Thanks.
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: evalery on 2020-01-30, 14:27:14
oh shit sorry i just realised this was a post for cinema 4D and the tutorial is for max... sorry....
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Phillshaw on 2020-06-10, 20:53:42
Love that result from Max, has anyone rolled this out into C4D?

Thanks!
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Beanzvision on 2020-06-11, 14:52:54
Love that result from Max, has anyone rolled this out into C4D?

Thanks!

Maybe this might help? ;)

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=23489.0;attach=128083;image)
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Phillshaw on 2020-06-11, 15:51:42
Thanks! Yeah that does help, nice shot!
Is that AO simply in your diffuse colour layer?
Thanks!
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Beanzvision on 2020-06-11, 16:26:14
Thanks! Yeah that does help, nice shot!
Is that AO simply in your diffuse colour layer?
Thanks!

Sorry about that, I didn't realize I had cut that part off. As there is no diffuse in metal, the AO is residing in the reflection colour channel. I hope that helps :)

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=23489.0;attach=128085;image)
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Phillshaw on 2020-06-11, 16:47:33
Jeez sorry MY bad that is absolutely what I meant too, I just wanted to be sure it shouldn't be in the diffuse!!

Thanks :)
Title: Re: How to create curvature based edge wear\Dirt ?
Post by: Phillshaw on 2020-06-11, 17:25:31
Okay so I think I think i've created good.....

I already have a use for the shader im creating so this is what I have come up with. I know that I want the 'dispersal' to be fairly random, or as random as random ever is in these situations. So I used a colorised texture in the Occluded color channel. I adjusted my max distance as per your screenshot (im so fuzzy when it comes to scene scale *whole other conversation!*) then toyed with; color spread, the 'calculate from' (which I suspect is tantamount to concave+convex??) and direction offset which clearly relate to X, Y, Z.

This produced the screenshot which is ballpark what im trying to achieve. A rough, random, dirt spattering. I can then duplicate the shader out and change the seed on the colourised texture to produce different results, if that makes sense!


Thoughts appreciated,
Thanks,
Phil