Skip to content

Commit 6ac69b5

Browse files
committed
Merge remote-tracking branch 'origin/main' into token-cleanup
2 parents 5ce2a69 + ca24ac5 commit 6ac69b5

File tree

8 files changed

+60
-3
lines changed

8 files changed

+60
-3
lines changed

Assets/Scenes/04_CesiumMetadata.unity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ RectTransform:
881881
m_AnchorMin: {x: 0, y: 1}
882882
m_AnchorMax: {x: 1, y: 1}
883883
m_AnchoredPosition: {x: 2.5, y: 0}
884-
m_SizeDelta: {x: -5, y: 16}
884+
m_SizeDelta: {x: -5, y: 14.988291}
885885
m_Pivot: {x: 0.5, y: 1}
886886
--- !u!114 &633341526
887887
MonoBehaviour:
@@ -1089,7 +1089,7 @@ MonoBehaviour:
10891089
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
10901090
m_Name:
10911091
m_EditorClassIdentifier:
1092-
m_UiScaleMode: 0
1092+
m_UiScaleMode: 1
10931093
m_ReferencePixelsPerUnit: 100
10941094
m_ScaleFactor: 1
10951095
m_ReferenceResolution: {x: 800, y: 600}
File renamed without changes.
87.9 KB
Loading

Images~/ferry_building.jpg

280 KB
Loading

Images~/metadata.jpg

445 KB
Loading

Images~/san_francisco.jpg

617 KB
Loading

README.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,63 @@
1+
[![Cesium for Unity Logo](Images~/Cesium_for_Unity-Logo-WhiteBGH.jpg)](https://cesium.com/)
2+
13
# Cesium for Unity Samples
24

3-
These are samples to demonstrate how to use the [Cesium for Unity](https://github.com/CesiumGS/cesium-unity) plugin.
5+
The Cesium for Unity Samples is a starter project to learn and explore the [Cesium for Unity](https://cesium.com/platform/cesium-unity?utm_source=cesium-unity&utm_medium=github&utm_campaign=unity) plugin.
6+
7+
The scenes in this project will walk you through the plugin's features and demonstrate global-scale content, applications, and experiences in Unity 3D.
8+
9+
![Aerometrex Photogrammetry of San Francisco in Cesium for Unity](Images~/san_francisco.jpg)
10+
*<p align="center">Photogrammetry of San Francisco, California visualized in Unity, using Cesium for Unity.<br>Open the <b>03_CesiumSanFrancisco</b> scene in Cesium for Unity Samples to experience it yourself!</p>*
11+
12+
### :rocket: Get Started
13+
14+
1. **[Download Cesium for Unity Samples](https://github.com/CesiumGS/cesium-unity-samples/releases)**.
15+
2. Extract the `.zip` file into a suitable location on your computer.
16+
3. If you have [Unity Hub](https://unity.com/unity-hub) installed, click the "Open" button under the "Projects" tab. Otherwise, open the Unity Editor directly and select "Open Project". Then, point it to the extracted directory. Unity will load the project and also download Cesium for Unity using the Package Manager.
17+
4. In the Asset Browser, select and load `Assets -> Scenes -> 01_CesiumWorld`. You can also select other scenes as you browse and explore the samples.
18+
19+
Have questions? Ask them on the [community forum](https://community.cesium.com).
20+
21+
## :mountain: Level Descriptions
22+
23+
### :one: Level 1 - Cesium World
24+
25+
The sample levels begin with a scene in San Francisco. You'll see [Cesium World Terrain](https://cesium.com/platform/cesium-ion/content/cesium-world-terrain/) and [Cesium OSM Buildings](https://cesium.com/platform/cesium-ion/content/cesium-osm-buildings/) in this scene. This level is designed to familiarize you with the core Cesium game objects and components, like Cesium World Terrain and Cesium Georeference.
26+
27+
Be sure to sign into your Cesium ion account using the Cesium button in the toolbar.
28+
29+
### :two: Level 2 - Melbourne Photogrammetry
30+
31+
In this scene, explore high-resolution photogrammetry data of Melbourne. This data is streamed from Cesium ion with the 3D Tiles format, a spatial index for streaming massive 3D content over the web. 3D Tiles makes it possible to stream hundreds of gigabytes of data over the web using hierarchical level of detail, spatial subdivision, and runtime optimizations.
32+
33+
See how this scene was created with the [Adding Datasets tutorial](https://cesium.com/learn/unity/unity-datasets/).
34+
35+
### :three: Level 3 - San Francisco Photogrammetry with a Unity Character Controller
36+
37+
In this scene, explore even more high-resolution photogrammetry data of San Francisco using a third-person character controller. Whereas Melbourne allowed you to freely fly around and explore, in this scene you'll walk right up to the real-world data. When streaming content through Cesium for Unity, physics and gravity will continue to work as expected with your character controllers.
38+
39+
Grab some cool screenshots to share with us as you explore and customize the scenes.
40+
41+
![Photogrammetry of the Ferry Building in San Francisco, CA captured by [Aerometrex](https://aerometrex.com.au/) and visualized in Unity 3D using Cesium for Unity.](Images~/ferry_building.jpg)
42+
*<p align="center">Photogrammetry of the Ferry Building in San Francisco, CA captured by [Aerometrex](https://aerometrex.com.au/).<br>Open <b>03_CesiumSanFrancisco</b> in the Cesium for Unity Samples to walk around the dataset.</p>*
43+
44+
### :four: Level 4 - Metadata
45+
46+
Cesium for Unity enables you to access metadata encoded in your 3D Tiles datasets. In this scene, explore the buildings in New York City and see what information is included in the tileset about each building.
47+
48+
![Metadata of New York City buildings visualized.](Images~/metadata.jpg)
49+
*<p align="center">Metadata of New York City buildings visualized.<br>Open <b>04_CesiumMetadata</b> in the Cesium for Unity Samples to explore the New York City buildings' metadata.</p>*
50+
51+
### :goggles: :one: VR Level 1 - Denver Photogrammetry
52+
53+
Cesium for Unity supports virtual reality platforms. This level is set up for users with VR headsets to get started quickly. In this scene, explore high-resolution photogrammetry data of Denver, Colorado with VR controller support. To build this for the Oculus Quest 2, open **VR01_CesiumDenver** in the Unity Editor and follow the instructions to build an `APK` file for the headset. These instructions also appear in the UI of the scene itself.
54+
55+
1. Ensure that your Unity Editor has Android build support. If not, follow the instructions [here](https://docs.unity3d.com/Manual/android-sdksetup.html) to set it up.
56+
2. Go to `File -> Build Settings` and change the platform to Android.
57+
3. Remove the original sample scene from the scenes list, then click the "Add Open Scenes" button.
58+
4. Go to `Edit -> Project Settings`. Scroll down to find and click on "XR Plug-in Management".
59+
5. Go to the "Android" section and check the box next to "OpenXR".
60+
6. Finally, in the Build Settings window, click "Build and Run" to build an `APK`.
461

562
### :green_book:License
663

0 commit comments

Comments
 (0)