|
|
Re: Multi Texture Terrain - Help Needed!! :S
[Re: Norby]
#391129
01/08/12 19:58
01/08/12 19:58
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
everything you need is written in the mtlfx.c Here:
//action: fx_terraintex3
//title: 3-Textures Terrain
//
//skill2: ScaleSkin2 15
//help: Skin2 base texture scale, 1..50, default 15.
//skill3: ScaleSkin3 15
//help: Skin3 red texture scale, 1..50, default 15.
//skill4: ScaleSkin4 15
//help: Skin4 green texture scale, 1..50, default 15.
//desc:
/// Blends 3 textures together, according to
/// the red and green channel in the first skin.
/// The blue channel can be used for a shadow map.
/// Skin1 = Terrain RGB blend & shadow mask.
/// Skin2 = Base tiled terrain texture (grass).
/// Skin3 = Red channel masked tiled texture (sand).
/// Skin4 = Green channel masked tiled texture (rock).
/// Skin5 = Optional base texture for non-shader hardware.
/// Skin6 = Optional detail texture for non-shader hardware.
//
//Based on ideas by Thomas 'ventilator' Oppl
//and Eric 'Steempipe' Hendrickson-Lambert
//
|
|
|
Re: Multi Texture Terrain - Help Needed!! :S
[Re: Norby]
#391135
01/08/12 20:57
01/08/12 20:57
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
1.) I think creating a terrain is not that great problem.. (you said that you created one with 3dsmax) 2. - 4.) you just set the blendmap on your modelskin 1 (in MED) The blendmap is: Black = 2nd Modelskin Red color = 3rd modelskin Green Color = 4th modelskin Skin 5 and 6 of the model are for players with PCs of non-shader compatible hardware. All you need to do is draw a Black/Green/Red Picture and set this as Skin1 On Skin 2-4 you set different Textures.. f.e.: Skin2 = Grass Skin3 = Sand Skin4 = Rock 5.) just use
entityname.material = mtl_terraintex3;
the difference between mtl_terraintex3 and mtl_terraintex is: http://www.conitec.net/beta/amaterial2.htm#mtl_terraintex
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|