Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] I need help! => Topic started by: Konichowaa on 2023-10-06, 12:30:13

Title: wire shader angle restriction
Post by: Konichowaa on 2023-10-06, 12:30:13
Hi, is there a way to restrict the wire shader effect to let's say all 90° angles, and thus not for the triangulation of certain plain surfaces (where untriangulate function doesn't work)?

thanks for any suggestions!
Koen
Title: Re: wire shader angle restriction
Post by: Beanzvision on 2023-10-06, 13:04:38
Hi there,

You could try selecting the mesh and use the ''melt'' function if untriangulate doesn't work.

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=41092.0;attach=188971;image)
Title: Re: wire shader angle restriction
Post by: Konichowaa on 2023-10-06, 13:15:07
thanks Bengamin, I always used dissolve to do something similar,

but for some triangles, they seem ok (n-gon) in the viewport but render a 'ghost triangle edge'
Title: Re: wire shader angle restriction
Post by: romullus on 2023-10-06, 13:56:54
but for some triangles, they seem ok (n-gon) in the viewport but render a 'ghost triangle edge'

There is an option to render or not hidden edges. Screenshot is from 3ds Max, but maybe the same functionality exists in C4D implementation too.
Title: Re: wire shader angle restriction
Post by: Konichowaa on 2023-10-06, 14:29:31
yes, the same option is available in c4d,
but is was disabled already.
If I enable it, all the boards get an extra diagonal wire edge/triangled, just like your printscreen

I'm attaching a piece of the house where you can see no triangles in viewport but the edge renders (IR/VFB).

Thanks to anyone for help!
Title: Re: wire shader angle restriction
Post by: Beanzvision on 2023-10-06, 15:36:35
I believe the ghost triangle is because the points are still there, if they are deleted as well it should render as expected. ;)

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=41092.0;attach=188980;image)
Title: Re: wire shader angle restriction
Post by: Beanzvision on 2023-10-06, 16:00:49
yes, the same option is available in c4d,
but is was disabled already.
If I enable it, all the boards get an extra diagonal wire edge/triangled, just like your printscreen

I'm attaching a piece of the house where you can see no triangles in viewport but the edge renders (IR/VFB).

Thanks to anyone for help!
Hmm interesting. Thanks for the file, I see the mesh is rather clean. I'll keep trying to figure it out...
Title: Re: wire shader angle restriction
Post by: jojorender on 2024-04-09, 16:32:59
Hi Konichowaa, did you ever figure out how to get rid of the extra edges?
I tried the "melt" function that Beanz suggested but these edges are still rendered.
“ALL Edges” off
I tried to replace wire with the curvature shader, but I can’t get the same sharp edge like the wire shader.
Any ideas?
Title: Re: wire shader angle restriction
Post by: steppes on 2024-04-10, 10:33:24
thats more or less, what I asked for here:

https://forum.corona-renderer.com/index.php?topic=39660.msg

We need phong restriction for wireshader, AO and curvature shader.

Unfortunately no news for 1 year
Title: Re: wire shader angle restriction
Post by: Stefan-L on 2024-04-10, 10:45:06
"We need phong restriction for wireshader, AO and curvature shader."

+1
Title: Re: wire shader angle restriction
Post by: Konichowaa on 2024-04-10, 11:06:18
No I didn't resolve the issue, even when deleting the polygon and reconstructing it with closepolygonhole or bridge tool. At the end, I cleaned it up a bit in photoshop, the new remove tool is bliss :-D ...


so also  +1   
Title: Re: wire shader angle restriction
Post by: jojorender on 2024-04-10, 14:50:44
Thanks guys for the info.
I thought, I “quickly” set this up in c4d standard with a Sketch Mat - LOL, after years of corona I can’t remember how to set up a native c4d mat scene.