Skip to content

CubeVi/CubeVi-Swizzle-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openstageAI logo

CubeVi-Swizzle-Unity

Read this in other languages: English, 中文.

OpenStageAI Unity license license Chat

👋 Join our Discord

Project Introduction

CubeVi_Swizzle_Unity is a Unity SDK for light field rendering.

In BatchCameraManager, multiple cameras (up to forty) are first created, with each camera responsible for rendering different views. Camera settings include focal length, viewport, and other parameters. Then, a DisplayCamera is created to display the final rendering result, and all camera outputs are merged onto a Quad. The Quad is a plane object used to display the rendered image in the scene. The entire workflow is as follows:

  1. Initialize cameras and set their parameters;
  2. Create DisplayCamera for displaying the composite image;
  3. Create Quad and set its material to the rendering result texture;
  4. In each frame update, update camera positions and focus to ensure the rendering result reflects scene changes in real-time;

Maintenance Instructions

Provides basic usage methods for interlacing algorithms in Unity environment.

Dependencies

  • Newtonsoft.Json library, which can be added in Package Manager by name com.unity.nuget.newtonsoft-json
  • Supports Unity 2017 and above versions
  • Please ensure your computer is properly connected to the Companion 01 device. For tutorials and OpenstageAI client download, please click here

Usage Instructions and Notes

  1. Attach the BatchCameraManager component to the scene;
  2. Set a Root as the center position of the grid cameras;
  3. Set a TargetTransform to lock the focal plane of the camera group;
  4. The above two variables are mandatory. After setting them, run the scene.

BatchCameraManager Variable Usage:

  • Root: Set the center position of the cameras;

  • BatchCameraPrefab: Select the camera prefab to use;

  • useCameraPrefab: Whether to use custom camera prefab;

  • TargetTransform: Target object's Transform, used to lock the focal plane;

  • FocalLength: Camera lens focal length, affects field of view range;

  • useTartgetFocal: Whether to use the target object center as the focal plane;

  • showFocalPlane: Whether to display the focal plane;

  • showFrustumFrame: Whether to display the frustum;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •