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
what is a DETAIL MAP ?
what is a DETAIL MAP ?
Last edited by agx on Tue Feb 22, 2011 6:44 am, edited 1 time in total.
Mate using it in C code is really stupid and tutorial show this.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.
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.
From API:
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.
So this is how it works. Detail map is usually (but not necessarily) just grey scale texture of some material, like grass or rock.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.
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 youarras 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.
Why in the tutorial its also stretched by 1x20 ?
________
Kissing Advice Dicussion