Loading video...

Video Failed to Load

Go Home

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 views • 3 years ago •via X (Twitter)

10 Comments

Andrei Kashcha 🇺🇦's profile picture
Andrei Kashcha 🇺🇦3 years ago

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 🇺🇦's profile picture
Andrei Kashcha 🇺🇦3 years ago

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's profile picture
Prathyush3 years ago

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

George Morgan's profile picture
George Morgan3 years ago

Wow! 👏

Be_the_change's profile picture
Be_the_change3 years ago

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

题叶's profile picture
题叶3 years ago

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 🇺🇦's profile picture
Andrei Kashcha 🇺🇦3 years ago

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

(⁠*⁠˘⁠︶⁠˘⁠*⁠)⁠.⁠。`♡⭒✳🏴🔆🇵🇸🇨🇩🇸🇩🇭🇹's profile picture
(⁠*⁠˘⁠︶⁠˘⁠*⁠)⁠.⁠。`♡⭒✳🏴🔆🇵🇸🇨🇩🇸🇩🇭🇹3 years ago

🦋🧡

Pratyay Banerjee (নীল) 's profile picture
Pratyay Banerjee (নীল) 3 years ago

This is amazing!

Mqrius's profile picture
Mqrius3 years ago

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

Related Videos