dim3 Forum

Full Version: Idea: "Real" toon shading with outlines
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After seeing the new Dim3 Editor, I had an idea for toon shading with black outlines to make it look even more cartoony.
Wouldn't it be possible to first render the model as wireframe with a certain line width, then render the "real" model on top of it? If you make the lines wide enough, they will still show, even when you render the other model on top.
Or is that not possible? I know it's not possible in the current version of Dim3 (at least I don't think it is), but could it be added? That would be awesome. Smile
I need this! This would be awesome Brian Smile.
It's very easily doable, but the problem would be figuring out WHICH outlines to render, as you don't want to render them all (just the ones that are on the edge.) And the ones on the edge change depending on the animation/view/rotation/etc.

[>] Brian
That's the point though, Brian. If you render the regular model on top, you'll ONLY see the edges of the outer... uh... edges anyway.
Not sure if that would work though, I wouldn't think that's how objects in a view are rendered.
Brian- what bink means is that you render the model but all black and extra large, then you render it again but normally.

The problem is outlines on the maps....
Oops, sorry Bink, read that too fast. That might work, I'd have to try it out.

[>] Brian
Its usually done like this:
1.enable backface culling
2.Render 1d-textured model
3.disable backface culling
4.enable frontface culling
5.render wireframe with only backfaces(edge lines) showing

Look at the tutorial on nehe.gamedev.net
Reference URL's