- Start menu > Run
- Type regedit
- Locate
HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1
- On the
ActiveRuntime
key
- Set
C:\Program Files\Oculus\Support\oculus-runtime\oculus_openxr_64.json
for Oculus (CV1, S, Link)
// System informations with Unity | |
// Doc: http://docs.unity3d.com/Documentation/ScriptReference/SystemInfo-graphicsDeviceName.html | |
Debug.Log ("Device model: " + SystemInfo.deviceModel); | |
Debug.Log ("Device name: " + SystemInfo.deviceName); | |
Debug.Log ("Device type: " + SystemInfo.deviceType); | |
Debug.Log ("Graphics device name: " + SystemInfo.graphicsDeviceName); | |
Debug.Log ("Graphics device vendor: " + SystemInfo.graphicsDeviceVendor); | |
Debug.Log ("Graphics device version: " + SystemInfo.graphicsDeviceVersion); |
public static int GetScreenInch() | |
{ | |
#if UNITY_ANDROID | |
var displayMetrics = new AndroidJavaObject("android.util.DisplayMetrics"); | |
var heightPixels = displayMetrics.Get<int>("heightPixels"); | |
var widthPixels = displayMetrics.Get<int>("widthPixels"); | |
var xdpi = displayMetrics.Get<float>("xdpi"); | |
var ydpi = displayMetrics.Get<float>("ydpi"); | |
var x = widthPixels / xdpi; | |
var y = heightPixels / ydpi; |
function getGraphicsCardName() { | |
var canvas = document.createElement("canvas"); | |
var gl = canvas.getContext("experimental-webgl") || canvas.getContext("webgl"); | |
if (!gl) { | |
return "Unknow"; | |
} | |
var ext = gl.getExtension("WEBGL_debug_renderer_info"); | |
if (!ext) { |
{ | |
"description": "This configuration supports video (so-called 'positional') and IMU fusion tracking, in addition to orientation-only tracking, with the OSVR HDK. It is configured for RenderManager applications in direct mode (portrait) on HDK 1.3 optics.", | |
"display": "displays/OSVR_HDK_1_3.json", | |
"renderManagerConfig": "sample-configs/renderManager.direct.landscape.json", | |
"drivers": [{ | |
"plugin": "com_osvr_VideoBasedHMDTracker", | |
"driver": "VideoBasedHMDTracker", | |
"params": { | |
"showDebug": false, | |
"includeRearPanel": true, |
#if !UNITY_EDITOR && UNITY_WSA | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Threading.Tasks; | |
/* | |
You've to edit the file PostProcessEffectSettings.cs (~ line 27) and add a preprocessor instruction |
// Change the position of the view on click with an animation | |
// _hidden is a private variable which is initalized to NO in the constructor. | |
- (void)onClickAction:(UIButton *)button | |
{ | |
// First we must calculate the new position relative to the current position. | |
CGRect rect = CGRectMake(self.frame.origin.x, self.frame.origin.y, self.frame.size.width, self.frame.size.height); | |
if (_hidden) | |
rect.origin.x = rect.origin.x - 200; | |
else |
using InControl; | |
using ns3DRudder; | |
using Unity3DRudder; | |
using UnityEngine; | |
namespace Demonixis.MarsExtraction.Inputs | |
{ | |
public class RudderVirtualDevice : InputDevice | |
{ | |
private Axis m_Axis; |
// Chrome & Opera: WebKit | |
// Firefox & SeaMonkey: Mozilla | |
// IE11: Microsoft | |
// Other: Deprected Browser | |
function getVendor() { | |
var canvas = document.createElement("canvas"); | |
var gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl"); | |
return gl ? gl.getParameter(gl.VENDOR) : "Deprected Browser"; | |
} |
using UnityEngine; | |
namespace OSVR.Unity | |
{ | |
[ExecuteInEditMode] | |
[RequireComponent(typeof(Camera))] | |
public sealed class OsvrDistortion : MonoBehaviour | |
{ | |
private bool isSupported = true; | |
private Material distortionMaterial = null; |