how to draw cartoon model without shader

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
koller202
Posts: 143
Joined: Tue May 08, 2007 4:53 am
Location: Thailand

how to draw cartoon model without shader

Post by koller202 »

how to draw thick border model without shader

anyone have idea ?

Image
________
Toyota Auris
Last edited by koller202 on Thu Feb 17, 2011 1:13 am, edited 1 time in total.
Sean H.
Posts: 21
Joined: Mon Aug 06, 2007 12:25 am

Post by Sean H. »

theres two methods that i know of:

1. render with two passes; first pass is a black wireframe with thick lines, second pass is the textured model.

2. render with two passes, first pass is polygonal mesh in all black with faces flipped, second pass is the textured model.

with both techniques youll probably want to rescale between the passes such that the first rendered model is a bit larger than the second one. in the first technique, youll also probably want to bring the texured pass a little closer to the camera.
koller202
Posts: 143
Joined: Tue May 08, 2007 4:53 am
Location: Thailand

Post by koller202 »

i didn t understand u method

and how to use in irrlicht

change texture type 2 layer ?
or copy black model to same position and decrease size
________
DIGITAL VAPORIZERS
Last edited by koller202 on Thu Feb 17, 2011 1:14 am, edited 1 time in total.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

In the screenshot you show, the characters appear to be billboards, so the color and thickened borders are just the textures.

Travis
DarkDepths
Posts: 126
Joined: Sun Apr 02, 2006 1:21 am
Location: Canada

Post by DarkDepths »

I personally would draw two of the same model. Scale the first one up a bit. Then invert the normals and ensure that backface culling is on. Since the faces closest to the camera will always be facing away, irrlicht will cull them, leaving only the faces in the back. Draw them completely black and you have a toon outline.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

There's a Cel-shading tutorial on this page: http://nehe.gamedev.net/lesson.asp?index=08

It's an opengl tutorial so has nothing to do with irrlicht but it might give you some ideas, i don't know if the method is different to anything mentioned previously or would suit what you want to do (the previously mentioned methods sound suitable, this might be overkill or not quite right)
Image Image Image
Post Reply