• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

How to enable grass fx on my track?

klado555

New Member
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!
 

Johnr777

Moderator

JrC

Active Member

Slippery_Silvia

New Member
What code are you using?
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?
 

JrC

Active Member
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:

Slippery_Silvia

New Member
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.
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.
 

JrC

Active Member
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.
cool!

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

Giikah

New Member
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?





What I want to see is something like this:


Thanks!
 
  • Like
Reactions: JrC
Top