Gloss and specular mapping using textures

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
netkoji
Posts: 10
Joined: Sun Feb 01, 2009 1:32 pm

Gloss and specular mapping using textures

Post by netkoji »

Greetings board!

I was wondering: is it possible to do gloss and specular mapping using a texture as a mask? I need this to render a photo-realistic model of a table with peels of paint over it (which would shine and have a different texture than the old and worn parts of the table). I know that irrEdit doesn't support it but maybe there's a different way to do it in Irrlicht itself?

Also, do you guys know of any alternatives to irrEdit that could fully (or mostly) support all of Irrlicht's features (such as the aforementioned mappings if they are possible to do)?

Thanks!
Hirte
Posts: 73
Joined: Sat Apr 01, 2006 1:32 pm

Post by Hirte »

Yes, it is possible. I think you can use 4 textures per object; you'd have to write your own shader/material though.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

If you don't want to use shaders you have to put the paint blobs into geometry. Either give those parts a different material, or use the vertex color for specular color (this material switch is available in SVN/trunk, aka Irrlicht 1.6). But since you mention photo realistic I guess you must use a shader.
netkoji
Posts: 10
Joined: Sun Feb 01, 2009 1:32 pm

Post by netkoji »

Is there any scene editor that could facilitate the process? IrrEdit doesn't help much here even though it supports loading up to 4 textures.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The fixed pipeline way would require a 3d modelling tool, the other one a shader editor. Both is not possible with irrEdit, but is also not the job of irrEdit.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

This shader can do specular mapping:

http://irrlicht.sourceforge.net/phpBB2/ ... malmapping
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Hirte
Posts: 73
Joined: Sat Apr 01, 2006 1:32 pm

Post by Hirte »

Are you sure? This shader contains only 2 textures, one diffuse and one bump...
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Ah it looks like he posted the specular mapped version in a later post: http://irrlicht.sourceforge.net/phpBB2/ ... 565#117565
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Hirte
Posts: 73
Joined: Sat Apr 01, 2006 1:32 pm

Post by Hirte »

Oh, sweet. Thank you;)
Post Reply