正在加载视频...

视频加载失败

I am playing with WebGPU. Built myself a spaceship to fly through vector spaces. Here is Lorenz attractor: vec4f(10 * (y - x), x * (28 - z) - y, x * y - (8 / 3) * z, 0) What other spaces should I visit? Can do 4D too...

18,586 次观看 • 3 年前 •via X (Twitter)

10 条评论

Andrei Kashcha 🇺🇦 的头像
Andrei Kashcha 🇺🇦3 年前

Here is a space populated by Thomas attractor. Thank you for the coordinates, @ivanmoreno_xyz: vec4f( -b * x + sin(y), -b * y + sin(z), -b * z + sin(x), 0) (where b is 0.19)

Andrei Kashcha 🇺🇦 的头像
Andrei Kashcha 🇺🇦3 年前

This erupting volcano effect is thanks to seemingly a bug in OSX, which causes `fract()` return values out of [0..1] range. I love it

Prathyush 的头像
Prathyush3 年前

I am thinking this might be a nice title card animation for Dune 2 or 3! 😅

George Morgan 的头像
George Morgan3 年前

Wow! 👏

Be_the_change 的头像
Be_the_change3 年前

Hello @DavidNo74093661 Have you already saw this work of the wizard Andrei Kashcha?

题叶 的头像
题叶3 年前

I have a question, hot do you store those growling lines in compute shader? I learnt about the usages and the buffer size is defined before passing to shader.

Andrei Kashcha 🇺🇦 的头像
Andrei Kashcha 🇺🇦3 年前

Indeed! Buffer size is created with enough memory to store X segments for Y lines. Another buffer is used to store "length" of the rendered line and where its head is. Once cycle is over, head is written to tail, and with module operations I adjust what is rendered

(⁠*⁠˘⁠︶⁠˘⁠*⁠)⁠.⁠。`♡⭒✳🏴🔆🇵🇸🇨🇩🇸🇩🇭🇹 的头像
(⁠*⁠˘⁠︶⁠˘⁠*⁠)⁠.⁠。`♡⭒✳🏴🔆🇵🇸🇨🇩🇸🇩🇭🇹3 年前

🦋🧡

Pratyay Banerjee (নীল)  的头像
Pratyay Banerjee (নীল) 3 年前

This is amazing!

Mqrius 的头像
Mqrius3 年前

Make the vector space affect the spacecraft, like funky gravity! It's not a spacecraft if you can't orbit

相关视频