filmov
tv
Infinite Terrain Generation with Perlin Noise in Java + Processing
![preview_player](https://i.ytimg.com/vi/jv6YT9pPIHw/maxresdefault.jpg)
Показать описание
Procedural terrain generation can help any game more replayable. In this coding challenge I create a 2D terrain generator that uses Perlin Noise to determine the tile type at each location.
Perlin Noise is a type of noise that can take in numerous inputs to create an output, in this case we feed it the coordinates of each tile and it returns a value between 0 and 1. This value is then mapped to a tile type.
The really cool thing about Perlin Noise is that coordinates close to each other are given similar values which creates pretty organic looking terrain!
Hope you enjoy the episode! If you have any questions be sure to ask in the comments down below :)
0:00 - Intro
0:25 - Perlin noise
5:10 - Using noise for terrain
12:02 - Tile sprites
16:20 - Generation parameters
17:40 - Infinite terrain
20:01 - Fixing the camera
32:06 - Final product
Make sure to check out the links below, they've got everything you need to get started!
Download Processing so that you can get started right away:
Check out the rest of the Coding Challenges here:
Follow me:
#proceduralgeneration #processing #java
Perlin Noise is a type of noise that can take in numerous inputs to create an output, in this case we feed it the coordinates of each tile and it returns a value between 0 and 1. This value is then mapped to a tile type.
The really cool thing about Perlin Noise is that coordinates close to each other are given similar values which creates pretty organic looking terrain!
Hope you enjoy the episode! If you have any questions be sure to ask in the comments down below :)
0:00 - Intro
0:25 - Perlin noise
5:10 - Using noise for terrain
12:02 - Tile sprites
16:20 - Generation parameters
17:40 - Infinite terrain
20:01 - Fixing the camera
32:06 - Final product
Make sure to check out the links below, they've got everything you need to get started!
Download Processing so that you can get started right away:
Check out the rest of the Coding Challenges here:
Follow me:
#proceduralgeneration #processing #java
Комментарии