GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - OSVR/OSVR-Unity-Rendering: Rendering plugin for Unity

BranchesTags
Open more actions menu

Latest commit

 

History

188 Commits
188 Commits

Folders and files

NameName
Last commit message
Last commit date
Unity
Unity
 
 
cmake
cmake
 
 
images
images
 
 
.clang-format
.clang-format
 
 
.clang-tidy
.clang-tidy
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
OsvrRenderingPlugin.cpp
OsvrRenderingPlugin.cpp
 
 
OsvrRenderingPlugin.h
OsvrRenderingPlugin.h
 
 
PluginConfig.h
PluginConfig.h
 
 
README.md
README.md
 
 
UnityRendererType.h
UnityRendererType.h
 
 
clang-tidy-run.cmd
clang-tidy-run.cmd
 
 

Repository files navigation

OSVR-Unity-Rendering

Rendering plugin for OSVR-Unity, based on the docs here: http://docs.unity3d.com/Manual/NativePluginInterface.html

This plugin enables OSVR-RenderManager features in OSVR-Unity projects. These features include:

  • Direct Mode
  • Timewarp
  • Distortion Correction for HDK 1.3

The osvrUnityRenderingPlugin.dll library built by this project goes into the Plugins folder of an OSVR-Unity project. It also requires:

  • SDL2.dll
  • glew32.dll
  • osvrRenderManager.dll

to be present in order to successully load the plugin in Unity.

RenderManager Requirements

  • Unity 5.2+ with DX11 Graphics API. OpenGL support is coming soon.
  • Updated NVIDIA drivers
  • Compatible NVIDIA GPU (we've seen DirectMode working on cards as low as 560m)
  • Latest RenderManager installer available from: http://osvr.github.io/using/

After installing RenderManager, you can run EnableOSVRDirectMode.exe and the HDK will be removed as a Windows display. DisableOSVRDirectMode.exe does the opposite.

Enable-Disable

From the Windows Start Menu, run one of the RenderManager demos such as RenderManagerD3DExample3D.exe. If it works, you should scene that looks like:

Cube Room

An external RenderManager configuration file is referenced in the osvr_server_config.json file:

OSVR server config snippet

and will look something like:

RenderManager config

If directModeEnabled is set to false, the game will render in a window. Setting it to true displays the game on the HDK, with an option in the Unity plugin for mirroring the game on a monitor. “Mirror mode” will soon be a RenderManager feature rather than a Unity plugin feature.

numBuffers controls whether single or double buffering (or more) is used.

renderOverfillFactor expands the size of the render window, adding more pixels around the border, so that there is margin to be rendered when using distortion (which pulls in pixels from outside the boundary). The larger this factor, the less likely we'll see clamped images at the border but the more work taken during rendering. A factor of 1.0 means render at standard size, 2.0 would render 4x as many pixels (2x in both X and Y).

renderOversampleFactor controls the density of the render texture. Increasing the value will add more pixels within the texture, so that when it is rendered into the final buffer with distortion correction it can be expanded by the distortion without making fat pixels. Alternatively, it can be reduced to make rendering faster at the expense if visible pixel resolution. A factor of 1.0 means render at standard size, 2.0 would render 4x as many pixels (2x in both X and Y) and 0.5 would render 1/4 as many pixels.

xPosition and yPosition control the position of the game window when not in DirectMode.

maxMsBeforeVsync controls when we read tracker reports before vsync.

asynchronous timewarp is coming soon.

Troubleshooting

For RenderManager troubleshooting, visit: https://github.com/OSVR/OSVR-Docs/blob/master/Troubleshooting/RenderManager.md

About

Rendering plugin for Unity

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

33 stars

Watchers

30 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.