spooky halloween math! A short regex can detect prime numbers!
Interpreter Design Pattern for Babylon
Syntax example
- create box at 1,2,3 id 4711
- move box 4711 to 2,3,5
- delete box 4711
In the matrix of my mind
I find a world that’s undefined
Babylon.js and lines of code
Building dreams on the open road
create by suno
Prompt: Convert this chain animation to babylon.js
- claude.ai failed
- chatGPT failed
- credits goes to perplexity.ai
Another programming challenge
My simple approach would be to determine the distance from each pixel to each line and if the distance is less than a delta, draw a light line.
Draws the lines if they intersects with one of the given circles.
Code made with the help of AIs in WebGPU
main.zip (2.3 KB)
kick start from this thread
Another rainy boring sunday. Time for something new: We dive into the 4th dimension w.
This demo transforms a 3D cube into a future version of itself with randomly altered w positions.
Next coding challenge:
Links from the Video
4D Toys:
Game - Welcome to Steam…
Channel - / @mtbdesignworks
4D Miner:
Game - Welcome to Steam…
Channel - / @mashpoe
Patreon - / mashpoe
ALIEN:
Simulation - https://alien-project.org/
Channel - / @alien-project
5D Chess
Game - Welcome to Steam…
Miegakure:
Website - https://miegakure.com/
4D Particle Life:
Game - https://tucan444.itch.io/particle-lif…
Creator - https://tucan444.itch.io/
Petri:
Game - PETRI by Sintel
Creator - / sin_tel
1D Game:
Game - https://mashpoe.github.io/1D-Game/
Channel - / @mashpoe
Tetraspace:
Game - Brane by rantonels
Perspective:
Game - Welcome to Steam…
Other Featured Media:
Everything, Everywhere, All at Once
Arrival
Interstellar, 2001: A Space Odyssey
Antichamber
Fragments of Euclid
Viewfinder
Fez
I think I have found a very simple way to utilise the power of the GPU with gpu.js. The language I use is still Javascript!
I have a Boid animation here. The calculations of the three basic rules are only implemented for one point. So I only have one loop and it’s so fast that I don’t need any optimisation work for 10000 points.
Now I just need to figure out how to get the WebGL context from Babylon.js and how to project the canvas onto a material to embed the result into the scene.
boid.zip (2.6 KB)
I’ve gotten a taste of blood!
If the distance between the points is within a certain range, a line is drawn.
boidsLined.zip (3.0 KB)
Theme tune for this: https://www.youtube.com/watch?v=U5t2kDqvoYY
I’m imagining that box being replaced for this:
Then it gets all Guitar Hero!