One mesh, multiple materials

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
whisp
Posts: 17
Joined: Sat Jan 09, 2010 1:58 pm

One mesh, multiple materials

Post by whisp »

Hi all

Is there a way to have multiple materials for one mesh? If no: Eg in Eve Online there are models that use textures of rusty metal, while the metal reflects the light, the rust doesn't. How can this be done?

If i have to to split up a mesh to asign multiple materials, is there a way to have a smooth crossing from one mesh to the other?

Thanks for your replies.

whisp
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Post by Murloc992 »

It's multitexturing/shader materials :) Speculars are applied to metal and other texture layer which is rusty is not reflecting. :)
whisp
Posts: 17
Joined: Sat Jan 09, 2010 1:58 pm

Post by whisp »

Thanks, Murloc, your answer helped a lot.
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Post by Murloc992 »

whisp wrote:Thanks, Murloc, your answer helped a lot.
If it's not sarcasm then no problem. :roll:
whisp
Posts: 17
Joined: Sat Jan 09, 2010 1:58 pm

Post by whisp »

By no means, it was not sarcasm. :) I'm a newbie, so i might seem to be inappropriatly happy with things that are obvious to others. This hint to multiple layers is exactly what i needed.
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Post by Murloc992 »

whisp wrote:By no means, it was not sarcasm. :) I'm a newbie, so i might seem to be inappropriatly happy with things that are obvious to others. This hint to multiple layers is exactly what i needed.
Ah okay then :P I should learn to understand people's posts in 'straight-way' ^^ Glad I could help.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

A very cool thing with color material: Set your vertex colors to black or white (or other shades) and use them for specular color. This allows to change the light spots very nice (if you have enough polys :wink: )
Post Reply