3 ms·
This is a very slippery slope towards making a full blown 3d three.js octree based n-body gravity simulation, at least for me :)
by hnuser123456 2y ago
This is a very slippery slope towards making a full blown 3d three.js octree based n-body gravity simulation, at least for me :)
- dylan604 2y agoit doesn't have to be 3d though. another idea would be to assign mass values to the particles and see if after an amount of time if everything settles down to some sort of orbital track around each other. but either idea moves it from being a relaxing visual into a bit of sciencey simulator that totally changes to the scope of the project
- chkas 2y agoIt shouldn't be that complicated. I tried it once with gravity and without limits on the edges. The cluster of stars moved around in 2d space and stars were repeatedly catapulted out, which then disappeared. Maybe you need a super gravity (black hole) in the center to keep it stable.
- hnuser123456 2y agoFrom my experiments, you need to flip the velocity if it goes out of bounds, and have a little bit of drag, multiply each vel by 0.9999 each frame. Otherwise, a few particles being ejected at very high speeds IS realistic... they carry away surplus kinetic energy, which allows the remaining cluster to contract. And once too much matter has lost too much kinetic energy, it does converge and become a black hole. The weird thing is that their radius scales proportional with their mass, not volume... so they grow in this weird way where adding a 3 solar mass black to a 3e6 solar mass SMBH causes the SMBH's volume to grow by several, several times the volume taken by the 3e0 BH. It's like black holes force themselves to grow in a straight line internally, but then the entire sphere encompassing that line becomes event horizon, which is probably why there only seems to end up being 1 SMBH per galaxy, they get so big so quickly at the 1e6+ range, that any other BHs drifting around the vicinity get absorbed by the growing EH, which causes the EH to grow more, causing it to absorb more BH... so there's this period where a bunch of relatively tiny, sparse black holes suddenly hit the critical density where the entire region they were all sharing suddenly pops into one huge event horizon that encompasses all the empty space they were sharing previously.
- chkas 2y agoDid some experimenting with gravity, not sure how far the physics is correct, but looks okay https://tiki.li/run/#cod=dVLbbuIwEH33Vxyp0gqKGhIktKVqeO1HIB5CYoqzxNY6IcV/vzO+QJbd5iGeOXM/M0/4sNWoBgdzaGU99OIJQqPEKmfpUNW/Pq256AZ5novanI3FZrNhW385WFhZSz1IKwAcyaYoVKMxX3owKBil77pTe7yU9Bb0Yp1H3EXcPeBjChg5IoHJe3QRzEQWmlDcQVUPDDaqH6iH/rcdMGuueAb9FmgcS27OLp80MbnkGY20InjWceYFul27n2NJYZzj2afyAaGfRQmfz4cvwUHi1hcb3YMxE0aj0qqrBsme9VlWnih1DFRs8ZqDSPPKO1HOiptaXLJEEqZ0Z1POCxDfOvGN0nOeaEbpqY5qZ0ZJLi6q1Iyff4uCV4z01cpSw8TS6wTz+/+/28/1ox/fSdDluZf/hIQV+dpLX3seXbL48mztbTa8cast3rdQ91xNmLXl+7lO4DCzh90dnh7KpFBa7zglLWGJOb62626PHyUfqrtJXZKIlTE6kOSSlDa0um0oOtlKN6Y70tEUgVD3DX7C3yBjseqJgBOdbgBT+VmerWnwGMMnvY6X+q05E0L8AQ== https://tiki.li/run/#cod=dVLbbuIwEH33Vxyp0gqKGhIktKVqeO1HIB5...
- chkas 2y agoThe physics in the simulation was faulty, that should be better now. Of course there are less collisions in 3D than in 2D. And this catapulting of stars is also an artifact in the discrete computer simulation https://tiki.li/run/#cod=fVPRbuMgEHznK0aqdGodxSW5S0+uSl/zEVFUEZtcSG3QYULN358A4ziten6w2Zlhd5nFd9ga7qT10IezqG1P7kAUGH7RsDrw+v2P0RfVgFJKat1qg6qqAtdfDgZSWWF4bQmAZgDDsDvvscSwk/uIeTD4hPmMyd6uwYK+CK9FUBVofCDlceRfQMsVnmGEvRiV94Gh/2ts0gSQg2GLAl2o8XjFXegAi1glwSjAI+Mz4+dMmQ7UGP7xdmh5/X7SrQj68dCUxkCauhWph/suJHrEiobnYaatKlISrcCV7LhNWVrBTVgctYEEwwpWI54LQKedQOoYGwqfVyMtj4i1XrGhNIPBkS/NAhBtL66S7xp+GCXl+A1tnae28BxqnvHyCnnNNR/2bGt22uWhA8geuzz0MhsslYwJtmBYi+UTiRn2YNiBImr9bdiNYfQ5Qe7TDvdpSza5FSomX9zaHW+q4arR3REFflMs8XOTSf8f8nTDPeXx7fb4wXBCgRMWWNPJmYg3w+RKiv0Ym3yd77/8C3k+bpKkW74KAzQTO1ZYxrtsUMBlJtca5kSYQhyAVuj0pRdvjf6IrkS0JIT8Aw== https://tiki.li/run/#cod=fVPRbuMgEHznK0aqdGodxSW5S0+uSl/zEVF...
- hnuser123456 2y agoHere is mine: https://cybersystems.dev/gtc/gtc.html https://cybersystems.dev/gtc/gtc.html Inspired by this article: https://johncarlosbaez.wordpress.com/2024/09/20/the-gravo-thermal-catastrophe/ https://johncarlosbaez.wordpress.com/2024/09/20/the-gravo-th...