what is a DETAIL MAP ?

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
agx
Posts: 15
Joined: Thu Jan 31, 2008 7:29 pm

what is a DETAIL MAP ?

Post by agx »

Looking at the terrain node tutorial i didn't understood what is a detail map (EMT_DETAIL_MAP). I've a simple grass texture but when applied to a terrain node it looks ugly, how do i get a "detail map" to be used to have a better looking grass?

Not only grass but also to sand, rock, etc.
________
COCAINE REHAB DICUSSION
Last edited by agx on Tue Feb 22, 2011 6:44 am, edited 1 time in total.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

Run the tutorial about this , which comes with Irrlicht SDK.

The tutorial shows "what is detail map" -- you can turn on/off detail mapping while runtime for comparison. The source of the tutorial shows how to use it. It is pretty simple indeed.
agx
Posts: 15
Joined: Thu Jan 31, 2008 7:29 pm

Post by agx »

greenya wrote:Run the tutorial about this , which comes with Irrlicht SDK.

The tutorial shows "what is detail map" -- you can turn on/off detail mapping while runtime for comparison. The source of the tutorial shows how to use it. It is pretty simple indeed.
Mate using it in C code is really stupid and tutorial show this.

What the tutorial didn't show, and that's why i posted in this section of the forum, is how to create a detail map.

I've this texture that doesn't look good when rendered without a detail map and i don't know how to use GIMP to create a detail map for it

:)
________
Free Xxx
Last edited by agx on Tue Feb 22, 2011 6:44 am, edited 1 time in total.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

you can use any texture for detail map.
there is no special technology for creating detail maps.
the engine will blend it automatically.

you can check this, simply by replacing /media/detailmap3.jpg in Irrlicht SDK and then run the tutorial again.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

From API:
EMT_DETAIL_MAP
Detail mapped material. The first texture is diffuse color map, the second is added to this and usually displayed with a bigger scale value so that it adds more detail. The detail map is added to the diffuse map using ADD_SIGNED, so that it is possible to add and substract color from the diffuse map. For example a value of (127,127,127) will not change the appearance of the diffuse map at all. Often used for terrain rendering.
So this is how it works. Detail map is usually (but not necessarily) just grey scale texture of some material, like grass or rock.

Just grab some texture on net, turn it in to grey scale in GIMP and then add or subtract contrast/light so its average color value lies somewhere around r:127, g:127, b:127.
agx
Posts: 15
Joined: Thu Jan 31, 2008 7:29 pm

Post by agx »

arras wrote:Just grab some texture on net, turn it in to grey scale in GIMP and then add or subtract contrast/light so its average color value lies somewhere around r:127, g:127, b:127.
Clean now! Thank you ;-)

Why in the tutorial its also stretched by 1x20 ?
________
Kissing Advice Dicussion
Post Reply