在 OpenGL 中计算椭圆轨道?
众所周知,卫星绕地球运行并不是一个完美的圆。它们更像是椭圆轨道。
我正在尝试使用 OpenGL 绘制绕地球的轨道来表示这一点。目前,我绘制了一条由 360 个标记组成的虚线,这使得一系列围绕地球的虚线形成了一个漂亮的完美圆圈。
如果我有轨道倾角、近地点和远地点,计算这个圆的方法是什么?我正在尝试找到一个公式或白皮书或其他东西来让我朝着正确的方向前进......
As everyone knows, satellites around the earth don't go in a perfect circle. They are more an elliptical orbit.
I'm trying to represent this using OpenGL to draw an orbit around the earth. Currently, I draw a dashed-line composed of 360 markers which makes a series of dashes around the globe in a nice perfect circle.
If I have the Orbital inclination, Perigee and Apogee what would be the way to calculate this circle? I'm trying to find a formula or white paper or something to get me in the right direction....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这太疯狂了,它们当然是
完美
轨道。不,但听起来更像是一个需要物理公式。尝试..http://scienceworld.wolfram.com/physicals/Orbit.html
或
http://physicals.info/orbital-mechanics-1/
What this is crazy, of course they are
perfect
orbits. No but seriously sounds more like a need Physics formua. Try..http://scienceworld.wolfram.com/physics/Orbit.html
or
http://physics.info/orbital-mechanics-1/
这里没有任何经验,但如果您打算实际跟踪卫星,您将需要使用开普勒元素( http://en.wikipedia.org/wiki/Orbital_elements#Keplerian_elements,http://en.wikipedia.org/wiki/Orbital_elements#Orbit_prediction),为卫星发布。请注意,真实的卫星在其轨道上存在扰动,因此卫星的开普勒元素会定期更新。如果您只需要“看起来”像卫星轨道的东西,那么理想化的椭圆形成另一个答案就可以了。
Don't have really any experience here, but if you plan to actually track satellites you will want to use the Keplerian elements ( http://en.wikipedia.org/wiki/Orbital_elements#Keplerian_elements , http://en.wikipedia.org/wiki/Orbital_elements#Orbit_prediction) which get published for satellites. Note that real satellites have perturbation in their orbits so the Keplerian elements for a satellite are regularly updated. If you just need something that "looks" like satellite orbits then the idealized ellipses form the other answer will be fine.