change wireframe color or psuedo wireframes?

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
idlewire
Posts: 5
Joined: Tue Aug 28, 2007 1:55 am

change wireframe color or psuedo wireframes?

Post by idlewire »

Is there a way to change the color when rendering as a wireframe? also is there a way to do wireframes without being able to see through the object as if you had a black model and just outlined the edges?
Ico
Posts: 289
Joined: Tue Aug 22, 2006 11:35 pm

Post by Ico »

Change the node's material - the wireframe will use the same color (or texture) as the default rendering.

Second question: Depending on your model (won't work for hollow models containing holes etc.) the dimensions, etc.:
Render the node in black (non-wireframe), resize it a little bit increasing its size slightly and render it again (this time wireframe color + wireframe mode). Might also be enough changing line thickness ... just test it. :)

Guess it could be done using pixelshaders too (drawing pixels next to edges in a different color) - similar to cell shading with outlines but don't ask me how. ;)
Post Reply