Current project: PHP/MySQL star generator

Post requests, images, descriptions and reports about work in progress here.
Avatar
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: PHP/MySQL star generator

Post #21by omega13a » 29.09.2012, 01:13

I noticed in the output of http://www.tarazedi.com/files/backup%20 ... Sept10.php, some of the brown dwarfs are too massive to be brown dwarfs. The largest a brown dwarf can be is slightly smaller than Wolf 359 (about 0.08 solar masses). Also it don't seem to generate any class T brown dwarfs. Only class Ls.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #22by Mneme » 29.09.2012, 01:15

Current progress: Systems, planets, and output screens.

http://w.tarazedi.com/image1097

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 3 months
Location: Italy

Re: Current project: PHP/MySQL star generator

Post #23by Goofy » 29.09.2012, 10:58

Mneme wrote:... If anyone can show me some good numbers on spectral class and luminosity class distributions in clusters of age X, I would love to implement that
Perhaps this may help you:
http://www.google.it/search?q=GLOBULAR+CLUSTERS+H-R+DIAGRAMS&hl=it&prmd=imvns&tbm=isch&tbo=u&source=univ&sa=X&ei=m9BmUPTmIube4QS3pYGYCw&sqi=2&ved=0CCAQsAQ&biw=980&bih=516
Bye

Goofy :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 3 months
Location: Italy

Re: Current project: PHP/MySQL star generator

Post #24by Goofy » 29.09.2012, 16:13

Juast an example, with and without all those blu external supergiants (that appear even if Cluster Blue Loops are set to "0"), and eliminating the cube corners to give a more "spheric" shape to the cluster.
I made a lot of photoshopping to show it (a long and annoying job...). :wink:
And, Mneme, a pray: can you find another system for naming the obtained stars?
Names like this should be forbidden by law: :lol:
TesotchazhtsomV 430

Bye

Goofy :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #25by Mneme » 30.09.2012, 14:39

For Quatran that's not a hard name at all but I should drop a syllable from the possible range I guess. LOL Levetzi is easier.

The age loops skew toward giants; if you don't set that you should see few to no supergiants.

I know the very basics of cluster evolution, that a young cluster has more Bs and older clusters more red giants etc. but I don't know how to translate that into percentages. The age skew just increases the number of giants. I haven't seen any sources for the number of Bs, As, etc. for giants as I found for main sequence stars, so the distribution is just logarithmic.

Do L- and T-class stars come in giant? If not, I should probably edit those because the larger L-class stars I generate seem to be insane huge, like 100AU+. And what's the mass range for Ls? What I was reading suggested to me that L dwarfs basically range in size from brown dwarfs (13 J) to the lower end of MVs. Is that at all correct? And I also understood (probably incorrectly?) that a T-class is just a cooler version of an L-class and fall in the same mass range?

Avatar
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: PHP/MySQL star generator

Post #26by omega13a » 30.09.2012, 18:05

Mneme wrote:Do L- and T-class stars come in giant?

I do not know of any L and T class giants.

Mneme wrote:And what's the mass range for Ls? What I was reading suggested to me that L dwarfs basically range in size from brown dwarfs (13 J) to the lower end of MVs. Is that at all correct? And I also understood (probably incorrectly?) that a T-class is just a cooler version of an L-class and fall in the same mass range?

That's correct from what I understand. L, T, and Y classes are all for 'failed' stars aka brown dwarfs. According to wikipedia, they have a mass between 13 and 80 Jupiters. Also, I would like to point out that Celestia doesn't support Y class brown dwarfs because they are a very recent discovery and there isn't a well defined spectral sequence for them yet.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #27by Mneme » 02.10.2012, 02:53

Okay, things seem to be working alright.

http://www.tarazedi.com/files/stargenerator.php is the star generator current version. It produces stars and planets, though not yet moons. Be aware that multiple users hitting it at the same time may cause undesired results. Also, be aware that I will continue working on it and downtime should not be surprising.

http://f.tarazedi.com/viewtopic.php?f=7&t=28 has the textures pack and version 0.9 of the program.

Enjoy.

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #28by Mneme » 07.10.2012, 00:47

I'm working on v3, transferring and converting the code to the new format. Systems and stars are done. The program runs much more smoothly and loads the currently-generating system in an iframe, refreshing with each system rather than running a multitude of separate loops as the previous version did. The sidebar refreshes every ten seconds, showing current progress, tallies, and records (e.g. most massive system). Once I have the code converted I'm going to throw some images up so you can actually see a graphic representation of the system being worked on as it is generated rather than just data tables.

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #29by Mneme » 10.10.2012, 21:25

http://w.tarazedi.com/image1100

Progress: graphics for star and planet types, scaled to radius (or square roots thereof for stars). Moons are next, then the various types of output page (Celestia, tables, and web formats e.g. HTML, BBCode, and Tikiwiki). After that I will improve the cosmetics, including changing the planet images to match subtypes rather than just the overall type (e.g. Ice Cratered, Ice Resurfaced rather than just Ice).

Still undecided on asteroids though. :)

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #30by Mneme » 23.10.2012, 03:10

Alright, all I should have left is the alternate outputs (tables, HTML, BBCode, H-R diagrams, etc.); the Celestia output works fine. The appropriate clouds paste right over top of the planets and the graphics are a lot more varied. Also, I should probably add a "suppress planets" option eh...

Image

Feel free to play with it. I'll be providing the source and web crap for this soon. :)

www dot tarazedi dot com slash starmaker
Last edited by Mneme on 01.11.2012, 19:46, edited 1 time in total.

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #31by Mneme » 24.10.2012, 00:11

http://www.tarazedi.com/starmaker/tableoutput.php generates an H-R diagram and a planet density/class/temperature chart as well as listing data for each system and planet. There will be additional tables at the bottom for moons and rogue planets when I get that far. The HTML output page will create the necessary HTML to generate a page like this for use on websites, etc.

Avatar
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: PHP/MySQL star generator

Post #32by omega13a » 24.10.2012, 02:05

A good little improvement would be to not use abrivations for the types of planets. For example what does MSI mean?
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #33by Mneme » 24.10.2012, 02:14

Non-gas-giants: Ice, Ice-Carbon, Ice-Silicon, Carbon, Silicon, Metal-Carbon, Metal-Silicon, Metal, Remnant, Rogue.
Gas giants: Methane-Cloud, Ammonia-Cloud, Water-Cloud, Clarified, Alkali-Metal-Cloud, Silicate-Cloud, Vaporized.

:)

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #34by Mneme » 24.10.2012, 02:41

Standards:

ImageImageImageImageImageImageImageImageImageImage
ImageImageImageImageImageImageImage

Resurfaced/Volcanics:
ImageImageImageImageImageImage

Water/Oil:
ImageImageImageImageImageImageImageImageImageImageImageImage

Stormy/Condensates:
ImageImageImageImageImageImage

Weird
ImageImageImage

Clouds:
ImageImageImageImageImageImageImageImageImageImageImageImageImage

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #35by Mneme » 01.11.2012, 19:45

Last edited by Mneme on 01.11.2012, 21:02, edited 1 time in total.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Re: Current project: PHP/MySQL star generator

Post #36by John Van Vliet » 01.11.2012, 20:49

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 04:09, edited 1 time in total.

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #37by Mneme » 01.11.2012, 21:09

Done.

Screenshot of the Table Output page. The HTML Output page provides the user the HTML needed for the data table. http://w.tarazedi.com/image1107

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Re: Current project: PHP/MySQL star generator

Post #38by John Van Vliet » 01.11.2012, 21:46

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 04:10, edited 1 time in total.

Topic author
Mneme
Posts: 78
Joined: 01.06.2010
With us: 14 years 6 months

Re: Current project: PHP/MySQL star generator

Post #39by Mneme » 01.11.2012, 23:12

Noted.

Although it looks a bit better on a black bg, here's what the BBCode output comes up with:

300400 Stel Prasa System
ImageStel Prasa A: class: M9V, absolute magnitude: 13.23, mass: 0.155 xSol.

300401 Tataratz System
ImageTataratz A: class: DA1, absolute magnitude: 13.32, mass: 0.559 xSol.
ImageRogue 300401: class: Ice.Rogue planet. temp: 131 K, density: 2.86 xH20, radius: 14177 km, rot: 56d 10h 51m, albedo: 0.53 rings: 28297 km-69255 km.

300402 Tragqraf System
ImageTragqraf A: class: M3III, absolute magnitude: -0.65, mass: 1.418 xSol.

300403 Pataratz System
ImagePataratz A: class: M7V, absolute magnitude: 12.43, mass: 0.2 xSol.
ImageRogue 300403: class: Ice.Rogue planet. temp: 143 K, density: 3.11 xH20, radius: 12350 km, rot: 155d 23h 57m, albedo: 0.55.
ImagePataratz I: class: AmC. Orbits A (0.129 AU, 37.84 d, 0.026 ecc.). temp: 135 K, density: 3.7 xH20, radius: 43756 km, rot: 1757d 18h, albedo: 0.285 rings: 70069 km-178862 km.
ImagePataratz II: class: AmC. Orbits A (0.261 AU, 108.962 d, 0.144 ecc.). temp: 95 K, density: 3.71 xH20, radius: 43567 km, rot: 2615d 1h 55m, albedo: 0.496 rings: 76719 km-110592 km.
ImagePataratz III: class: Ice. Orbits A (0.62 AU, 1.092 yr, 0.077 ecc.). temp: 62 K, density: 3.48 xH20, radius: 13403 km, rot: 27d 16h 45m, albedo: 0.6 rings: 25871 km-61868 km.
ImagePataratz IV: class: Ice. Orbits A (1.883 AU, 5.779 yr, 0.048 ecc.). temp: 35 K, density: 1.44 xH20, radius: 5738 km, rot: 29d 2h 57m, albedo: 1 rings: 9476 km-25024 km.
ImageImagePataratz IV-b: class: Ice. (orbit: 43970.8 AU, 2.402 d, 0.013 ecc.) 2.56 xH20, radius: 1262 km, albedo: 0.5.
ImageImagePataratz IV-c: class: Ice. (orbit: 97938.3 AU, 7.982 d, 0.061 ecc.) 2.43 xH20, radius: 1307 km, albedo: 0.51.
ImageImagePataratz IV-d: class: Ice. (orbit: 149749 AU, 15.06 d, 0.042 ecc.) 1.07 xH20, radius: 1829 km, albedo: 0.57.
ImagePataratz V: class: Ice. Orbits A (2.877 AU, 10.911 yr, 0.044 ecc.). temp: 29 K, density: 3.93 xH20, radius: 3795 km, rot: 60d 22h 16m, albedo: 0.53.
ImagePataratz VI: class: MeC. Orbits A (4.364 AU, 20.382 yr, 0.004 ecc.). temp: 23 K, density: 0.63 xH20, radius: 77907 km, rot: 10d 3h 34m, albedo: 0.225 rings: 124346 km-300689 km.
ImagePataratz VII: class: Ice. Orbits A (6.826 AU, 39.88 yr, 0.017 ecc.). temp: 19 K, density: 1.24 xH20, radius: 18709 km, rot: 27d 20h 17m, albedo: 0.51 rings: 35889 km-78775 km.
ImagePataratz VIII: class: MeC. Orbits A (10.24 AU, 73.266 yr, 0.076 ecc.). temp: 15 K, density: 2 xH20, radius: 104907 km, rot: 100d, albedo: 0.52 rings: 168840 km-433324 km.
ImageImagePataratz VIII-b: class: Ice. (orbit: 686936 AU, 1.622 d, 0.001 ecc.) 1.52 xH20, radius: 18614 km, albedo: 0.57.

Avatar
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: PHP/MySQL star generator

Post #40by omega13a » 02.11.2012, 01:07

Mneme wrote:Noted.

Although it looks a bit better on a black bg, here's what the BBCode output comes up with:

300400 Stel Prasa System
ImageStel Prasa A: class: M9V, absolute magnitude: 13.23, mass: 0.155 xSol.

300401 Tataratz System
ImageTataratz A: class: DA1, absolute magnitude: 13.32, mass: 0.559 xSol.
ImageRogue 300401: class: Ice.Rogue planet. temp: 131 K, density: 2.86 xH20, radius: 14177 km, rot: 56d 10h 51m, albedo: 0.53 rings: 28297 km-69255 km.

300402 Tragqraf System
ImageTragqraf A: class: M3III, absolute magnitude: -0.65, mass: 1.418 xSol.

300403 Pataratz System
ImagePataratz A: class: M7V, absolute magnitude: 12.43, mass: 0.2 xSol.
ImageRogue 300403: class: Ice.Rogue planet. temp: 143 K, density: 3.11 xH20, radius: 12350 km, rot: 155d 23h 57m, albedo: 0.55.
ImagePataratz I: class: AmC. Orbits A (0.129 AU, 37.84 d, 0.026 ecc.). temp: 135 K, density: 3.7 xH20, radius: 43756 km, rot: 1757d 18h, albedo: 0.285 rings: 70069 km-178862 km.
ImagePataratz II: class: AmC. Orbits A (0.261 AU, 108.962 d, 0.144 ecc.). temp: 95 K, density: 3.71 xH20, radius: 43567 km, rot: 2615d 1h 55m, albedo: 0.496 rings: 76719 km-110592 km.
ImagePataratz III: class: Ice. Orbits A (0.62 AU, 1.092 yr, 0.077 ecc.). temp: 62 K, density: 3.48 xH20, radius: 13403 km, rot: 27d 16h 45m, albedo: 0.6 rings: 25871 km-61868 km.
ImagePataratz IV: class: Ice. Orbits A (1.883 AU, 5.779 yr, 0.048 ecc.). temp: 35 K, density: 1.44 xH20, radius: 5738 km, rot: 29d 2h 57m, albedo: 1 rings: 9476 km-25024 km.
ImageImagePataratz IV-b: class: Ice. (orbit: 43970.8 AU, 2.402 d, 0.013 ecc.) 2.56 xH20, radius: 1262 km, albedo: 0.5.
ImageImagePataratz IV-c: class: Ice. (orbit: 97938.3 AU, 7.982 d, 0.061 ecc.) 2.43 xH20, radius: 1307 km, albedo: 0.51.
ImageImagePataratz IV-d: class: Ice. (orbit: 149749 AU, 15.06 d, 0.042 ecc.) 1.07 xH20, radius: 1829 km, albedo: 0.57.
ImagePataratz V: class: Ice. Orbits A (2.877 AU, 10.911 yr, 0.044 ecc.). temp: 29 K, density: 3.93 xH20, radius: 3795 km, rot: 60d 22h 16m, albedo: 0.53.
ImagePataratz VI: class: MeC. Orbits A (4.364 AU, 20.382 yr, 0.004 ecc.). temp: 23 K, density: 0.63 xH20, radius: 77907 km, rot: 10d 3h 34m, albedo: 0.225 rings: 124346 km-300689 km.
ImagePataratz VII: class: Ice. Orbits A (6.826 AU, 39.88 yr, 0.017 ecc.). temp: 19 K, density: 1.24 xH20, radius: 18709 km, rot: 27d 20h 17m, albedo: 0.51 rings: 35889 km-78775 km.
ImagePataratz VIII: class: MeC. Orbits A (10.24 AU, 73.266 yr, 0.076 ecc.). temp: 15 K, density: 2 xH20, radius: 104907 km, rot: 100d, albedo: 0.52 rings: 168840 km-433324 km.
ImageImagePataratz VIII-b: class: Ice. (orbit: 686936 AU, 1.622 d, 0.001 ecc.) 1.52 xH20, radius: 18614 km, albedo: 0.57.

You should use abrivations for the planet and moon classes without some key to say what the abrivations mean. All the types of out put should have something like that.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy


Return to “Add-on development”