Bubble Universe - incredible 16 line demo - needs porting!
-
- Posts: 12
- Joined: Wed Sep 27, 2023 11:48 am
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
I thought I'd have a go at writing this in ARM code for RISC OS...
Video of it running here...
https://www.youtube.com/watch?v=VxGOBxy6oAY
It should run on any RISC OS machine, from an original Archimedes to a Risc PC. It even runs on a Raspberry Pi with RISC OS 5.28 installed!
If you want to try it out on your own machine, you can download it here...
https://movievertigo.github.io/download ... euniverse/
Source code to follow once I've done a few more tweaks and optimizations.
On a 200MHz StrongARM Risc PC, it manages to simulate 16384 particles at 93 frames per second in 480x352 256-colour mode.Video of it running here...
https://www.youtube.com/watch?v=VxGOBxy6oAY
It should run on any RISC OS machine, from an original Archimedes to a Risc PC. It even runs on a Raspberry Pi with RISC OS 5.28 installed!
If you want to try it out on your own machine, you can download it here...
https://movievertigo.github.io/download ... euniverse/
Source code to follow once I've done a few more tweaks and optimizations.
-
- Posts: 12
- Joined: Wed Sep 27, 2023 11:48 am
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
Source code now available...Movie Vertigo wrote: ↑Mon Oct 02, 2023 10:36 pm Source code to follow once I've done a few more tweaks and optimizations.
https://movievertigo.github.io/download ... ceCode,ffb
Re: Bubble Universe - incredible 16 line demo - needs porting!
That's great, thanks - and great porting job! (How did you tackle the trig functions of large numbers?)
-
- Posts: 12
- Joined: Wed Sep 27, 2023 11:48 am
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
The trigonometry is all done with a pre-calculated lookup table. I ensure that the table is a power of 2 entries long. That way I can ensure the look up is within the table by clearing the appropriate number of most significant bits.
-
- Posts: 12
- Joined: Wed Sep 27, 2023 11:48 am
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
I wrote a version in WebGL that you can run in your browser. Try it out at...
http://movievertigo.com/bubbleuniverse/
http://movievertigo.com/bubbleuniverse/
Re: Bubble Universe - incredible 16 line demo - needs porting!
Thanks for that - it's very big, and fast, and smooth, and makes it possible to watch the evolution and trajectory of some of the patterns. Not sure I understand things any better yet!
There's a discussion over on retrocomputing forum which includes some findings on the history of this algorithm - there's an interactive and adjustable version of the code on p5 linked in this post.
There's a discussion over on retrocomputing forum which includes some findings on the history of this algorithm - there's an interactive and adjustable version of the code on p5 linked in this post.
- IanJeffray
- Posts: 5963
- Joined: Sat Jun 06, 2020 3:50 pm
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
Nice. I like the chunkier pixels of the MODE 13 version though.Movie Vertigo wrote: ↑Sun Oct 15, 2023 11:27 pm I wrote a version in WebGL that you can run in your browser. Try it out at...
http://movievertigo.com/bubbleuniverse/
-
- Posts: 433
- Joined: Mon Mar 04, 2019 9:44 am
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
I spent some time watching this - mesmerising that such complexity comes from such simple code!Movie Vertigo wrote: ↑Sun Oct 15, 2023 11:27 pm I wrote a version in WebGL that you can run in your browser. Try it out at...
http://movievertigo.com/bubbleuniverse/
Shifters
-
- Posts: 12
- Joined: Wed Sep 27, 2023 11:48 am
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
Thanks for sharing that. I suspect yuruyurau might be the person who came up with it... ...but I've asked both yuruyurau and Cliff Pickover to confirm if either of them are the original creators. Will report back if I get a definitive answer.
Re: Bubble Universe - incredible 16 line demo - needs porting!
I see that the Apple II nerds have got onto writing a fast 6502 version, mentioned here: deater: "finally got bubble universe go…" - Mastodon
-
- Posts: 12
- Joined: Wed Sep 27, 2023 11:48 am
- Contact:
Re: Bubble Universe - incredible 16 line demo - needs porting!
I wrote an eZ80 version for the Agon Light which manages around 7 FPS rendering 16384 particles...
https://www.youtube.com/watch?v=c4m5R5tDXSE