How to generate 20 million stars for a spiral galaxy?

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
Posts: 427
Joined: 10.08.2016
With us: 2 years 10 months

How to generate 20 million stars for a spiral galaxy?

Post #1by john71 » 12.11.2017, 20:25

This topic is about the MCL2STC cluster generator: link

How can I create using MCL2STC 20 million stars for a spiral galaxy?

I succeeded creating a cluster with 500 000 stars, but the cluster's shape should be obviously different (spiral-like)...

Cham M
Posts: 4324
Joined: 14.01.2004
Age: 54
With us: 15 years 5 months
Location: Montreal

Post #2by Cham » 13.11.2017, 00:51

Which spiral galaxy ? At what distance from the Sol ?

And a 20 M_stars STC database would be insane at loading time and memory usage. The Celestia search field would fall to a crawl, i.e. become totally unusable (waaaay too slow, unusable !). I know! I've done it before with a 2 Mstars file only. Launching Celestia will take half an hour, if not much more!

Check these topics :



The 1 million stars STC file for M31 is 145 MB on disk. So a 20 millions stars would be an insane 2900 MB = almost 3 GB text file !
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Posts: 10051
Joined: 04.09.2002
With us: 16 years 9 months
Location: NY, USA

Post #3by selden » 13.11.2017, 12:28

By modern standards, 3GB really isn't particularly large, but, even so, the final on-disk database wouldn't have to be that big.

Celestia doesn't have to use textual STC files. Multiple STC files can be translated into a single binary "stars.dat" which would have much better load-time performance. The 2M stars.dat available from the MotherLode is about 40MB, loads reasonably quickly (< 10 sec on my computer with an SSD system disk) and has good runtime performance. A little more patience would be needed for a 20M 400MB stars.dat to load, but I dunno what Celestia's resulting runtime performance would be. It'd depend on a lot of factors, but I suspect it'd still be acceptable.

I mention multiple STC files because it'd probably be easiest to use different algorithms to generate the different regions comprising a typical spiral galaxy, including the core, thin disk, thick disk and halo.

Posts: 1767
Joined: 18.12.2005
With us: 13 years 6 months

Post #4by Chuft-Captain » 13.11.2017, 16:41

I wonder if the tools here: could be used to convert Cham's Andromeda STC into a DAT file?
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)


Topic author
Posts: 427
Joined: 10.08.2016
With us: 2 years 10 months

Post #5by john71 » 13.11.2017, 21:05

I agree with selden. If stc->dat conversion is possible, then with 400MB data and running the 64 bit version of Celestia it should not be a problem.

By the way in a few years time the ESO-GAIA data (1 billion stars!) will be available, so it is time to start experimenting with huge data files.

Is there any way MCL2STC can be configured to create a generic spiral-like cluster?

Return to “Help Central”

Who is online

Users browsing this forum: 1 guest