Tag: procedural
-
Procedural Generation Using L-Systems
Cover photo credits: https://www.shadertoy.com/view/XtyGzh Lindenmayer system (L-system) is a representation of how plants and some other biological structures grow. If we look at its text form, it is simply a sequence of simple characters called the initial state of the system. We also have a axiom (a rule) that defines what a particular character in…
-
Poisson Disk Sampling
Cover image credits: https://github.com/udit/poisson-disc-sampling Poisson disk sampling is a technique for generating random points in the given space such that the points are distributed more evenly compared to purely random sampling, and it helps to avoid clustering or large gaps between points. In my old games, I used simple noise for procedural placement of trees…
-
Simulating Hydraulic Erosion of Terrain
Hydraulic erosion is a nature-based algorithm that simulates erosion caused by water on terrain. It is useful to make procedurally generated terrains look more realistic & interesting. Hydraulic Erosion Overview Water from mountains come down through slopes, forming creases along the way. This water is then accumulated as is travels, causing the formations of streams.…
-
Noise Functions
In a Nutshell Noise functions are used to add variation. It is useful for making procedural oceans, terrains, forests & vegetations and so on. 1. White noise 2. Value noise 3. Perlin noise 4. Voronoi (Worley) 5. Fractal Brownian Motion White Noise White noise is one of the simplest of the noises, made up of…
-
Marching Cubes Algorithm
Marching Cubes is a meshing algorithm, used to create mesh surface from a scalar field. The scalar field is just a scalar value associated with each point in a space. In simple words, visualize it as an algorithm to convert volume data into a mesh surface. This technique is often used in 3D procedural generation…
-
3D Procedural World Generation
I was making my bird game & the player should be able to fly tens of kilometers to any direction, above the rich forests & deserts. There should be different species of birds flying in beautiful patterns and should interact with the world in a good way. I knew that the answer is procedural generation,…