i never try this but it probably will work.
use 2 same mesh nodes and parent the second to the first. set the second node's material flag to EMF_WIREFRAME.
If you only want an outline like the one on greenya's image, you can just render an other mesh scaled a little bit, flip its triangles and set a color to it without lighting.
PI wrote:If you only want an outline like the one on greenya's image, you can just render an other mesh scaled a little bit, flip its triangles and set a color to it without lighting.
You can do this on your modelling program, you duplicate your models faces, invert them and scale(extrude) them using local normals. This is how outline used in games likeX-Men Legends are made. If you want to do this directly in Irrlicht, it will require some math knolege to execute the extrusion or the use of shaders.
PS: Doing that x-men legends thing you cant use alpha blending or alpha masks, because they will get glitched, you can notice that x-men legends characters dont use alpha masking.
@Virion: Oh, come on, it's a very, very old idea... Maybe that's why I know it?!?!
@Kalango: And again: Oh, come on, he can do it in Irrlicht (without math knowledge or extruding), no need to use a modeling app and save it into an other file...!
@Ravi08: Every mesh scenenode has a material, grab it and overwrite its ambient color!
Virion wrote:i never try this but it probably will work.
use 2 same mesh nodes and parent the second to the first. set the second node's material flag to EMF_WIREFRAME.