Game Development Community

Outline a mesh

by Jody Dawkins · in Torque Game Engine · 04/07/2006 (1:37 pm) · 1 replies

img328.imageshack.us/img328/1295/outlining9am.th.gif

My searches have turned up very little. What's the best way to go about creating this type of effect? I've looked at the cel shading artical on TDN (which was way cool) but couldn't come up with something to meet my need. I found some example code here but I'm at a loss for the place in the engine to do this type of operation.

Thanks all.

- Jody

#1
04/07/2006 (1:59 pm)
One very simple way which can be done all in your modelling app
is to create a duplicate mesh, scale it up a bit (scale along normals, more precisely), give it a distinctive color, and flip its normals.

that's basically how the outline is created on this character: www.garagegames.com/mg/snapshot/view.php?qid=1093


note that's not strictly an outline unless your shape is convex.
but it's pretty close.