Endless lava lamp on Babylon.js

In short, I decided to make an endless procedurally generated lava lamp on Babylon.js (You can navigate through it using the arrows on the keyboard) here’s what I got:

Endless Lava Lamp (version 0)

I also call it the bum version, because the animation of the balls moving is completely removed in it.

Endless Lava Lamp (version 1)

In the first version, I made balls, and screwed a random trajectory to them, but it turned out that these trajectories twitch.

Endless Lava Lamp (version 2)

In the second version, it turned out that the balls change in diameter when moving.

Endless Lava Lamp (version 3)

This is the third version of the lava lamp! It turned out to be a smooth movement of the balls I’m IN an ENDLESS LAVA LAMP UwU.

Endless Lava Lamp (version 4)

In the fourth version, I made a procedurally generated movement of the balls. Now the movement of the balls is unpredictable, and not how it was when a random trajectory of movement was generated for each ball.

Endless Lava Lamp (version 5)

Well, finally, in the fifth version, I made the balls collide with each other, and combine into one new ball. Run it at your own risk, because the page may not respond.

Endless Lava Lamp (version 6)

In the sixth version, I teleported the balls in quick time to a random location throughout the chunk.

mqdefault-6s.webp

5 Likes

v1-v4 the camera is not focused on the balls and they are moving crazy fast!
v5 - freezes

You have to multiply the velocity by scene.getAnimationRatio() to achieve the same speed on all computers.

I just randomly tried one link (v4 ) I dont get it, where is the lavalamp ? there were just a few spheres in a blank 3d space vibrating ?

You are inside the lamp :wink: :see_no_evil: