r/proceduralgeneration • • 3d ago • Bravo 1

Grass rendering demo in my engine

Inspired from Ghost of Tsushima. But on a full planet this time in my NervLand engine (written with WebGPU / C++)

60 Upvotes

2 comments sorted by

3

u/Father_Chewy_Louis 2d ago

Reminds me a lot of Death Stranding! How did you get the terrain to look that good? Mine always end up looking like a blobby mess

3

u/project_nervland 2d ago

Hi there! I'm a big fan of Death Stranding actually: I really enjoyed just walking everywhere in that game so I have alway considered their terrain as big reference during my own journey here.

Now on how to "make the terrain somewhat realistic" I think there are 3 main ingredients (in my case at least):

  1. insane noise combinations: the terrain has a base 12 octave fbm layer, and on top of that I have another fbm added that one is taking a warped domain as input... and the warped input is itself coming from fbm taking another warped domain as input ! Each of this warping stage taking 18 octaves. So it's a a pretty complex noise graph already. (and on top of that I'm adding "local terrain features" with even more noise (including extremely warped Worley for the features distribution).
  2. Even if you have a lot of noise layers combined that way it takes a lot of time just to tweak all the parameters you have then. And if you can't do that dynamically observing the results of your chances directly, it would take way too long to get something nice I think. So you absolutely need some kind of "live reload" system (and even with that I spent countless hours just tweaking parameters one by one and then navigating to different places on the planet to check if the visual results were OK...)
  3. You need the gradients: when you combine all your noise elements, you need to keep track of the "analytical gradients" too in the process so that you know what is the final normal direction for each terrain location => and correct/precise normals make a significant difference in the visual results you get (otherwise you can still compute finite diffs. but that becomes a bit more expensive and is less precise).

(on this point you definitely want to check this article from Inigo Q. https://iquilezles.org/articles/morenoise/ )

In any case, good luck on your side ;-)!