Math for Game Developers - Procedural Generation (White and Blue Noise)

Описание к видео Math for Game Developers - Procedural Generation (White and Blue Noise)

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:    • Math for Game Developers - Explosions...  

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_0...

Find the source code here: https://github.com/BSVino/MathForGame...

New video every Thursday. Question? Leave a comment below, or ask me on Twitter:   / 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?

Комментарии

Информация по комментариям в разработке