Skip to content

wrchen530/barracuda-neural-rendering-vr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Real-time Barracuda Neural Rendering for VR

In this repository, we develop a general neural rendering pipeline for VR devices that can display in real-time. The pipeline is built on the Unity engine and Barracuda package. This demo contains two applications for neural rendering: scene style transfer and photorealistic human rendering. The Unity demo can be downloaded here.

Alt text

Pipeline

  • Given the real-time VR headset pose and scene mesh, we use the Unity multi-pass built-in renderer to obtain the raw rendered view from the current camera position and store it in the input texture.
  • In the neural rendering stage, we prepare a pre-trained neural rendering network in ONNX format and load it to the Barracuda. The input texture is firstly pre-processed with the cropping and down-sampling, then is passed to the neural network inference module for rendering.
  • Finally, the result is post-processed with the up-sampling and copied back to the output texture.

Alt text

Control

We have tested the demo on the Oculus Quest 2.

  • Left Thumbstick to control the position of the camera
  • Right Thumbstick to change the view direction of the camera
  • X to enable neural rendering
  • A to disable neural rendering
  • B to reset the camera to the original position

Alt text

Usage

  1. Use trigger to select a neural rendering model (NNModel) (human rendering or scene transfer) from the left menu.
  2. Use trigger to select a mesh for testing from the right menu.
  3. Click X to enable neural rendering.
  4. Use left/right Thumbstick to freely explore the scene!
  5. Click A to disable neural rendering and try other scenes.

More instructions can be found in this demo video.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published