How to enable grass fx on my track?

Discussion in 'Tracks' started by klado555, Feb 2, 2020.

  1. klado555

    klado555 New Member

    Joined:
    Feb 2, 2020
    Messages:
    2
    Likes Received:
    1
    Hello!
    I just created my first track in RTB and I wonder how to enable grass fx in it. Grass FX is working for my on different track but what I need to do to get it working on mine. Thanks for help!
     
  2. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    615
    klado555 likes this.
  3. klado555

    klado555 New Member

    Joined:
    Feb 2, 2020
    Messages:
    2
    Likes Received:
    1
    I got it working! Thanks a lot!
     
    RyanK likes this.
  4. Slippery_Silvia

    Slippery_Silvia New Member

    Joined:
    May 13, 2021
    Messages:
    3
    Likes Received:
    0
    Hey mate, what did you do to get grass fx working?

    I am having trouble enabling it on my track.
     
  5. JrC

    JrC Active Member

    Joined:
    Feb 2, 2021
    Messages:
    216
    Likes Received:
    130
    Location:
    Canada
    What code are you using?
     
  6. Slippery_Silvia

    Slippery_Silvia New Member

    Joined:
    May 13, 2021
    Messages:
    3
    Likes Received:
    0
    Currently it is

    [INCLUDE]
    INCLUDE=common/conditions.ini, common/materials_track.ini

    [GRASS_FX]
    GRASS_MATERIALS =
    GRASS_MESHES = 2GRASS,4GRASS
    OCCLUDING_MESHES = 1ROAD
    OCCLUDING_MATERIALS_ALPHA =
    HEIGHT_MULT = 0.3
    COLOR_FACTOR = 1.06

    I have read through the github trying all sorts of combinations. I have placed a small square plane into my level "4GRASS" as a test mesh to try get it working on there to make sure it is no error with my other texture.

    Another Q: Is there a way to test without close/opening all the time to check if code is working?
     
  7. JrC

    JrC Active Member

    Joined:
    Feb 2, 2021
    Messages:
    216
    Likes Received:
    130
    Location:
    Canada
    Last Q first, Yes... just use AC in a windowed mode with alt tab and you can make changes to ext_config.ini and once you save it should update in the next frame.


    [GRASS_FX]
    ; Spawning areas
    ;GRASS_MATERIALS = ; list of materials to spawn grass on top of
    GRASS_MESHES = 2GRASS,4GRASS ; same for meshes
    OCCLUDING_MATERIALS = 1ROAD ; list of occluding materials: for example, road mesh covering grass mesh, adding road material here would stop grass from showing through the road
    OCCLUDING_MESHES = ; same for meshes
    OCCLUDING_MATERIALS_ALPHA = ; list of smoothly occluding materials: imagine a piece of grass and a piece of sand on top, smoothly blending out showing grass, add sand material here for transition to work nicely
    OCCLUDING_MESHES_ALPHA = ; same for meshes
    ORIGINAL_GRASS_MATERIALS = ; list original grass materials to hide them if Grass FX is active
    ; NOTE: if you want to keep original 3dgrass (using ksGrass shader), then use an
    ; EMPTY line above with NO NAME after the "=" !!!

    MASK_MAIN_THRESHOLD = -1
    MASK_RED_THRESHOLD = 0
    MASK_MIN_LUMINANCE = -1
    MASK_MAX_LUMINANCE = 1

    SHAPE_SIZE = 1.0 ; 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 = 1.0 ; grass width relative to its height

    been awhile since I did mine... try that and then let me know if it totally failed.
     
    Last edited: May 14, 2021
  8. Slippery_Silvia

    Slippery_Silvia New Member

    Joined:
    May 13, 2021
    Messages:
    3
    Likes Received:
    0
    Thank you, it is working now. I didnt make no changes although I did restart my computer and seems to be working fine since.

    Will use some of that code to update how it looks.

    Always the way as soon as you ask for help it magically starts to work.
     
  9. JrC

    JrC Active Member

    Joined:
    Feb 2, 2021
    Messages:
    216
    Likes Received:
    130
    Location:
    Canada
    cool!

    If you go to git hub page you can use that to get all the variations in there like the flowers too
     
  10. Giikah

    Giikah New Member

    Joined:
    Apr 27, 2021
    Messages:
    4
    Likes Received:
    3
    Hi there, I'm trying to use Grass FX but I trully don´t know how to make it work.

    I've made a plane with a grass Texture in Blender, but I see no difference. Any ideas?

    [​IMG]

    [​IMG]

    What I want to see is something like this:
    [​IMG]

    Thanks!
     
    JrC likes this.
  11. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
  12. Giikah

    Giikah New Member

    Joined:
    Apr 27, 2021
    Messages:
    4
    Likes Received:
    3
: grass fx
  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