Bad cell shading script

For all of you who like to make a cellshade-style outline of objects, Ive uploaded a script to make it easier. Just select your object, run the script, and it makes a parented outline mesh.

Its sucky, but download it if your into that sort of thing:)

Pythonscript project page at spinheaddev

I don’t like it

and here is why:
on objects that are complex (IE, not spere shaped) your method can create an object that intersects with the one you wish to have an outline around.

A better approach would be to scale along vertex normals, but if your scaling is high enough (or there is deep and sharp enough of a dent in the object) the outline mesh will intersect itself. It almost did, see further down

my point (metaballs converted to a mesh)
your method:
http://www.geocities.com/z3r0_d/files/outline_bad.png

my method
blah=http://www.geocities.com/z3r0_d/files/outline_good.png

how I did it:
enter edit mode
select everything (you wish to have an outline for)
duplicate with shift+[D], click without moving
flip normals on selection (in edit buttons)
scale along normals outwards with alt+s (cool function)
exit edit mode
enter face mode [F]key
enter edit mode
deselect all
select only your outline (I used the select linked key [L] with the mouse pointer near the edge)
exit edit mode
change your vertex color, and drawmode as necescary
press copy vertex colors (and copydrawmode if you changed it)
exit face mode

this could be put into a python script (NMVert.no for normals), but unless you will be outlining a large number of objects, and you are very picky about the size of their outline it isn’t necescary

how I did it:

thats seems very long… /doesnt read… /downloads god’s workable cell shader script and rejoices

z3ro d wrote:
how I did it:
enter edit mode

i used to do it that way, but without the alt+s tool, until i found that (hehehehe…it was right there, so easy to find…) and that works much better than just regular scaling…

Yeah, if you want to turn that into python z3ro, go ahead.

I’m not working on this subject any longer heh.