filmov
tv
Procedural Terrain Generator in Unity

Показать описание
Hello,
Today I will be showcasing my voxel terrain generator that I have implemented for the Unity Engine.
The terrain generator uses an Octree to allow for very large maps. In the video, it uses a depth of 7 (which allows for a 1024m^3 map with a voxel size of 0.25m per voxel).
I use async texture readback and compute shaders for generating the voxel data on the GPU, and I use the Job system + Burst on the CPU for mesh generation and edits. Currently I do 1 async readback task per frame and I can handle up to 4 mesh jobs per frame (although the maximum is 8).
The meshing algorithm I use is naive surface nets (volume of 64x64x64) but with some optimizations that are based on marching cubes edge bitmasks (which reduced the average time for my surface nets job from 16ms down to 4ms). There are still many more optimizations that I could apply but for now this is satisfactory.
There are some issues with my current implementation at the moment:
Chunks popping in / popping out (could be fixed using dithering)
Edits not being saved (implemented in latest update)
Today I will be showcasing my voxel terrain generator that I have implemented for the Unity Engine.
The terrain generator uses an Octree to allow for very large maps. In the video, it uses a depth of 7 (which allows for a 1024m^3 map with a voxel size of 0.25m per voxel).
I use async texture readback and compute shaders for generating the voxel data on the GPU, and I use the Job system + Burst on the CPU for mesh generation and edits. Currently I do 1 async readback task per frame and I can handle up to 4 mesh jobs per frame (although the maximum is 8).
The meshing algorithm I use is naive surface nets (volume of 64x64x64) but with some optimizations that are based on marching cubes edge bitmasks (which reduced the average time for my surface nets job from 16ms down to 4ms). There are still many more optimizations that I could apply but for now this is satisfactory.
There are some issues with my current implementation at the moment:
Chunks popping in / popping out (could be fixed using dithering)
Edits not being saved (implemented in latest update)
How I Learned Procedural Generation
PROCEDURAL TERRAIN in Unity! - Mesh Generation
Procedural Terrain Generator! UNITY
How to create procedural terrain 🌎 #shorts
Unity3D Procedural Terrain Generation
Procedural Terrain Generation In Unity #1 || Color Based On Height, Mesh Generation
Game terrain generation is pretty simple, actually
Devlog 1 - Terrain Generation for open world RPG
GENERATING TERRAIN in Unity - Procedural Generation Tutorial
How To Build an Open World in 4 Clicks #gamedev #unity #unrealengine
Procedural Terrain Generator in Unity
Procedural Terrain Generation in Unity
Godot has IMPRESSIVE Procedural Terrain Generation support!
Coding Adventure: Hydraulic Erosion
Better Mountain Generators That Aren't Perlin Noise or Erosion
How to create a procedural terrain generator in Unity - Shaders, scripts and settings
Create Your Game World with Just 4 Clicks
I made a 'dog' with procedural generation #madewithunity #unity3d #gamedev #gaming #games
Unity Procedural Terrain Generator
Unity Devlog: Procedural Terrain Generator
World generator Godot #gamedev #godot #unity #lowpoly
How to use Glyst Procedural Terrain Generator
How does procedural generation work? | Bitwise
Procedural Terrain Generation in Unity [PROMO]
Комментарии