ZED SDK 3.1 with Unreal Engine v4.28 on Windows 10
ZED SDK 3.1 with Unreal Engine
This assumes no existing development environment exists and was written after while performing these steps of a new install of Windows 10.
- Configuring Visual Studio
- Game Development, Unreal Build Installer
- Desktop for C++ (Enable additional C++ addons)
- Visual Studio Community 2017 (version 15.9)
- Game Development with C++ workload + Unreal Engine Installer
Downloading and building Unreal Engine from Source
Clone reulan fork of UnrealEngine built for ZED from GitHub. I used GitHub for Windows since I am running Windows 10.
If you use another operating system feel free to check out source repositories:
Creating a new Unreal Engine Project
- Run the UE4.sln file
- In the Solution view, right click UE4 and Set as StartUp Project
- Development Editor
- solution platform to Win64
- right click on the UE4 target and select Build (It may take anywhere between 10 and 40 minutes to finish compiling, depending on your system specs)
After compiling finishes, you can load the editor from Visual Studio by setting your startup project to UE4 and pressing Ctrl+F5 to debug. Save the project as AutomateThis.
Configure ZED Camera for Windows 10
- Download the ZED SDK. Then launch ZED Explorer, ensure this is the same SDK version as the Unreal Engine plugin.
- Install NVIDIA CUDA Toolkit
This requires 10.2 of the CUDA Developer toolkit installed.
Import ZED SDK into Unreal
The ZED SDK version used is 3.1 and the Unreal Engine this project was build with was 4.21.
UE4.21_ZedSdk3.1 - (3.0 is currently being used, get HYPE for 3.2 for body tracking)
Move the Studiolabs directory into a Plugins dir. Move the Plugins dir into your Unreal project. In your project root directory right click on the AutomateThis.uproject file and select Generate Visual Studio project files (CTRL + F5) in the context menu.
Configure ZED in Unreal Engine
In the menu select Goto Edit -> Project Settings:
Maps & Mode
GameMode: BP_ZED_GameMode Game Instance Class: ZEDGameInstance
Game Viewport Client Class: ZEDGameViewportClient LocalPlayerClass: ZEDLocalPlayer Near Clip Plane: 1.0
Modify the Config folder so that it’s optimized for the in ZED2.
- Launch SteamVR, then start AutomateThis.uproject
- Iterating on AutomateThis Engine
- Loading an Existing Project
- To launch the AutomateThis project, the following steps can be performed:
- Close the project, go to
C:\Projects\Unreal and run AutomateThis.uprojectwith the context to generate VS Project Studio files.
AutomateThis.slnis now the entrypoint into the