Skip to content

Latest commit

 

History

History
89 lines (54 loc) · 3.59 KB

README.md

File metadata and controls

89 lines (54 loc) · 3.59 KB

XP2Earth

X-Plane plugin to connect to Google Earth

For license see https://github.com/Djeez2/XP2Earth LICENSE.

View the terrain in Google Earth while flying X-Plane.

Currently, this plugin is only available for Windows.

New in version 1.1:

  • Users can now bind keys to control the plugin
  • Some settings such as tilt angle and pilot height are now customizable
  • Cockpit builders can now use commands and datarefs to control the plugin

Installation

One-time setup

  • To get the best experience, experiment with the fly-to speed in Google Earth. (Menu: Tools -> Options -> Navigation -> Fly-To Speed). For me, the best setting is 3.5 to 4.0
  • Select your viewing preferences. Some suggestions:
    • In View menu:
      • Show atmosphere
      • Hide grid
    • In Layers selection:
      • Uncheck everything, except
      • Check 3D buildings -> Photorealistic
      • Check Terrain

Operating instructions

  • In the X-Plane menu select Plugins -> XP2Earth -> Tracking to start tracking your position. Select again to stop tracking.
  • Click XP2Earth -> Connect Earth to start Google Earth automatically (when not already started), and have it update its location.

Viewing options in the XP2Earth plugin menu:

  • Pilot View: This sets the Google Earth eye point close to the ground. However, this leads to weird effects at some airports when the elevation in Google Earth is different from X-Plane's.
  • Look Around: This allows you to look around in Google Earth by moving your head in the cockpit.

Remote operation

You can run Google Earth on a second computer.

  • In the X-Plane plugin start the tracking, but do NOT connect to Earth (as this would start a local Google Earth session)
  • Copy the file xp2earth.kml to the second computer.
  • Open the file with a text editor (e.g. Notepad) and change the text "localhost" to the name or IP-address of your X-Plane computer.
  • In the Google Earth menu: File -> Open the updated xp2earth.kml file.

Acknowledgements

This plugin uses ideas and code from

In the spririt of these open source projects I also contribute this plugin to the open source community.

Thanks to

  • Kees Houbolt for testing many early versions of the plugin.
  • Google for providing Google Earth free of charge.
  • Laminar Research for opening up X-Plane through a well-documented SDK.
  • Microsoft for providing Visual Studio Community Edition free of charge.

For cockpit builders

Access to the plugin is clustered in the xp2earth/... commands and datarefs.

For developers

The source of this plugin is available on GitHub: https://github.com/Djeez2/XP2Earth

Please create pull requests for improvements. I especially would appreciate contributions for other platforms, as I have no experience building plugins for MacOS or Linux, nor am I able to test those.

The plugin was built with Visual Studio 2019 Community Edition. The project assumes the X-Plane SDK is located in D:\XPSDK.