KeyShot Forum

Technical discussions => Materials => Topic started by: cjwidd on September 25, 2017, 03:17:46 PM

Title: [RESOLVED] Curvature Node Issues
Post by: cjwidd on September 25, 2017, 03:17:46 PM
In the attached image you can see the result of applying a considerable amount of contrast (color adjust) to a curvature node output. The consequence is a darker curvature (edge mask), but also the outline of the polygons that constitute the mesh surface. This is an undesirable effect, which can be mitigated somewhat by using an occlusion node and inverting the color.

There needs to be a "push off" modifier to prevent the curvature from being detected at .0001 off the surface of the mesh. Does such a thing exist in Keyshot?

Title: Re: Curvature Node Issues
Post by: cjwidd on September 29, 2017, 03:54:57 PM
I feel like this is a fairly serious drawback if this feature is indeed behaving as expected. Could I get some clarification on the matter, please?
Title: Re: Curvature Node Issues
Post by: Esben Oxholm on September 30, 2017, 12:14:39 AM
Try to use the 'color to number' node to adjust the contrast of your curvature texture instead of the 'color adjust'. Should give you more precise control of what you want to stand out.
Title: Re: Curvature Node Issues
Post by: cjwidd on September 30, 2017, 01:13:22 AM
I appreciate the advice and I gave this a try. Ufortunately this does not improve the situation. I think this is a more fundamental issue pertaining to how Keyshot is calculating the curvature. It's not doing anything wrong, it's just too sensitive; of course, for a NURBS model, this is not so much of an issue.
Title: Re: Curvature Node Issues
Post by: DriesV on September 30, 2017, 01:26:45 AM
I am a bit confused when you say "applying a considerable amount of contrast (color adjust) to a curvature node output". All I am seeing in the screenshot is a Curvature node connected to Color Invert, with a preview of just the Curvature texture?

The Cutoff and Radius parameters in the CUrvature texture can be used to control the "extent" of the curvature.

This is the first time ever that I see the curvature texture "catching" individual polygon edges.
Juding from the mesh topology, this looks like a scanned model, correct? If so, then maybe the polygons are not connected smoothly?

It would be great if you could share the model (publicly or through PM), or at least with support. :)

Dries
Title: Re: Curvature Node Issues
Post by: cjwidd on September 30, 2017, 02:00:30 AM
Good suggestion, I have attached the mesh below. The most straightforward solution is to retopo the mesh, but in this case, I would prefer to not do that. This object is a piece of a NURBS model that has been imported into Zbrush and then dynameshed. If you're not familiar with Dynamesh in Zbrush, it basically projects polygons onto a surface to create a uniform canvas of polygons to sculpt on. The result is, in some cases, millions of polys, depending on the mesh complexity, etc.

EDIT: Yes, smoothing (and topology in general) is probably an issue, but I suppose it depends on the renderer.
Title: Re: Curvature Node Issues
Post by: DriesV on September 30, 2017, 02:33:00 AM
Thanks, I will test some Curvature setups.

The mesh does look pretty crappy though. No offence :).
Just applying a Metal material, reveals a pretty bumpy surface.

Dries
Title: Re: Curvature Node Issues
Post by: cjwidd on September 30, 2017, 02:42:21 AM
SurfaceGotBump lol

EDIT: Right, so the mesh you are handling is a decimated version of a high poly dynamesh model (+5 million)(see attached). However, even using the polished (smooth) high poly version, you may encounter a similar problem (see attached).

Title: Re: Curvature Node Issues
Post by: DriesV on September 30, 2017, 03:05:53 AM
I think this can be solved by adjusting the Cutoff and Radius in the Curvature texture.
Attached is my attempt using your model. I think it works pretty well.

Dries
Title: Re: Curvature Node Issues
Post by: cjwidd on September 30, 2017, 03:10:29 AM
Quote from: DriesV on September 30, 2017, 03:05:53 AM
I think it works pretty well.

Hmm, yeah man it looks good. Well done. I guess there is some give and take with respect to blur / sharpness and the masked edges, but you struck a good balance. Thanks for the input, really appreciate it.