{"id":21536099,"url":"https://github.com/dandarawy/unity3d-globe","last_synced_at":"2025-08-21T05:32:42.342Z","repository":{"id":41413244,"uuid":"88212217","full_name":"Dandarawy/Unity3D-Globe","owner":"Dandarawy","description":"Unity3D Implementation of Chrome Experiment WebGL Globe ","archived":false,"fork":false,"pushed_at":"2019-12-06T04:38:44.000Z","size":33309,"stargazers_count":179,"open_issues_count":1,"forks_count":65,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-08T04:51:18.500Z","etag":null,"topics":["earth","globe","unity","unity3d","webgl-globe"],"latest_commit_sha":null,"homepage":"https://dandarawy.github.io/Unity3D-Globe/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dandarawy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-13T22:41:40.000Z","updated_at":"2025-03-13T12:08:02.000Z","dependencies_parsed_at":"2022-08-25T07:50:42.534Z","dependency_job_id":null,"html_url":"https://github.com/Dandarawy/Unity3D-Globe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dandarawy/Unity3D-Globe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dandarawy%2FUnity3D-Globe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dandarawy%2FUnity3D-Globe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dandarawy%2FUnity3D-Globe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dandarawy%2FUnity3D-Globe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dandarawy","download_url":"https://codeload.github.com/Dandarawy/Unity3D-Globe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dandarawy%2FUnity3D-Globe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271430805,"owners_count":24758378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["earth","globe","unity","unity3d","webgl-globe"],"created_at":"2024-11-24T03:18:03.725Z","updated_at":"2025-08-21T05:32:40.608Z","avatar_url":"https://github.com/Dandarawy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity3D-Globe\nUnity3D Implementation for Chrome Experiment WebGL Globe\n\nTry a [Live Demo](https://dandarawy.github.io/Unity3D-Globe/)\n\n![Unity3D Globe Screenshot](https://dl.dropboxusercontent.com/s/az5hqprnlzz0mjh/Unity3DGlobe-main.png?dl=0)\n\n**Unity3D-Globe** is a complete project in which you can use to add your own data and create your globe.\n\n# Change Data Source\nThe default `DataLoader` loads a `JSON` file from Resources folder, the loader expect `JSON` in the following format:\n```javascript\n{\n  \"AllData\": [\n    {\n      \"Year\": \"1990\",\n      \"Data\": latitude, longitude, magnitude, latitude, longitude, magnitude, ...]\n    },\n    {\n      \"Year\": \"2000\",\n      \"Data\": latitude, longitude, magnitude, latitude, longitude, magnitude, ...]\n    }\n  ]\n}\n```\n\nYou can change the structure of the `JSON` file or even the data source as required and implement your own `DataLoader`.\n\n# Visualize Your Data\n\n* To visualize your data you'll need to have a GameObject with `DataVisualizer` component attached to it\n* `DataVisualizer` needs a reference to the following elements:\n\n\u003cimg align=\"right\" src=\"https://dl.dropboxusercontent.com/s/p4qxm4ur09x5hh3/DataVisualizer.png?dl=0\"\u003e\n\n1. 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\n2. Colors: a gradient to be used to assign each data point a color according to its value\n3. Earth: the earth object in the scene.\n4. Point Prefab: a prefab to the point which will be placed for each data value \n* After loading the data wrap it in array of `SeriesData`, the `SeriesData` is just a class that has a name and `float` array, the `float` array represent the series data in the following order [latitude, longitude, magnitude, latitude, longitude, magnitude, ...]\n* Call the `CreateMeshes` function from your `DataVisualizer` and send it the series array that you have just created\n* To switch the shown series just call `ActivateSeries` function on visualizer and send it the index of the series that you need to show.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdandarawy%2Funity3d-globe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdandarawy%2Funity3d-globe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdandarawy%2Funity3d-globe/lists"}