how to draw thick border model without shader
anyone have idea ?
________
Toyota Auris
how to draw cartoon model without shader
how to draw cartoon model without shader
Last edited by koller202 on Thu Feb 17, 2011 1:13 am, edited 1 time in total.
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.
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.
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
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.
-
- Posts: 126
- Joined: Sun Apr 02, 2006 1:21 am
- Location: Canada
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.
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)
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)