How can create a material with multitexture?

Discussion in 'Track Modding' started by Raúl Cor, Sep 24, 2014.

  1. Raúl Cor

    Raúl Cor Registered

    Joined:
    Oct 15, 2013
    Messages:
    126
    Likes Received:
    0
    I have created a terrain but when i go to assign material i dont know what material use


    i want a texture with 2 textures: terrain.dds and detail.dds

    i have changed the uv maps in the channel 1 and channel 2

    but when i go to rfactor the channel 1 is the same with than the channel 2.


    this is what i want:

    [​IMG]

    [​IMG]
     
    Last edited by a moderator: Sep 24, 2014
  2. Nuno Lourenço

    Nuno Lourenço Registered

    Joined:
    Oct 19, 2010
    Messages:
    593
    Likes Received:
    65
    That's only a scale problem with detail map or am I missing something?
     
  3. Raúl Cor

    Raúl Cor Registered

    Joined:
    Oct 15, 2013
    Messages:
    126
    Likes Received:
    0
    what type of shader need use to get this effect? i want share 2 textures a terrain map and a detail map but rfactor 2 have multiples shaders t1 + t2, t1+add t2 ... etc
     
  4. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Maybe is better post the textures.

    To get this effect, or closer, you can do in several ways.

    Blend textures with Vertex vertex Alpha
    If you have a dense mesh can use Vertex Alpha to blend between two textures (green and brown areas ) . The term is "lerp"
    (Linear interpolation). The most simple shader is (T1 lerp T2 vertex Alpha). If vertex alpha in mesh is 0 you see T1 if is 100% you see T2. The Grass infields works the same way but better. (Can use Multiply, Specular and bump also use mask).

    The other way and simple way is using a large image for detail (Mul). If you have a large image (like satellite) can blend all terrain. The basic shader is: (T1 mul T2) .
    T1 can be large texture and T2 the detail grass. But if want a variation in color the T2 must have little color or black and white to get color from T1. Can test in Photoshop using Blend mode (Multiply).


    I hope my GoogleEnglish helps :)
     
  5. Jka

    Jka Member Staff Member

    Joined:
    Jan 31, 2011
    Messages:
    954
    Likes Received:
    213
    Maybe new Terrain shader is answer to your needs. It's released with latest build 860.

    Documentation of this shader can be found in http://rfactor.net/web/rf2/devscorner/ (Terrain Shader pdf document).

    Cheers!
     
  6. Raúl Cor

    Raúl Cor Registered

    Joined:
    Oct 15, 2013
    Messages:
    126
    Likes Received:
    0
    thanks guys, the blend textures works perfectly: Blend textures with Vertex vertex Alpha
     

Share This Page