Textured cube edges.

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
Holiday
Posts: 42
Joined: Thu Apr 19, 2007 2:47 pm

Textured cube edges.

Post by Holiday »

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.

:roll:
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

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?:
Image
Image Image Image
Holiday
Posts: 42
Joined: Thu Apr 19, 2007 2:47 pm

Post by Holiday »

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 »

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.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
thomascheah
Posts: 77
Joined: Sat Jul 08, 2006 5:55 am
Location: Cyberjaya, Malaysia

Post by thomascheah »

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. :)
Objective World Pvt. Ltd.
"Turning Knowledge Into Wisdom."
http://www.objectiveworld.com
Post Reply