🔥 Help shape the future of Azure Tips and Tricks by telling what you'd like for us to write about here (opens new window).
💡 Learn more : Azure Remote Rendering Overview (opens new window).
📺 Watch the video : How to render 3D content remotely with Azure Remote Rendering (opens new window).
# How to render 3D content remotely with Azure Remote Rendering
# Enabling the VR and AR revolution
Virtual and Augmented Reality applications are the future of software technology. They provide experiences that feel real, and depend on 3D content. Usually, the VR or AR device would process and render the 3D content, which requires a lot of processing power. This is an obstacle for creating devices that have long battery life, and don't require a connection to a powerful computer.
Azure Remote Rendering (opens new window) can render 3D content in Azure and stream the graphics result to you. Azure does the heavy computational lifting of rendering complex 3D content, and your VR or AR device only has to display it.
If you want to follow along, you'll need the following:
- An Azure subscription (If you don't have an Azure subscription, create a free account (opens new window) before you begin)
- GIT (opens new window)
- Unity (opens new window). We use a sample application that requires unity 2019.4.16f1 or higher
- A Unity account (opens new window) to activate a Unity license
- Make sure that your Development PC has the minimum system requirements (opens new window)
# Render 3D content remotely with Azure Remote Rendering
Let's see Azure Remote Rendering in action. We are going to use a sample Unity project that contains 3D assets, which will be rendered by Azure Remote Rendering. The first thing that we need to do, is create an Azure Remote Rendering account:
- Go to the Azure portal (opens new window)
- Click the Create a resource button (the plus-sign in the top left corner)
- Search for remote rendering, select the "Remote Rendering" result and click Create
- Type in a Name for the rendering account
- Select a Resource Group
- Pick a Location
- Click Create to create the Remote Rendering account
(Create a Remote Rendering account in the Azure portal)
When the Remote Rendering account is created, navigate to it in the Azure portal. We need 3 pieces of information to use it from Unity:
- Account Domain, which you can find on the Overview blade
- Account ID, also found on the Overview blade
- Access Key, which you can find in the Access Keys menu
(Remote Rendering Access Keys in the Azure portal)
Next, we need to download the sample application. Open a command prompt and execute the following commands:
mkdir ARR cd ARR git clone https://github.com/Azure/azure-remote-rendering powershell azure-remote-rendering\Scripts\DownloadUnityPackages.ps1
With the sample application on your computer, you can add it to Unity and open it.
- Open the Unity Hub application
- Navigate to Projects
- Click Add to add a project
- Navigate to the sample folder ARR\azure-remote-rendering\Unity\Quickstart and click Select folder
- Click on the project to open it in Unity. It might prompt you to download a version of Unity, or to upgrade the project. Both options are good and will open the project
- Next, we will connect the Unity project to Azure Remote Rendering. First, in Unity, open the Quickstart scene by clicking in the project tab > Assets > Scenes > Quickstart
- In the hierarchy tab, select RemoteRendering. This uses the Azure Remote Rendering Unity package
- In the Inspector tab, fill in the values for the Azure Remote Rendering account
- Account Domain: The account domain from the Azure portal
- Account Authentication Domain: The account domain from the Azure portal
- Account Id: The account ID from the Azure portal
- Account Key: The Access Key from the Azure portal
(Remote Rendering account details in Unity)
- Press Play to start rendering. This can take a few minutes as Azure Remote Rendering receives and processes the files to render
You'll see the 3D model rendered live in Unity. It is being rendered remotely in real-time. To test that, open the Scene tab and move the camera. You'll see that the rendering changes. Also, when you look at the Inspector tab of the RemoteRendering object, you'll see Runtime Session Info, which shows you information about the remote rendering session.
(3D Model being remote rendered in Unity)
Rendering 3D content remotely with Azure Remote Rendering (opens new window) enables you to create renderings that your VR or AR device couldn't render by itself. Go and check it out!