Unity HDRP example project with Vioso integration for the Lablab studio.
-
Download or clone this project on your computer.
-
Download the Vioso calibration file here and add it to the Assets/Plugins/Vioso/ folder.
-
Copy the Plugins, ProjectionSetup and Resources folders from this project to your own project Assets.
-
Add the ViosoWarpBlendPP to the After Post Process section of the HDRP Global Settings.
- Replace the camera in your scene by the ProjectionSetup prefab from the ProjectionSetup/Prefab folder.
After building your application, copy the vioso calibration file (.vwf) and VIOSOWarpBlend.ini files from the Unity Assets/Plugins/Vioso folder to your build folder in [your_build_path..]/[your_application_name]_Data/Plugins/[your_architecture]/ next to the ViosoWarpBlend.dll file.
When building for Windows 64 bits, the ViosoBuildPostProcessor script should automatically make this copy.
The projection setup for the Lablab studio is created in the ProjectionSetup prefab located in the ProjectionSetup/Lablab/Prefab/ folder.
Add this prefab to your scene and disable other cameras in order to setup your scene for projection in the Lablab studio.
For example in the SampleScene, this projection setup as been added to the First person controller to replace the default camera of the First person controller.
To work with the Lablab video projectors setup, the Unity application creates 3 full screen windows. The window on display 1 is for the wall outputs, the window on display 2 is empty as it is the monitoring display, the window on display 3 is for the floor outputs.
To previsualize this in Unity, you need to set your game view(s) to render the display 1 (for the walls) and 3 (for the floor), at a 3840x2400 resolution.
With this setup, you should see the following output in the sample scene :
In the ProjectionSetup prefab, the Lablab object is a 3D model of the studio for debugging purposes. It is enabled to help you visualize the physical space of the studio in your 3D world and validate the outputs. Once it is setup correctly, you can disable the Lablab component of the ProjectionSetup to see the final output of your scene.