Home

Awesome

Unity3D-Globe

Unity3D Implementation for Chrome Experiment WebGL Globe

Try a Live Demo

Unity3D Globe Screenshot

Unity3D-Globe is a complete project in which you can use to add your own data and create your globe.

Change Data Source

The default DataLoader loads a JSON file from Resources folder, the loader expect JSON in the following format:

{
  "AllData": [
    {
      "Year": "1990",
      "Data": latitude, longitude, magnitude, latitude, longitude, magnitude, ...]
    },
    {
      "Year": "2000",
      "Data": latitude, longitude, magnitude, latitude, longitude, magnitude, ...]
    }
  ]
}

You can change the structure of the JSON file or even the data source as required and implement your own DataLoader.

Visualize Your Data

<img align="right" src="https://dl.dropboxusercontent.com/s/p4qxm4ur09x5hh3/DataVisualizer.png?dl=0">
  1. PointMaterial: this is a material used for the points mesh, this material should be able to use the vertex color data to set the final color of the vertex, there is a material created for this purpose under the materials folder which use a custom shader written for this purpose
  2. Colors: a gradient to be used to assign each data point a color according to its value
  3. Earth: the earth object in the scene.
  4. Point Prefab: a prefab to the point which will be placed for each data value