Toon Outline - Different alternate to highlights

Toon Outline

Get toon outlines of your model during runtime!

By, Sonickirbystar (@PixelBloom)

Doing a simple trick of basically inversing a basepart’s cframe, you can end up with a inverted basepart, which makes great toon outline!

Download:

The Trick:

local lookvec = Vector3.new(1,0,0)
local upvec = Vector3.new(0,1,0)
local cf = CFrame.fromMatrix(Vector3.new(),lookvec, upvec, upvec:Cross(lookvec))

Sometimes the basepart might need some tweaking in its congifs with the upvec or lookvec. So tweak around. Sometimes its just the upvec z value you need to congifure with!

There are graphical issues with complicated models due to this not exactly extending the normals of the basepart which can have an offset sadly. There is no fix to this besides going blender and manually making a outline mesh for it.

This does double geometry since its cloning to do the outline, so use sparely!

I don’t need or want credit if you decide to use this into your projects. Modify whatever to fit your game’s needs. I would appericate any credit, even if its something small.

5 Likes

True it shouldn’t be used to clone the whole workspace but due to instancing this is not really a problem. Unless ofcourse you use it on unions

The RBXM link appears to be private or invalid.

1 Like

Oh, I’ll fix that… Thats weird, thanks for telling me

Edit: Its fixed now!