Demo Scene
beginner tasksWorld Map Globe Ultra Edition · Common Tasks
The demo scene is in Assets/WorldMapGlobeUltraEdition/Demos/01 Planetary Flight/PlanetaryFlight.unity. It starts 800 km over the center of Spain and shows the terrain, the imagery, the atmosphere, the sky with its constellations, the clouds, the political map, markers, anchors, buildings and trees. Open it and enter Play mode.
Objects of the Scene
| Object | Description |
|---|---|
| Planetary Globe | The World Map Globe Ultra component. |
| Planetary Free Camera | The camera with the Planetary Flight Camera component. |
| Sun | The Directional Light of the Sun. |
| Demo Interface | The PlanetaryFlightDemo component, which builds the panel of the demo. |
| Demo Examples | The Planetary Interaction component and the example components described below. DataColorsExample is added by the demo on Play. |
Controls
| Input | Action |
|---|---|
| W A S D | Move |
| Q / E | Move down and up |
| Space / Left Ctrl | Move toward the top and the bottom of the screen |
| Right mouse button | Look around |
| Left click | Select a country, which blinks |
| Shift | Fly faster |
Panel
The panel shows the altitude and the position of the camera, the country and the province under the mouse, the drawn tiles, the pending downloads and the state of the terrain. Click the position to copy the latitude, the longitude and the altitude of the camera. The credits of the data are at the bottom right of the screen. The Hide button hides the panel and the Show button brings it back.
| Tab | Content |
|---|---|
| Places | A field and a list of places. In the field, write a latitude and a longitude in degrees, with an altitude in meters as a third value if you want, or an address or the name of a place, and press Enter or Go. The letters N, S, E and W can follow the numbers, and the text that a click on the position copies can be pasted there. While you write in the field, the keys do not move the camera. The list has places to fly to, from orbit to the ground: Space, Orbit over Europe, Mont Blanc, Strait of Gibraltar, Mount Everest, Mount Fuji, Grand Canyon, Yosemite Valley, Manhattan and Munich houses. A click calls FlyToLocation. The list is the waypoints array of the PlanetaryFlightDemo component, so you can change it. |
| Options | Level horizon, Wait for terrain, Highlight provinces (in place of countries) and Country data (the data colors example). |
| Sky | The time of the sky, the height of the Sun over the horizon at the place of the camera, a slider for the hour, the buttons Noon, Sunset and Night, sliders for the faintest star and the lens flare, and the switches Constellations and Star names. Noon, Sunset and Night set the hour of the same day of the sky when the Sun is highest, when it is low in the evening before it sets, and when it is lowest, at the place of the camera. |
| Clouds | Show the clouds, and sliders for the weather speed, the low clouds, the high clouds and the density of the clouds. |
Example Components
Each example only calls the public API of the asset, so you can copy it and change it for your project. The demo adds the examples on Play when the scene does not have them.
| Component | What it shows |
|---|---|
PoliticalSelectionExample | Highlights the country or the province under the pointer, and makes a clicked region blink. It listens to the events of Planetary Interaction. |
CityInfoExample | Shows a panel with the name, the class, the population, the province and the country of a capital while the pointer is over its pin. |
AnchorsExample | A drone circles Mont Blanc at a fixed altitude, and a pin marks the capital of each country. The pins keep the same size on the screen at any distance and hide behind the planet. You can set the center, the radius, the altitude and the speed of the route of the drone, turn off the pins of the capitals, and set the size and the colors of the pins. |
GroundMarkersExample | A circle, two range rings, a line and an area around Mont Blanc, drawn on the relief. Disable the component to remove its markers. |
DataColorsExample | Colors the countries from a table made at runtime, with the people of the cities of each country, and draws the legend that Political Data Colors returns. |
What to Look At
- Fly to Space, then to Mont Blanc: the terrain gets more detailed as the camera comes down, with no loading screen.
- Near Mont Blanc, look at the drone, the pins and the ground markers on the relief.
- Fly to Manhattan and to Munich houses to see the buildings and the trees.
- In the Sky tab, press Sunset and Night to see the light of the Sun, the stars and the Moon.
- At night, turn on Constellations in the Sky tab and move the mouse over the sky: the constellation under the mouse is highlighted, and Star names shows the names of its stars.
- Write an address, or a latitude and a longitude, in the field of the Places tab and press Go.
- In the Clouds tab, raise the weather speed and look at the clouds from orbit.
- Move the mouse over the countries and click one. Turn on Highlight provinces to do the same with the provinces.
Suggest an improvement
Help us improve this documentation page.