Physical grass?

What are some ways of making physical grass without destroying the users fps?

1 Like

How much grass are we talking? Just a few small patches for a lobby or an entire terrain map?

Entire map. I’m thinking of a system where the grass appears in a radius around the player as he moves, but can’t think of an efficient way to implement that.

Swordburst 2 uses a particle system, which scatters grass decals around the player. I would recommend doing the same, as meshes would probably be a bit too intensive.

After trying meshes, the lag was insane for even some of my friend’s beasty computers. I’d recommend the particle system too.

I would do a mix of particles and mesh grass

Take a mesh, take a quality.

Low = 5
Medium = 15
High = 25

Name the bricks it spawns on, sort them into CollectiveService as “Ground” perhaps.

Look up “Object Pooling” such as how it’s used for AI and gun bullets, you want to use the object pooling method with a already created amount of grass, go ahead and create the maximum amount your game will allow, and start randomizing grass around the player based on their quality.

You may want to use some math for spreading out the grass though, specifically, you could update it in the direction the player is looking/moving, or even work on ways to make grass update only in your window view and move the grass that’s out of your view to where it can be seen.

This is just some things you can try to that will aren’t solid but could get the job done. I’m personally not a fan of particle based grass because particles often lag me.

1 Like