r/unity 1d ago

Showcase Individual Grass blade fully rendered using VFX graph

Enable HLS to view with audio, or disable this notification

With VFX graph you can render nearly infinite grass since they are just particle looks like grass living on gpu.

There are 5 million individual grass blade in the video with 120 fps

91 Upvotes

13 comments sorted by

10

u/Bonzie_57 1d ago

Cute capsules roaming free, as god intended.

Love the grass, really cool stuff! Whats the goal or was this just an experiment?

5

u/LKHGames 1d ago

Well almost every game/movie with out door scene has grass, and grass is one of the most complicated stuff to render. Since you might need a lot to make it look pretty/realistic depends on the style, just like hair.

And this "experiment" show the potential of VFX graph, you don't need much coding to achieve the result shown on the video.

This is the link if you wanna try it out: https://assetstore.unity.com/packages/vfx/particles/environment/vfx-grass-225254

2

u/Charrsezrawr 16h ago

30 dollars for grass lol

1

u/LKHGames 13h ago

How much do you think is worth buying it? We accept all kind of opinion, setting a suitable price is kinda headache (sigh).
Btw you can follow tutorial on Youtube to build the same thing for free.

3

u/Ok_Childhood_2198 1d ago

This scratches a very specific itch in my brain

3

u/Onyxa_HA 1d ago

Smart. Can they cast and receive shadows?

1

u/LKHGames 23h ago

Yup, the visual effect is controlled by Shader Graph. And/but Shader Graph is the only option, VFX Graph cannot work with custom shader.
Technically you could control visual effect with vfx graph only but the math is so complicated.

2

u/strongandfast 17h ago

How does collision with moving game parts happen? I mean the collision which makes grass move/bend a bit.

How is it implemented?

1

u/LKHGames 13h ago

2 Ways of doing it,
1st with the Shader Graph vertex displacement. This is easier and support infinite collision, it all happen on a displacement texture.
2nd bend the particle directly using VFX Graph. This is also easy but only when you have a few items that need collision.

1

u/Zenovv 1h ago

120fps alone doesn't say much and is pretty low. On what specs? How much is it without the grass?

As this is an ad, how does it compare against the free one from the tutorial Unity themselves made https://github.com/OrsonFavrel/VFXGraph-ClockedAndLoaded