Skip to content

Latest commit

 

History

History

SpirareBrowser-visionOS-3DMaps

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

SpirareBrowser-visionOS-3DMaps

This project is a browser application for Spirare that is capable of displaying a 3D map and overlaying POML data on it.

Spirare Browser visionOS 3DMaps Demo

Target Devices

Apple Vision Pro

Project Setup

Edit Cesium for Unity

Move Cesium for Unity package

Move the Library/PackageCache/[email protected] folder into the Packages folder.

Change the codes

Change the codes by executing the following commands.

cd Packages/[email protected]/Runtime/generated/Reinterop/Reinterop.RoslynSourceGenerator
sed -i '' 's/UNITY_IOS/(UNITY_IOS || UNITY_VISIONOS)/g' *.cs
sed -i '' 's/makeNoLongerReadable != 0/false/g' ReinteropInitializer.cs

Edit CesiumSelectTexCoords.shadersubgraph in Cesium for Unity/Runtime/Resources folder

Due to a conversion error to MaterialX in CesiumSelectTexCoords.shadersubgraph, modify it as shown in the images.

Before:

After:

Edit CesiumRasterOverlay.shadersubgraph in Cesium for Unity/Runtime/Resources folder

Add Sampler State and set Wrap to Clamp.

Before:

After:

Get Google API Key

Please obtain the API key, referring to the link below.
https://developers.google.com/maps/documentation/tile/get-api-key?hl=en

Set API Key

Select Assets\Resources\Spirare\GooglePhotorealistic3DTilesSourceSettings and enter the following URL into the URL field.

https://tile.googleapis.com/v1/3dtiles/root.json?key=<Your API Key>

Tileset API Key Settings

Build settings

Switch the platform to visionOS and build the project.

Usage

How to operate

You can change the position of the map object by manipulating the sides of the map base. By manipulating the top surface of the map, you can move the center of the map and zoom in or out.

Load POML from URL

Access http://<Apple Vision Pro IP Address>:8080 in your PC's browser to open the management page.

App management page

Load the POML file by entering the URL in the input field and pressing the Load button.