I want to achieve this outline effect outside of the game engine for animations, without using freestyle. Is it possible to make this effect work in Cycles or BI?


Yes, this is quite easy to do in cycles:

enter image description here

  1. Duplicate and scale the object as shown in the video you linked.

  2. Add a node setup using the Backfacing output of the Geometry node to mix a black diffuse shader with a transparent shader. This will go on the scaled duplicate (outline) object to provide the backface culling effect.

  3. Disable the Ray visibility on the outline object for everything except Camera and Glossy, Transmission if you want to see the outline in reflections and refractions. This will allow light through the outline object, illuminating the main object inside.

To see the effect in the viewport:

Enable Backface Culling in 3D view > Properties panel (N) > Shading, and set the viewport color of the outline material to black:

enter image description here

Outlines without extra objects

Also, if you find having an extra object for the outlines rather awkward, you can generate the outline mesh procedurally using a Solidify modifier:

  1. Add the outline material in another material slot:

    enter image description here

  2. Add a solidify modifier to the object you want to outline, enable Flip Normals and set the Material Index Offset to the slot where your outline material is (where the first slot is slot 0, the second is slot 1, etc.). So in this case, 1.

    enter image description here

Now the outline will even update in real time while you are modeling:

enter image description here

| improve this answer | |
  • $\begingroup$ Nice! Thanks! Is it possible to see this effect outside of rendering? or would i just hide it and continue with the animation? $\endgroup$ – Steven May 21 '15 at 15:40
  • $\begingroup$ Thats Awesome!, I coulden't get it to show up in the view port quite yet but i just got back from vacation and ill get back to you with my progress. Thank you again! $\endgroup$ – Steven May 26 '15 at 15:34
  • $\begingroup$ Hey will this work in BLender render too? $\endgroup$ – Steven May 28 '15 at 21:04
  • $\begingroup$ @Steven Yes, if you can find a way to enable backface culling. I'm sure there is one, but I can't remember it atm.. $\endgroup$ – gandalf3 May 29 '15 at 3:20
  • $\begingroup$ I figures it out, Thank you so much for your help! $\endgroup$ – Steven Jun 8 '15 at 1:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.