Skip to content

Commit

Permalink
Update documentation, minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
r-veenstra committed Jan 30, 2025
1 parent 6af3572 commit f363443
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,15 @@ PrefabInstance:
- target: {fileID: 7752603225714643755, guid: d1f6fb4b452d026489986bf620a2d8bc,
type: 3}
propertyPath: m_text
value: "In this scene, explore the buildings of New York City by viewing per-building
metadata. \r\n\r\nClick the play button to test out the scene. Use your mouse
to aim the crosshair at a building, then left click to view its metadata.
If you need to free the cursor, press the Escape key to unlock it from the
scene view.\n\r\nCheck out the \"Cesium Samples Metadata Picking\" script
for an example of how to access this metadata via the Cesium For Unity API.\r\n\r\nPress
\"1\" in the editor to return to this view.\r\n"
value: "In this scene, explore the features of the Snowdon Architectural tileset,
which includes 3D Tiles 1.1 features and metadata extensions, both supported
by Cesium for Unity.\r\n\r\nClick the play button to test the scene. Use
your mouse to click on any part of the building to display that feature's
metadata in the on-screen widget. You can also use the Layer Toggle widget
to turn on and off different layers.\r\n\r\nCheck out the \"Cesium Samples
Toggle Layer\" and \"Cesium Samples Metadata Picking AEC\" scripts to find
out how layer toggling and metadata picking is implemented. \n\r\nPress \"1\"
in the editor to return to this view.\r\n"
objectReference: {fileID: 0}
- target: {fileID: 7752603225896829094, guid: d1f6fb4b452d026489986bf620a2d8bc,
type: 3}
Expand Down Expand Up @@ -360,7 +362,7 @@ PrefabInstance:
- target: {fileID: 7752603227654311266, guid: d1f6fb4b452d026489986bf620a2d8bc,
type: 3}
propertyPath: m_SizeDelta.y
value: 145
value: 165
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
Expand Down Expand Up @@ -2940,7 +2942,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1566737972}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 6.1953623e-18, z: -9.228018e-18, w: 1}
m_LocalRotation: {x: 0, y: 6.6628166e-18, z: -1.9472976e-17, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
Expand Down Expand Up @@ -2976,16 +2978,16 @@ MonoBehaviour:
_localToGlobeFixedMatrix:
c0:
x: 0.9844621699588111
y: 0.1755967992874269
z: -0.00000000000000001423837244229721
y: 0.17559679928742694
z: -0.000000000000000034802128342998265
w: 0
c1:
x: 0.13447099995402617
x: 0.1344709999540262
y: -0.7538953611254723
z: 0.6430857910456876
w: 0
c2:
x: -0.11292380657484577
x: -0.11292380657484576
y: 0.6330936333225162
z: 0.7657941403243707
w: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UnityEngine.UI;

[RequireComponent(typeof(Toggle))]
public class CesiumToggleLayer : MonoBehaviour
public class CesiumSamplesToggleLayer : MonoBehaviour
{
[SerializeField] private GameObject target;
private Toggle toggle;
Expand All @@ -17,7 +17,7 @@ private void Awake()
}
else
{
Debug.LogError("CesiumToggleLayer requires a Toggle component on the same GameObject.");
Debug.LogError("CesiumSamplesToggleLayer requires a Toggle component on the same GameObject.");
}
}

Expand Down
Binary file added Images~/architectural_design.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ projects in the [Photorealistic 3D Tiles from Google Maps Platform tutorial](htt

*<p align="center">The Googleplex in Mountain View, California visualized with Photorealistic 3D Tiles in Cesium for Unity.<br>Open <b>07_CesiumGoogleMapsTiles</b> in the Cesium for Unity Samples to explore the world as Photorealistic 3D Tiles.</p>*

### :eight: Level 8 - Architectural Design

This level showcases an architectural design model streamed into Unity using 3D Tiles. It demonstrates the ability to toggle the visibility of different design layers and click on individual building features to display associated metadata.

![The Googleplex in Mountain View, California visualized with Photorealistic 3D Tiles in Cesium for Unity.](Images~/architectural_design.jpg)

*<p align="center">Snowdon Sample Model from Autodesk Revit, streamed with 3D Tiles and visualized using Cesium for Unity.<br>Open <b>08_CesiumArchitecturalDesign</b> in the Cesium for Unity Samples to learn more about streaming architectural designs using 3D Tiles.</p>*

### :goggles: :one: VR Level 1 - Denver Photogrammetry

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.
Expand Down

0 comments on commit f363443

Please sign in to comment.