Forum

#1 2015-04-16 17:25:42

lolal
New member

Outlines (toon shading)

Hi,

First of all, I'm a french newbie in Guerilla !
I'm currently testing Guerilla 1.3.0.

I've read an old post (in "tips and tricks" section) which expose the "outline" slider in material nodes.

But I can't find this slider... am I blind ? wink

Thx for your help.

lolal

Offline

 

#2 2015-04-17 10:29:14

hulud
Guerilla dev, the guy to hug

Re: Outlines (toon shading)

Hi Lolal,

I'm talking here only about outlines. For the cell shading part, simply play with the Surface Diffuse -> Cell attributes. Don't forget to subdivide your geometry and to put the Raytracing > Terminator attribute to 1 to get a clean cell effect.

Like you said, this is an old post and this slider does not exist any more. We have a new outline workflow, which uses a displacement shader. Guerilla is now flexible enough to achieve this feature using existing concepts.

You need the following package installed in your Guerilla Render/ directory :

http://guerillarender.com/download/addo … utline.rar

The outlined objects must be duplicated and passed through the RenderGraph/Outline node. One easy way to do this is to instanciate the scene graph which needs outlines in a group called "Outline".

http://guerillarender.com/images/outline_scenegraph.png

Then using a single RenderGraph/Path node, apply the Outline RenderGraph node to this group.

http://guerillarender.com/images/outline_setup.png

The final result. Yes this is a cell shading including global illumination, but you can turn it off if you like wink

http://guerillarender.com/images/outline_result.png

Like any other objects, you have a total control of your outlines :

* You can shade them, by default they are black
* You can use shading nodes to change the width on the mesh using a vertex color or a texture
* You can render them on a separate layer
* You have 3d motionblur and dof

http://www.guerillarender.com/images/outline_lines.jpg
The outlines ni black and the geometry in white.
http://www.guerillarender.com/images/outline_vertexcolor.jpg
The vertex color used as outline width.
http://www.guerillarender.com/images/outline_color.jpg
The result with a cell shader.
http://www.guerillarender.com/images/outlines.mov


Cyril 'Hulud' Corvazier
Guerilla developer
http://www.mercs-eng.com

Offline

 

#3 2015-04-17 10:40:04

lolal
New member

Re: Outlines (toon shading)

Hi Cyril,

Thanks very much !
I'll try this today and get back to you.

Regards,
Lolal

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB