Introducing WRLD

Mixed reality apps, because they provide spatial awareness to the user, are excellent for viewing massive objects or areas like a map. Unlike virtual reality, mixed provides a more intuitive and natural interface for movement since the user can also physically move their position. So, what better way to fully explore MR than by using it to view a 3D map of the world. Fortunately, there is a relative newcomer called WRLD that has started to make significant waves in AR / VR and MR, because it provides an excellent and simple solution for rendering a fairly-good 3D map.

WRLD is a great platform for general 3D mapping and visualization. It currently does not support more robust backend GIS services, but it certainly could. For those professional GIS developers with access to Esri CityEngine, there are also some great workflows for bringing CE models into Unity. This means that you can also experiment with CE models in MR.

WRLD is shipped as a Unity asset right to the Asset Store, so installation is a breeze. However, before we install, we need to go to the WRLD site and get a developer account. WRLD is a commercial service that charges by usage. Fortunately, they offer free developer access for a limited, which is perfect for our tech demo. Open up a browser and complete the following:

  1. Browse to wrld3d.com and Sign Up for an account. Ensure that you verify the account through email.
  2. Return to the site and Sign In.
  3. Find and click on the Developers link at the top of the page. This will take you to the Developers page.
  4. Click on the big Access API Keys button at the top of the page.
  5. Enter the name for your key, HoloCore, and click on Create API Key to create the key, as shown in the following screenshot:
Creating a WRLD API key
  1. Click on Copy API Key to copy the key to your clipboard. We will use it shortly.
  2. Return to the Unity editor and, from the menu, select Window | Asset Store. This will open a browser page inside the editor.
  1. Enter WRLD in the search box and click on the Search button. This will open the asset page for WRLD, offering you to Download the asset. Click on the Download button, as shown in the following screenshot:
Downloading the WRLD asset from the Asset Store
  1. This will download the package. After the package downloads, you will be prompted with an asset import dialog. Just click on Import to import everything. This may take a while, so stretch your legs and grab some refreshments.
In some cases, you may want to be more careful on what you bring into your projects. For instance, if you were building a non-tech demo or proof of concept, you would likely remove any sample scenes or other excess from a project. We will talk more about keeping projects lean in Chapter 11, Performance Tips and Troubleshooting.
  1. You may get a warning prompting you that the versions don't match with your version of Unity. Accept the warning and continue.
  2. When you are prompted to get a key after you import WRLD, just click on Later. After all, we already have a key.
  1. Next, you will probably be prompted to increase the shadow distance with the following dialog:
 
Skip the Shadow settings dialog
  1. Click on the Skip button. We will need to adjust the lighting, materials, and shadows later manually.

This imports the WRLD asset into our project. In the next section, we will cover how to set it up and run WRLD for our MR app.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.200.232