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.
Holiday
Posts: 42 Joined: Thu Apr 19, 2007 2:47 pm
Post
by Holiday » Mon Oct 08, 2007 1:21 pm
Hello,
is there a way how to texture each edge in a mesh with a for example white texture, or do i have to texture it by myself?
What i mean is, that for example a cube would be black, but it will have white lines around itself.
The idea is to get similar cubes like those in Darwinia.
JP
Posts: 4526 Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:
Post
by JP » Mon Oct 08, 2007 1:31 pm
Do you mean like a white wireframe? That's one way you could achieve the black cube with white lines (no idea what Darwinia cubes looks like).
If that's not what you're after then you'll probably have to use a modelling program to texture the cube.
If you can post a screenshot it might help
Like this?:
Holiday
Posts: 42 Joined: Thu Apr 19, 2007 2:47 pm
Post
by Holiday » Mon Oct 08, 2007 4:48 pm
Yes, yes!
But JUST around it, not each triangle..
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Mon Oct 08, 2007 10:09 pm
I don't believe there's a built in method, but
this post seems to offer a patch that will work with the openGL driver.
thomascheah
Posts: 77 Joined: Sat Jul 08, 2006 5:55 am
Location: Cyberjaya, Malaysia
Post
by thomascheah » Thu Oct 11, 2007 5:32 pm
Well you can certain achieve it via shaders. Do a Google on Toon shader or non-photorealistic rendering, or silhouette shaders, etc. If you are interested into this, I can share with you the theory and calculation of it.