How to create Outlines?


(Ndrakey) #1

Can someone tell me how to do Outlines like this artwork has ?

Charmeleon by tklafke on Sketchfab

(Lorenzoderijcke) #2

hi @ndrakey maybe this helps :smile:

but im not sure on how to get that into an export to sketchfab for instance.

but it looks like toon shaders or cell shading

cheers :smile:

(Simon Kratz) #3

I know about 2 most common approaches:

  1. Copy your mesh. Push vertices a bit along normal. Flip normals. This way you have kind of a shell of your original mesh with flipped normals. If you tint it in a flat color it will look like a convincing outline. In some cases you might have some problems with this method though, it really depends on your models topology.

  2. use post processing (not supported on Sketchfab, yet). While rendering a frame there is lots of information stored in buffers. Your mesh normally appears in the color buffer with RGBA values or (in more advanced pipelines) for example in an object buffer.
    Using the alpha as reference you can draw an ouline by expanding the value=1 pixels around your object. Likewise this approach has its weaknesses. You'll need a tricky setup if you have lots of objects and only want to highlight a single one. +you will run into issues with transparent geometry.

For now only method 1 is usable on Sketchfab.
I wrote it a bit in-depth but hope it helps you :smile:

(Bart) #4

Here are some tutorials from our blog :smile:

(Lorenzoderijcke) #5

Hi @bartv I tried the second blog tutorial.

And this is my result.

Statue head with Cell shaded outline by Lorenzo de Rijcke on Sketchfab

is there a better way to accentuate the eye itself more right now the eye and statue are two separate objects with their own outline.