PHP Cluster Generator

Post requests, images, descriptions and reports about work in progress here.
Topic author
Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

PHP Cluster Generator

Post #1by Rassilon » 20.10.2008, 01:56

OK I decided to incoperate the new code for stc files to generate clusters of stars and have noticed a problem... Orientation... Can I use the same orientation code that I would use for galaxies on the baycenter? I will give it a shot and see and if not then I think its going to be manditory to allow orientation to be set for baycenters if theres a future in stars in other galaxies... They are oriented to the milky way currently as you can see in this picture I had to make the cluster a complete sphere and the main population of stars is plainly visible showing the offset the orientation is set too currently... I suppose I could use inclination and MeanAnomaly but then I would have tons of stars showing up in a line more than a sphere...

Image
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Topic author
Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Re: PHP Cluster Generator

Post #2by Rassilon » 20.10.2008, 02:01

Image

Nope Axis does not work... Any ideas anyone?
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Avatar
Spaceman M
Posts: 110
Joined: 11.02.2007
Age: 39
With us: 17 years 9 months
Location: Athens-Hellas (Greece)
Contact:

Re: PHP Cluster Generator

Post #3by Spaceman » 20.10.2008, 12:30

Wow! 8O How big is this cluster? It looks like with only one cluster, you can fill the Galaxy with stars! Congratulations Rassilon :D :D
"Any sufficiently advanced extraterrestrial intelligence is indistinguishable from God"
Michael Shermer

My addons: Nemesis, Ursa Minor Dwarf Galaxy Stars

Topic author
Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Re: PHP Cluster Generator

Post #4by Rassilon » 20.10.2008, 15:35

Not entirely... Now I am thinking I will have to create several barycenters with small clusters and plot them in a disc pattern to fill the galaxy based on its axis... I dont even know where to start with the calculations on this...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: PHP Cluster Generator

Post #5by selden » 20.10.2008, 16:42

Ras,

RA & Dec as used in STC files are Equatorial coordinates. Their orientation is not related to the orienation of any galaxy, including our own Milky Way. I think you need to create stars in Galactic coordinates (which are aligned with the Milky Way) and then do a conversion from Galactic coordinates into Equatorial coordinates when writing STC files.

Orbital parameters are different, however: they're in Ecliptic coordinates. Reference Frames, which allow you to specify which coordinate system to use, currently are available only when writing SSC files. They are not yet available for use in STC files :( So for orbits, you'll have to do a coordinate conversion from Galactic to Ecliptic.
Selden

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: PHP Cluster Generator

Post #6by t00fri » 20.10.2008, 17:46

Ras,
obviously you mixed up equatorial and galactic coordinates. You need a converter between the two. That's also what I did, when I composed my star cluster in the MilkyWay.
The respective formulae you find in many places.

Fridger
Image

Topic author
Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Re: PHP Cluster Generator

Post #7by Rassilon » 20.10.2008, 18:22

Well theres no way I know or orienting the barycenter so all those calculations would do me no good in that respect... I need to orient the orbital paths along the barycenter to equal the galactic coordinates as you mentioned but unfortunately I do not know the proper command to do so... Angle does not work neither does Orientation... And reading further in the forums I found no mention of such commands existing as of yet... So Im sort of stuck creating barycenters plotted within the galactic plane with a small amount of stars clustered within... Now I may be able to use those calculations for this... But it will take some time for me to tear it apart...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!


Return to “Add-on development”