User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion
Register FAQ Members List Calendar Arcade Today's Posts

Reply
Thread Tools Display Modes
Unread 5 Dec 2003, 12:41   #1
MrLobster
Commander in Briefs!
 
MrLobster's Avatar
 
Join Date: Dec 2000
Location: UK
Posts: 783
MrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud of
Calc Planet Orbits

I want to be able to display the solar system, by displaying the planets rotating around the sun. But i have looked everywhere for some formulas for this, and to no success.

Anyone got anything i can use please??
__________________
<Kila> WHAT HAVE YOU DONE WITH MY PRECIOUS FORUMS
<Zeyi> 24h forum closure
<Zeyi> all posts recalled

"he's got a proven track record when it comes to showy art composition" - Tommy

<Sigi> Light: can I ask u how many open internet-windows u always have?
<MrLobster|PM> i have 2, the pa page, and the website for naked light pictures
<Ave> both has bad gfx
MrLobster is offline   Reply With Quote
Unread 5 Dec 2003, 13:35   #2
djbass
mmm.. pills
 
djbass's Avatar
 
Join Date: Apr 2000
Location: Australia
Posts: 2,152
djbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond reputedjbass has a reputation beyond repute
Re: Calc Planet Orbits

You'd probably need to use formulas for calculating parabolic curves or something, though don't ask me cause I failed maths.

=[DJ Bass]=
__________________
CSS : the result of letting artists design something only an engineer should touch.
djbass is offline   Reply With Quote
Unread 5 Dec 2003, 16:47   #3
Luckeh!!!!
-=Murderous Plush Toy=-
 
Join Date: Nov 2001
Posts: 971
Luckeh!!!! will become famous soon enoughLuckeh!!!! will become famous soon enough
Re: Calc Planet Orbits

its not a 3d based game is it? cos that would be a little bit harder
__________________
-Lucky #plush
__________________
Does anyone actually play this anymore?
Luckeh!!!! is offline   Reply With Quote
Unread 5 Dec 2003, 19:05   #4
queball
Ball
 
queball's Avatar
 
Join Date: Oct 2001
Posts: 4,410
queball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so little
Re: Calc Planet Orbits

An accurate model of the solar system is complicated. eg: http://scienceworld.wolfram.com/phys...dyProblem.html just describes an approximation to a simple system. You could look at using someone else's library, such as http://orsa.sourceforge.net/.
queball is offline   Reply With Quote
Unread 5 Dec 2003, 21:24   #5
Cyp
∞+♪²
 
Join Date: Nov 2000
Location: :uo!te]o¯|
Posts: 428
Cyp is an unknown quantity at this point
Re: Calc Planet Orbits

p_i/dt²=Σ_j≠i m_j (p_j - p_i) |p_j - p_i|³

Where p is the position of all particles in the system, and m is the mass. Probably should have some kind of units, as well.
__________________
Structural Integrity for Creator - since he'll probably make PA turn 3D.
Wikipedia forum
Note to self - Don't write Chinese letters with bold and italics...
<!--Last incarnation: Nov 2000-->
Cyp is offline   Reply With Quote
Unread 6 Dec 2003, 15:48   #6
MrLobster
Commander in Briefs!
 
MrLobster's Avatar
 
Join Date: Dec 2000
Location: UK
Posts: 783
MrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud of
Re: Calc Planet Orbits

Quote:
Originally Posted by Cyp
p_i/dt²=Σ_j≠i m_j (p_j - p_i) |p_j - p_i|³

Where p is the position of all particles in the system, and m is the mass. Probably should have some kind of units, as well.
Dont want to sound ungrateful but.. what the hell??? i am not looking for an accurate model, just a basic plot around a central point, maybe using angles or something.
__________________
<Kila> WHAT HAVE YOU DONE WITH MY PRECIOUS FORUMS
<Zeyi> 24h forum closure
<Zeyi> all posts recalled

"he's got a proven track record when it comes to showy art composition" - Tommy

<Sigi> Light: can I ask u how many open internet-windows u always have?
<MrLobster|PM> i have 2, the pa page, and the website for naked light pictures
<Ave> both has bad gfx
MrLobster is offline   Reply With Quote
Unread 6 Dec 2003, 19:12   #7
Radical Edward
Registered User
 
Join Date: Feb 2002
Location: South Pacific
Posts: 4,911
Radical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriendRadical Edward needs a job and a girlfriend
Re: Calc Planet Orbits

ooh simple? sinx + cosy = r
__________________
I think it's time we blow this scene, get everybody and the stuff together..........

ok 3..... 2..... 1.. let's jam
Radical Edward is offline   Reply With Quote
Unread 7 Dec 2003, 11:12   #8
Cyp
∞+♪²
 
Join Date: Nov 2000
Location: :uo!te]o¯|
Posts: 428
Cyp is an unknown quantity at this point
Re: Calc Planet Orbits

Quote:
Originally Posted by Radical Edward
ooh simple? sinx + cosy = r
Ummm, you mean {r sin t, r cos t}, don't you? Or, {r sin(ωt+φ), r cos(ωt+φ)}, if you want to control the speed and starting position. ω should be Gm/&radic;(r³), where G is some constant, and m is the mass of the orbited object.

That should be almost correct if there is only one planet, at least.

For more interesting star systems, the more accurate model would be better, though.
__________________
Structural Integrity for Creator - since he'll probably make PA turn 3D.
Wikipedia forum
Note to self - Don't write Chinese letters with bold and italics...
<!--Last incarnation: Nov 2000-->
Cyp is offline   Reply With Quote
Unread 8 Dec 2003, 17:33   #9
Flayer
Wankoverable
 
Flayer's Avatar
 
Join Date: Apr 2002
Location: wherever I am
Posts: 726
Flayer is a glorious beacon of lightFlayer is a glorious beacon of lightFlayer is a glorious beacon of lightFlayer is a glorious beacon of lightFlayer is a glorious beacon of lightFlayer is a glorious beacon of light
Re: Calc Planet Orbits

Kepler: planets describe ellipse routes around the sun with the sun in one of the burning points
but this is simpler:

v = vkw( (j * M) / r )
where
j = 6,67 * 10 ^ -11
v = velocity m/s
M = mass of the sun, planet, depends which system (you want the sun's mass)
r = distant to the center of the sun
it is independent of the mass of the planet

You can transform that to get all info you need
__________________
Don't worry, life is too long.
Flayer is offline   Reply With Quote
Unread 12 Dec 2003, 19:23   #10
Deathjam|wee
Weeeeee
 
Deathjam|wee's Avatar
 
Join Date: Oct 2003
Location: leeds
Posts: 586
Deathjam|wee has a spectacular aura aboutDeathjam|wee has a spectacular aura aboutDeathjam|wee has a spectacular aura about
Re: Calc Planet Orbits

this probaly has nothing to do with what ur on about about its ****ing cool
__________________
:gollum: :gollum: :gollum: :gollum:

One load of gollums is enough for anyone.Ta
DM.
Deathjam|wee is offline   Reply With Quote
Unread 12 Dec 2003, 19:23   #11
Deathjam|wee
Weeeeee
 
Deathjam|wee's Avatar
 
Join Date: Oct 2003
Location: leeds
Posts: 586
Deathjam|wee has a spectacular aura aboutDeathjam|wee has a spectacular aura aboutDeathjam|wee has a spectacular aura about
Re: Calc Planet Orbits

oops forgot the link

http://xplanet.sourceforge.net/
__________________
:gollum: :gollum: :gollum: :gollum:

One load of gollums is enough for anyone.Ta
DM.
Deathjam|wee is offline   Reply With Quote
Reply



Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
in-space combat, diffferent ship design, and planet spheres s|k Planetarion Suggestions 6 22 Nov 2003 03:20
Flash Space Orbits Game? Ragnarak General Discussions 8 12 Nov 2003 00:52
Colonies: Alsar Secondus Planetkiller II Roleplaying 102 8 Oct 2003 17:40
Bug when planet name was changed KingGnome Planetarion Help Desk 1 15 Mar 2003 18:06
Planet Sides Aneu Planetarion Discussions 14 11 Feb 2003 00:31


All times are GMT +1. The time now is 17:16.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018