GLBasic forum

Codesnippets => 3D-snippets => Topic started by: Hemlos on 2021-Apr-07

Title: Galactic Formation Simulator 2021
Post by: Hemlos on 2021-Apr-07
Galactic Formation Simulator 2021, inspired by Sir Isaac Newton.
Version 2.10418a (April 18,2021)

This is the entire library. Just compile and run, Enjoy!

If you have questions, ill answer them here.
I do not plan on doing many updates, yet, i will do one once in a while.
Feel free to use the SVS library and Galactic Formation Simulator application in any way you see fit.
- Neil



--------------------------------
Screenshots:

No star in this one, just matter in a circular field crashing and starting a planet / moon system.
https://siasky.net/fANKk3t6ag14HbuBE1ufPwILQnXfm3O_ZGPVa4T5KOubow (https://siasky.net/fANKk3t6ag14HbuBE1ufPwILQnXfm3O_ZGPVa4T5KOubow)

This shot shows gravitational fields from the largest objects, and has vector direction.
https://siasky.net/fAJpyrh8ulsa9nFUCguPWXLmu_KEx0LatZGwg0daIrD-PQ (https://siasky.net/fAJpyrh8ulsa9nFUCguPWXLmu_KEx0LatZGwg0daIrD-PQ)

This shot shows the gravity fields of the ring simulation:
https://siasky.net/_AxFaA4W0WQvHdwyh9yAQisewq_Lg-As9HTshDtieI1rjw (https://siasky.net/_AxFaA4W0WQvHdwyh9yAQisewq_Lg-As9HTshDtieI1rjw)
Note: the lines represent only nearby actors, all objects affect all other objects motion, especially the star.

The 2 arm simulation, with gravity fields:
https://siasky.net/fAMzZPelCERvZokYgSHjMxpv_DNUU6tvc3tH6r98ElUNEg (https://siasky.net/fAMzZPelCERvZokYgSHjMxpv_DNUU6tvc3tH6r98ElUNEg)

This is a saturn-like ring formation simulation, it ends with a handful of stable planets possibly with moons:
https://siasky.net/fAR3iWQLQILwPZJjVG7aCdpzlw1YPWSXLQtDO2qpmqVMmg (https://siasky.net/fAR3iWQLQILwPZJjVG7aCdpzlw1YPWSXLQtDO2qpmqVMmg)

--------------------------------
DOWNLOADS:

Download from Google Drive :
https://drive.google.com/file/d/1tTTwZmQuEcUuln2PLTPhuUmHH3xQtY4I/view?usp=sharing (https://drive.google.com/file/d/1tTTwZmQuEcUuln2PLTPhuUmHH3xQtY4I/view?usp=sharing)

Download from SIA Skynet :
https://siasky.net/AAB8DBMu1cNgXAii3u9GUOMOPyuGh8wkcp7YOHWkZv7T4g (https://siasky.net/AAB8DBMu1cNgXAii3u9GUOMOPyuGh8wkcp7YOHWkZv7T4g)

Title: Re: Galactic Formation Simulator 2021
Post by: Qedo on 2021-Apr-07
very very very interesting project, great work  :good:
tried with version 16 win10, compile fine but the fps are very slow than v15
I will study the code carefully
Thank you
ad maiora
Title: Re: Galactic Formation Simulator 2021
Post by: Qedo on 2021-Apr-07
I rectify, the speed in v16 seems to me equivalent to that of v15.
I found, that at least on my computer, when Whatapp desktop is running Glbasic programs slow down a lot.  :S
ad maiora
Title: Re: Galactic Formation Simulator 2021
Post by: Hemlos on 2021-Apr-08
Thanks Qedo!

As time progresses, planets merge, and less is rendered, thus increasing the fps.
Eventually it reaches 60 fps.
Title: Re: Galactic Formation Simulator 2021
Post by: SnooPI on 2021-Apr-18
I think a lot of people have no idea of the work you have done.

You have my respect Hemlos.
Title: Re: Galactic Formation Simulator 2021
Post by: Hemlos on 2021-Apr-19
Thanks Snoop, i appreciate that, i worked on this for a long time.
I updated it today, there was a few wonky things i needed to iron out.
Title: Re: Galactic Formation Simulator 2021
Post by: bigsofty on 2021-Apr-21
Well done Hemlos, very interesting work!  :good:
Title: Re: Galactic Formation Simulator 2021
Post by: hardyx on 2021-Jun-30
WOW, you simulator is amazing!! Your work is enormous and very useful to study the gravity in the Universe.
Thanks for the good work and long life to GLBasic.  :booze:
Title: Re: Galactic Formation Simulator 2021
Post by: Hemlos on 2021-Jul-01
WOW, you simulator is amazing!! Your work is enormous and very useful to study the gravity in the Universe.
Thanks for the good work and long life to GLBasic.  :booze:

Thank you, i'm glad you like it and find it useful.
Yes, it can be used to study motion of objects in space.
At its core, it is using this formula from Newton: F = GMm / R2