New star generator for other galaxies... (work in progress)

Post requests, images, descriptions and reports about work in progress here.

Moderator: selden

New star generator for other galaxies... (work in progress)

Postby Cham » Thu Sep 08, 2011 6:13 pm

Easy !

What is this about ? :wink:

guess.jpg


Okay, this is work in progress...
Last edited by Cham on Fri Sep 09, 2011 3:26 pm, edited 1 time in total.
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: Guess what is coming !

Postby Hungry4info » Thu Sep 08, 2011 7:39 pm

M31's central binary black hole?
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics
User avatar
Hungry4info
 
Posts: 1148
Joined: Sun Sep 11, 2005 12:43 pm
Location: Indiana, United States

Re: Guess what is coming !

Postby Cham » Thu Sep 08, 2011 7:46 pm

Hungry4info wrote:M31's central binary black hole?


It was already done, long time ago.

Guess again ! :wink:

Well, here's a clue (easy !), since you're talking about this object...

pict1.jpg
pict2.jpg


This is just a prototype for now...

EDIT : I must admit that I'm pretty excited by this new toy ! Space feels soooo vast now, geez this is impressive !
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: Guess what is coming !

Postby Hungry4info » Thu Sep 08, 2011 8:48 pm

The M31 galactic core?
Yeah I know that's little different from the first guess. All I know is you're in M31, and in its inner parts, and there's a bunch of stars.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics
User avatar
Hungry4info
 
Posts: 1148
Joined: Sun Sep 11, 2005 12:43 pm
Location: Indiana, United States

Re: Guess what is coming !

Postby Cham » Thu Sep 08, 2011 8:51 pm

Hungry4info wrote:The M31 galactic core?
Yeah I know that's little different from the first guess. All I know is you're in M31, and in its inner parts, and there's a bunch of stars.


You're close !

EDIT : Some progress (hmmm, need more work on this, but it's going well...)
pict0.jpg


pict4.jpg
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: Guess what is coming !

Postby Hungry4info » Fri Sep 09, 2011 1:37 pm

You're populating the entire galaxy? How many stars? 8O
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics
User avatar
Hungry4info
 
Posts: 1148
Joined: Sun Sep 11, 2005 12:43 pm
Location: Indiana, United States

Re: Guess what is coming !

Postby Cham » Fri Sep 09, 2011 1:49 pm

Yes !

I'm building a full star generator. I intend to put around 50k stars in the Andromeda galaxy (and maybe some others too). I want the population to be reasonably realistic (the stars should give a proper HR diagram, in my HR LUA tool). For the moment, just main sequence stars.

On the pictures above, the magnitude is grossly exagerated, so I can see the whole distribution while tuning the parameters.

The disk distribution should also be properly oriented with the galaxy model in Celestia.
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: Guess what is coming !

Postby Hungry4info » Fri Sep 09, 2011 2:27 pm

Very nice, very nice. I've considered doing something like this before, and adding randomly generated planetary systems for them.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics
User avatar
Hungry4info
 
Posts: 1148
Joined: Sun Sep 11, 2005 12:43 pm
Location: Indiana, United States

Re: Guess what is coming !

Postby Cham » Fri Sep 09, 2011 3:10 pm

Hungry4info wrote:Very nice, very nice. I've considered doing something like this before, and adding randomly generated planetary systems for them.


Well, my star generator doesn't add planets. Just plenty of stars on the main sequence.

More later...

EDIT : Here's an HR diagram (from the LUA Tools) showing the distribution of a sample of 2000 stars from my new generator. Maybe the curve needs some adjustements.

Stars from other generators (the old generator from Rassilon, for example) doesn't give realistic distributions, on the HR plot.

HR.jpg
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: New star generator for other galaxies... (work in progre

Postby Cham » Fri Sep 09, 2011 4:06 pm

Now I have a question for everyone : how should I name all these fictious stars in the Andromeda galaxy (M31) ?

Currently, they are named as "And" followed by a random number.

I could add a set of names randomly selected (with numbers), as this :

"And 124569"
"M31-34672"
"Toto 35678"
...


Suggestions ?

Once done properly, the STC files (various numbers of stars) will be published...
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: New star generator for other galaxies... (work in progre

Postby Cham » Fri Sep 09, 2011 5:01 pm

I got the orientation right, by trial and error (I still need a systematic way to do this, to ease the creation process to other galaxies in our local group).

The stars luminosity is grossly exagerated on the pictures below, so we could see the whole distribution. Currently, there are 10 000 stars in there. I could very easily change this to 50 000 stars globally (I want more in the central core). 10k stars gives an STC file of about 1.4 MB.

I have to tweak a bit the HR curve for more "realism", to change a bit the statistical distribution on the galactic thickness (especially for the central core), and to choose better star names (what are your suggestions ?).

side.jpg
3dview.jpg


People would have fun to add all sorts of Science-Fiction addons in-there ! :wink:
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: New star generator for other galaxies... (work in progre

Postby Cham » Fri Sep 09, 2011 7:58 pm

I made some progress on the shape of the distribution. Again, the luminosity of stars shown below are greatly exagerated, so we can see the whole distribution. The AbsMag will be decreased to normal values when I'll be satisfied with the distribution) :

Front side (there are more stars on the bulge) :
M31a.jpg


Profile :
M31b.jpg


The distribution with the standard M31 galaxy :
M31c.jpg


There are 20 000 stars here. The distribution follow a classic main sequence curve on the HR diagram.

Before release, I need suggestions for the names. I don't think that it's a good idea to name all the stars "And ######" (where ###### is a random number).
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Re: New star generator for other galaxies... (work in progre

Postby selden » Fri Sep 09, 2011 9:50 pm

Personally I don't see any problem with using numbers as the suffix. I'd suggest using a prefix not related to the name of the constellation, though. That makes them too much like catalog designations for real stars.
Selden
User avatar
selden
 
Posts: 9902
Joined: Tue Sep 03, 2002 7:21 pm
Location: NY, USA

Re: New star generator for other galaxies... (work in progre

Postby t00fri » Sat Sep 10, 2011 2:42 am

Cham,

I think your algorithm of generating (galaxy) stars is basically not correct, apart from their HR color distribution. There are several better attempts already in the net. In the first place, one has to take the basic inhomogeneity in star density into account that corresponds to the galaxy arms. Here is a close-up of the central quadrant of your M31 galaxy image.

cham.jpg


Your star distribution is locally almost homogeneous, while the galaxy "arms" are still consisting of my nebula sprites blended in.

In contrast, here is e.g. an interesting site introducing a generator for (spiral) galaxies in terms of "stars only":

http://dmytry.com/galaxy/index.html
(Dmytry Lavrov's, a mathematically oriented software dev)

The galaxy generator may be downloaded freely. Unfortunately, it's not open source. A simple example thereof illustrates pretty clearly what I mean:

galgen.jpg


It's straightforward to derive a 2D probability distribution with an arm structure, such that the stars distributed according to it follows the right pattern. It can be easily coded with Von Neuman's well-known acceptance-rejection method that I have also heavily used in my galaxy (and globular) code for Celestia. A nice summary of that method is here, for example,

http://pdg.lbl.gov/2011/reviews/rpp2011 ... niques.pdf

Your star distribution might be useful, however, for modelling elliptical and irregular galaxies as well as nearby spheroidal dwarfs that all are lacking any arms. Also never forget to consider distributing your stars according to a Perlin noise function...

The best approach I can see is a blended one, depending on the actual screen resolution or -- equivalently-- the observer distance from the galaxy. As long as the observer is far away, a sprite-based rendering is fast and perfectly sufficient. Upon a closer approach, when the resolution improves a lot, a blended transition to individual stars should be done. A big advantage is that at close distance from the galaxy, one only needs to render a tiny portion thereof in terms of stars, since the rest is outside the field of view! With clever culling, this fact might make a real-time rendering possible...

Such a two-component rendering has to be set up in the core code, since it is clearly not feasible via add-ons (at least in Celestia).

Fridger
Image
User avatar
t00fri
 
Posts: 8782
Joined: Fri Mar 29, 2002 5:53 am
Location: Hamburg, Germany

Re: New star generator for other galaxies... (work in progre

Postby Cham » Sat Sep 10, 2011 4:51 am

Fridger,

yes I agree with you, and I was also thinking about the arms structures. I may do something about it next.

However, even with 50 000 stars, once distributed on the whole Andromeda galaxy (which is even larger than the Milky Way), the density is reaaaally low ! With proper AbsMagn, we don't see much the stars (except the highly luminous O stars) while moving through M31 ! It's even a bit deceptive, actually !

Don't forget that I extremely exagerated the luminosity of these stars to see the whole distribution in Celestia, just to orient the distribution correctly relative to Celestia's model. Their luminosity (AbsMagn) will be adjusted to normal values before releasing the STC files.

From 50 000 objects on a total of a billion of stars in reality, it's just a very low sampling (a proportion of about one star for one million) ! Any structure (with or without the arms) doesn't matter at all in this case.

But I do agree that making arms would be interesting. It's a lot of work to make them fit with the model in Celestia, though !

EDIT : There's an interesting unexpected effect, while moving through the distribution : we really feel the vastness of space in Celestia with these stars. Without them, I always add the impression that the Andromeda galaxy was just a small model in Celestia (even if it's to scale !). I never had the feel of a very large space. In other words, the stars give a sense of scale which was absent before. This fact alone makes the addon really worth it ! :)


About the names, what do you recommend, Fridger ? I'm thinking about a random selection of words, followed by a number. But which words ? Currently, it's "And ######". There's a constraint : the user should be able to select a star in M31 using the name in Celestia, while knowing by its name that it's a fictious one.
"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!"
User avatar
Cham
 
Posts: 4208
Joined: Wed Jan 14, 2004 9:01 am
Location: Montreal

Next

Return to Add-on development

Who is online

Users browsing this forum: No registered users and 2 guests