Dustyroom / flat-kit-doc

Documentation of the Flat Kit asset.
https://flatkit.dustyroom.com
Apache License 2.0
2 stars 1 forks source link

Big gaps on outline with width > 1 #63

Closed FrankVisuals closed 2 years ago

FrankVisuals commented 2 years ago

Describe the bug

When using the Stylized Surface Shader with a width bigger than 1 I have big gaps between the outlines on my low poly model.

To Reproduce Steps to reproduce the behavior:

  1. Add Low Poly Model
  2. Add Material if Stylized Surface Shader
  3. Settings as image below

Expected behavior I'd expect to have a clear outline, but it has gaps and looks bugged. Problem is even bigger on a higher distance

Screenshots

image image image

If applicable, add screenshots to help explain your problem.

Unity details:

dustyroom-studio commented 2 years ago

Flat Kit has two ways of generating outlines: with the Stylized Surface shader and with the Outline Renderer Feature. The former is a quick one, and unlike Photoshop outline, it is a tool to work live with 3D objects, and It is best suited for the smooth rounded objects. The latter method gives precise outlines on the objects of any shape.

When you use the Stylized Surface outline, in the URP version of Flat Kit you can see the Scale parameter. It is designed to make the outlines appear nicer on such sharp-angled meshes like the cubes. Please, look at the difference it makes to the outlines as opposed to using only the Width parameter.

flat-kit-stylized-surface-outline-on-cube-scale

flat-kit-stylized-surface-outline-on-cube-width

It is described in the documentation — Stylized Surface, Main Parameters chapter, (please, scroll down to the 'Outline' paragraph).

This topic had been discussed earlier here in the Git Issues, for example this one.

FrankVisuals commented 2 years ago

thanks for the very fast support ! I missed that in the docs - sorry for that!