Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

carbon14

horizon

This topic is 5458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi how does one calculate where the horizon line shoud be? from flight simulators, we know that the horizon goes up, if we go down, and it goes down, if we go up. thanks

Share this post


Link to post
Share on other sites
Advertisement
Hmm. If you make the approximation that the Earth is flat, then the horizon line is at the same level (apparent height) as your eyes.

Cédric

Share this post


Link to post
Share on other sites
All you need to know is the radius of the earth, which last year I would have known. Then it''s a case of simple trig to work it out.

I think the angle below the plane with up being a normal, would be given by:

arccos(r/(r+h))

where r is the radius of the earth and h the height of the aircraft.

You would have to go pretty high to see any effect. Also then the horizon would be curved, so drawing it would be harder, but not much of a problem. It''s probably only worth implementing if you get really really high. So unless you can fly into space, I wouldn''t bother.

Share this post


Link to post
Share on other sites
arccos(r/(r+h)) is correct
it is all here:
http://www-istp.gsfc.nasa.gov/stargaze/Shorizon.htm
thanks





[edited by - carbon14 on August 13, 2003 11:17:01 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!