flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > solar system simulator

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4334
Location: Now
edfed 12 Aug 2011, 13:54
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;name     type       size in meter  ,semi major axis  , unit ,main satellites
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;LY=Light year, AU = Astronomic Unit, KM = 1000 meters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Sun:      S          1391000000.00  ,26000            ,'LY'  ,Mercury,Venus,Earth,Mars,Cérès,Jupiter,Saturn,Uranus,Neptune,Pluton,Eris
Mercury:  P             4880000.00  ,0.4              ,'AU'  ,?
Venus:    P            12100000.00  ,0.723            ,'AU'  ,?
Earth:    P            12756000.00  ,1.0              ,'AU'  ,Moon
Moon:     Sat           3476000.00  ,384399           ,'KM'  ,?
Mars:     P             6792000.00  ,1.5              ,'AU'  ,Phobos,Deimos
Phobos:   Sat             26000.00  ,?                ,?     ,?
Deimos:   Sat             15000.00  ,?                ,?     ,?
Cérès:    P              950000,00  ,2.77             ,'AU'  ,?
Jupiter:  P           142984000.00  ,5.2              ,'AU'  ,Io,Europa,Ganymède,Callisto
Io:       Sat           3632000.00  ,?                ,?     ,?
Europa:   Sat           3126000.00  ,?                ,?     ,?
Ganymède: Sat           5276000.00  ,?                ,?     ,?
Callisto: Sat           4820000.00  ,?                ,?     ,?
Saturn:   P           120536000.00  ,9.5              ,'AU'  ,Encelade,Thétis,Dioné,Rhéa,Titan,Japet
Encelade: Sat            500000.00  ,?                ,?     ,?
Thétis:   Sat           1050000.00  ,?                ,?     ,?
Dioné:    Sat           1120000.00  ,?                ,?     ,?
Rhéa:     Sat           1530000.00  ,?                ,?     ,?
Titan:    Sat           5150000.00  ,?                ,?     ,?
Japet:    Sat           1460000.00  ,?                ,?     ,?
Uranus:   P            51118000.00  ,19.6             ,'AU'  ,Ariel,Umbriel,Titania,Obéron
Miranda:  Sat            480000.00  ,?                ,?     ,?
Ariel:    Sat           1180000.00  ,?                ,?     ,?
Umbriel:  Sat           1220000.00  ,?                ,?     ,?
Titania:  Sat           1620000.00  ,?                ,?     ,?
Obéron:   Sat           1570000.00  ,?                ,?     ,?
Neptune:  P            49532000.00  ,30               ,'AU'  ,Triton,Néréide,Protée
Triton:   Sat           2705000.00  ,?                ,?     ,?
Néréide:  Sat            340000.00  ,?                ,?     ,?
Protée:   Sat            400000.00  ,?                ,?     ,?
Pluton:   P             2306000.00  ,39               ,'AU'  ,Charon
Charon:   Sat           1200000.00  ,?                ,?     ,?
Eris:     P             2600000.00  ,68               ,'AU'  ,?
                                                                                             

the solar system is a cool data base.

i'd like a sky map, in asm of course, and compilable with fasm.
for mode 13h (it is enough), with a palette made for sky representation.

i'd like to be able with this to represent the earth, using a low res projection on a sphere, or a vectorial tracing, and for other planets, just generate texture with some various effects.

i'd like to have this simulator in less than 64k of a .com executable, without DOS function use (or the less possible).
i'd like it bootable on my netbook, with the usb pen. and then, take it with me, sit down uphill, start it, and look the constelations. try to find planets.

that's all for the moment, feel free to comment the idea, and don't hesitate to suggest datas to integrate in the data base.
Post 12 Aug 2011, 13:54
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 12 Aug 2011, 18:03
At least you are not mbr_tsr
Very Happy You respond to people Very Happy
Post 12 Aug 2011, 18:03
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 12 Aug 2011, 18:57
You may start looking at how they did it.
Post 12 Aug 2011, 18:57
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4334
Location: Now
edfed 13 Aug 2011, 10:28
cool, but like always, win softwares are in fact winxp+ softwares.
be carrefull everybody, soon, every softwares for windows will be for win7+.


i will simply install it on the netbookubuntu, and problem solved, but what a pity, give up every asm project just because it still exists....

[edit just for the question]
do you try to compare me with mbr_tsr?

Code:
mov eax,[msr_tsr]
cmp eax,[edfed]
mov [troll_is],edfed
jnt @f ;jump if not troller, msr_tsr troller than edfed
mov [troll_is],msr_tsr
@@:
    
Post 13 Aug 2011, 10:28
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 13 Aug 2011, 12:36
edfed wrote:

Code:
mov eax,[mbr_tsr]
cmp eax,[edfed]
mov [troll_is],edfed
jnt @f ;jump if not troller, mbr_tsr troller than edfed
mov [troll_is],mbr_tsr
jmp $ ;<------------------------------------------------------------ hang Very Happy
@@: 
    

Post 13 Aug 2011, 12:36
View user's profile Send private message Reply with quote
codelab



Joined: 03 Apr 2006
Posts: 16
Location: Denmark
codelab 01 Mar 2012, 19:22
Hi edfed

your post makes me want to get into that area again !

You can get some good xyz heliocentric coordinates at
http://ssd.jpl.nasa.gov/?horizons

u can specify:
mainbodies,planetery satellites or spacecrafts, astoroids
didnt find other star coords there.

wrote one numeric sim based on vectors with eg. 1 second resolution.

just see how sun rocks at that resolution VX,VZ,VY!
have more data and algos if u like.
Sincerely Codelab

with data like:

http://ssd.jpl.nasa.gov/?horizons

web interface
Current Settings :
Ephemeris Type [change] : VECTORS
Target Body [change] : Ganymede (JIII) [503]
Coordinate Origin [change] : Solar System Barycenter (SSB) [500@0]
Time Span [change] : Start=1999-01-01 00:00:00.0, Stop=1999-01-01 00:00:01.0, Intervals=1
Table Settings [change] : quantities code=2; correction=LT; labels=YES; CSV format=YES
Display/Output [change] : plain text


Body,mass,radius
"Sun", "1.9891e+30" , 696000000
"Mercury","3.302e+23" , 2439500
"Venus ", "4.8685e+24" , 6052000
"Earth", "5.9736e+24" , 6378000
"Moon ", "7.349e+22" , 1737500
"Mars", "6.4185e+23" , 3396000
"Jupiter", "1.8986e+27" , 71492000
"Saturn", "5.6846e+26" , 60268000
"Uranus", "8.6832e+25" , 25559000
"Neptune", "1.0243e+26" , 24764000
"Pluto", "1.25e+22" , 1195000


JDCT , ,( X, Y, Z, VX, VY, VZ in AU units):
sun
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -8.346491468970204E-03, 2.976064883829636E-04, 2.216434839681741E-04, 1.150045776460147E-06, -9.084614853379200E-06, 1.504986131599000E-08,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -8.346491455659489E-03, 2.976063832369573E-04, 2.216434841423623E-04, 1.150045926018756E-06, -9.084614842998210E-06, 1.504985711139036E-08,
$$EOE
mercury
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -3.674085812383441E-01, -2.474370618901021E-01, 1.294201253190105E-02, 1.020985699170406E-02, -2.191816578034498E-02, -2.726751500329170E-03,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -3.674084630711381E-01, -2.474373155671061E-01, 1.294198097294738E-02, 1.020987178646549E-02, -2.191815557277281E-02, -2.726752024456542E-03,
$$EOE
venus
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, 5.172834487777710E-01, -5.023223358094635E-01, -3.698537169239143E-02, 1.384837305314931E-02, 1.453403611255474E-02, -6.005777651416464E-04,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, 5.172836090599870E-01, -5.023221675912724E-01, -3.698537864352744E-02, 1.384836839155954E-02, 1.453404057027500E-02, -6.005774351595653E-04,
$$EOE
earth
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -1.811509785299785E-01, 9.682966108726430E-01, 2.268479489219262E-04, -1.720766319863291E-02, -3.098231038327296E-03, -3.344422296977337E-07,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -1.811511776926069E-01, 9.682965750134920E-01, 2.268479450510056E-04, -1.720766257410625E-02, -3.098234504306452E-03, -3.344438701149138E-07,
$$EOE
mars
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -1.596345734667523E+00, 4.975628791047803E-01, 4.967599940716858E-02, -3.655457358146921E-03, -1.217042360813821E-02, -1.648747630798283E-04,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -1.596345776976084E+00, 4.975627382432825E-01, 4.967599749889413E-02, -3.655456179265077E-03, -1.217042397726284E-02, -1.648747997928452E-04,
$$EOE
jupiter
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, 7.791415732962332E+00, 4.993446732104071E+00, -3.968037625192405E-01, -3.302198101950184E-03, 4.687710388102020E-03, 4.926613148710551E-05,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, 7.791415694742391E+00, 4.993446786360058E+00, -3.968037619490303E-01, -3.302198138912353E-03, 4.687710367859879E-03, 4.926613284683670E-05,
$$EOE
saturn
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, 1.340824999935523E+01, -1.467631716739237E+01, -2.282498413245866E-01, 2.874840159432910E-03, 2.470011543908541E-03, -2.819230764857186E-05,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, 1.340825003262882E+01, -1.467631713880429E+01, -2.282498416508877E-01, 2.874840153857956E-03, 2.470011550206937E-03, -2.819230786518572E-05,
$$EOE
uranus
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, 1.584782999317510E+01, -2.562335114305375E+01, 1.624402068339633E-01, 2.649606272713001E-03, 1.668911609390691E-03, -9.582938681514784E-05,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, 1.584783002384184E+01, -2.562335112373763E+01, 1.624402057248278E-01, 2.649606265673345E-03, 1.668911608464389E-03, -9.582938733800123E-05,
$$EOE
neptune
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -1.098461904569235E+01, -2.737656303638007E+01, 6.106855145360400E+00, 2.997737597111414E-03, -1.644245905420452E-03, -6.808578679761597E-04,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -1.098461901099637E+01, -2.737656305541066E+01, 6.106855137480111E+00, 2.997737698770645E-03, -1.644245862389818E-03, -6.808579805848946E-04,
$$EOE

moon
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -1.809341464981739E-01, 9.707190316574864E-01, 4.123317784827969E-05, -1.782693497543645E-02, -3.028689636000365E-03, 2.831503539721614E-05,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -1.809343528280928E-01, 9.707189966032367E-01, 4.123350556887335E-05, -1.782693451155238E-02, -3.028694824106852E-03, 2.831516761856760E-05,
$$EOE

Target body name: Voyager I Spacecraft (-31) {source: pfile_a54418u.nio}
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -1.991633243615313E+01, -5.648331569659012E+01, 4.094750191224077E+01, -1.246266041411244E-03, -8.048444985212930E-03, 5.814101253305990E-03,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -1.991633245057668E+01, -5.648331578973810E+01, 4.094750197952977E+01, -1.246266041230898E-03, -8.048444984705545E-03, 5.814101252939540E-03,
$$EOE

Target body name: Voyager II Spacecraft (-32) {source: pfile_m05208u.nio}
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, 1.485908161528638E+01, -4.980280727852664E+01, -2.272754933934381E+01, 2.534910926074830E-03, -5.691505309251729E-03, -6.725255198265134E-03,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, 1.485908164462421E+01, -4.980280734439737E+01, -2.272754941717866E+01, 2.534910925794456E-03, -5.691505308315688E-03, -6.725255197839849E-03,
$$EOE

Target body name: Hubble Space Telescope (-4Cool {source: Hubble Space Telescope}
$$SOE
2451179.500000000, A.D. 1999-Jan-01 00:00:00.0000, -1.811586549532069E-01, 9.683426692689164E-01, 2.276938290393399E-04, -2.125630872426031E-02, -3.797853408083324E-03, 1.467132014348178E-03,
2451179.500011574, A.D. 1999-Jan-01 00:00:01.0000, -1.811589009707855E-01, 9.683426252852929E-01, 2.277108093376325E-04, -2.125552983502925E-02, -3.802511078579467E-03, 1.467040906140769E-03,
$$EOE
Post 01 Mar 2012, 19:22
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.