Jorge Rodriguez | Math for Game Developers - Procedural Generation (White and Blue Noise) @JorgeVinoRodriguez | Uploaded 9 years ago | Updated 3 hours ago
We can scatter objects around our levels by using white noise. A refinement of white noise is blue noise, which ensures that the objects are scattered uniformly.
The Remap function: youtube.com/watch?v=K3TLNQOxU0o
This blog post by Casey Muratori is a great complement to this video if you want to see more types of noise: http://mollyrocket.com/casey/stream_0014.html
Find the source code here: github.com/BSVino/MathForGameDevelopers/tree/probability-bluenoise
New video every Thursday. Question? Leave a comment below, or ask me on Twitter: twitter.com/VinoBS
EXERCISES:
1. We hard-coded five cells. How much you change the code so that you can have an arbitrary number of cells?
2. Suppose we want to scatter larger objects around our level. How might we adjust the cell sizes to ensure that the larger objects never touch?
3. Tricky: With the radius and room size parameters radius we used in the code, how many cells can we have before the algorithm begins to break down?
We can scatter objects around our levels by using white noise. A refinement of white noise is blue noise, which ensures that the objects are scattered uniformly.
The Remap function: youtube.com/watch?v=K3TLNQOxU0o
This blog post by Casey Muratori is a great complement to this video if you want to see more types of noise: http://mollyrocket.com/casey/stream_0014.html
Find the source code here: github.com/BSVino/MathForGameDevelopers/tree/probability-bluenoise
New video every Thursday. Question? Leave a comment below, or ask me on Twitter: twitter.com/VinoBS
EXERCISES:
1. We hard-coded five cells. How much you change the code so that you can have an arbitrary number of cells?
2. Suppose we want to scatter larger objects around our level. How might we adjust the cell sizes to ensure that the larger objects never touch?
3. Tricky: With the radius and room size parameters radius we used in the code, how many cells can we have before the algorithm begins to break down?