SOLVED GRASS FX - ADD TO TEXTURE

Discussion in 'Tracks' started by Larsess, Sep 9, 2021.

  1. Larsess

    Larsess New Member

    Joined:
    Aug 20, 2021
    Messages:
    9
    Likes Received:
    1
    Hello, Is there anyway to add Grass in certain textures? Because most of the map is sand and I need to add grass in determinated parts of the map. I need just add it to the texture called "ground3". I'm using Race Track Builder [​IMG]
     
  2. Larsess

    Larsess New Member

    Joined:
    Aug 20, 2021
    Messages:
    9
    Likes Received:
    1
    As I'm using RTB, backround it's just 1 Material (1GRASS0) and I don't know if I can divide the mesh. [​IMG]
     
  3. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    615
    Code:
    [GRASS_FX]
    GRASS_MATERIALS = Background
    
    [GRASS_FX_CONFIGURATION_A]
    SHAPE_SIZE = 2   ; general size
    SHAPE_TIDY = 0.0   ; how tidy grass is (untidy grass in uneven, tilted more)
    SHAPE_CUT = 0.0    ; how cut grass is
    SHAPE_WIDTH = 0.5  ; grass width relative to its height
    
    MASK_MAIN_THRESHOLD=-1
    MASK_RED_THRESHOLD=0
    MASK_MIN_LUMINANCE=-1
    MASK_MAX_LUMINANCE=1
    
    [GRASS_FX_CONFIGURATION_B]
    SHAPE_SIZE = 0
    SHAPE_WIDTH = 0
    SHAPE_TIDY = 0
    
    [GRASS_FX_ADJUSTMENT_...]
    MATERIALS = Background
    USE_MULTILAYER_MASK = 1 ; use multilayer mask for adjustment
    MASK_R = B
    MASK_G = B
    MASK_B = B
    MASK_A = A
    1GRASS0 is the mesh, Background is the material, fyi..
     
    Larsess likes this.
  4. Larsess

    Larsess New Member

    Joined:
    Aug 20, 2021
    Messages:
    9
    Likes Received:
    1
    Thank you! It works
    [​IMG]
     
    Last edited: Sep 9, 2021
    Johnr777 likes this.
  5. Mitja Bonca

    Mitja Bonca Active Member

    Joined:
    Nov 18, 2014
    Messages:
    107
    Likes Received:
    35
    Location:
    Slovenia
    How to set the LOD OUT? I cannot seem to find and param for it.
     
  6. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    615
    There isnt one
     
  7. Mitja Bonca

    Mitja Bonca Active Member

    Joined:
    Nov 18, 2014
    Messages:
    107
    Likes Received:
    35
    Location:
    Slovenia
    So it all works "automatically", as scripted in SOL (GrassFX)? Ok, thx.
     
  8. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    615
    Correct, it renders up to a certain distance based on view.

    But it’s not SOL, that’s weather… you are thinking CSP
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice