GPU Terrain Test using Rust & WGPU
GPU rendered surface nets terrain. Each chunk is composed of 64x64x64 voxels, and the chunks are generated around the player in a volume of 19x19x(4 | 19) chunks. All chunks are drawn using indirect drawing where each IndexedIndirectDraw structure is filled/generated using the meshing compute shaders.
Fully GPU rendered, with little readback to the CPU (only needed for knowing chunk indices withing allocation to be able to free pooled up memory, however, this can be converted to a compute shader for no readback at all).
Each chunk takes approximately 1-2ms to generate it's voxel data, and around 100 micro seconds for everything else (meshing, memory allocation and copying around temp to perm memory). Talking about meshing, the currently algorithm I use is called the "Surface Nets" algorithm, which resembles Dual Contouring but differs from it by not using a QEF. Due to that, I could merge the vertices on the GPU since SN only generates one vertex per "cell", so by using that assumption, I could make use of atomic operations to share vertices between triangles.
As far as the engine goes, the whole graphics API of the engine has been rewritten using WGPU, and multiple internal crates (libraries) have been improved. I have also implemented multithreaded asset loading and multithreadable ECS queries, which allow me to run my frustum culling / matrix update operations in other threads simultaneously.
Shader toy erosion code: https://www.shadertoy.com/view/MtGcWh
Github Repository: https://github.com/jedjoud10/cflake-engine
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «GPU Terrain Test using Rust & WGPU», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.