https://github.com/lkewis/UnityKinectBoxing/blob/master/Assets/Script/CameraScript.js
https://forum.unity.com/threads/vr-cave-projection.76051/
https://gamedev.stackexchange.com/questions/35984/off-center-projection
| - install runtime 64bit: http://download.3divi.com/Nuitrack/doc/Installation_page.html#install_windows_sec | |
| - follow instructions on that page | |
| download unity package | |
| - from main page download for unity, or http://download.3divi.com/Nuitrack/NuitrackSDK.zip | |
| - unzip, import unitypackage to your project | |
| - |
| if your are using AMD EyeFinity to combine 3 screens (1280x800 each) into 1 screen (3840x800): | |
| can use shortcut with parameters to match combined screen size | |
| "your.exe" -adapter 1 -popupwindow -screen-width 3840 -screen-height 800 | |
| // from unity build settings | |
| [x] default is full screen | |
| [x] default is native resolution | |
| [ ] capture single screen | |
| [ ] resolution dialog |
| // https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity | |
| // ERROR: | |
| $ cmake .. -DBUILD_CSHARP_BINDINGS=ON -DBUILD_UNITY_BINDINGS=ON -DBUILD_SHARED_LIBS=ON -DDOTNET_VERSION_LIBRARY=3.5 -DCMAKE_GENERATOR_PLATFORM=x64 | |
| CMake Error at CMakeLists.txt:3 (project): | |
| Generator | |
| NMake Makefiles | |
| does not support platform specification, but platform |
| // https://forum.unity.com/threads/depth-texture-on-objects-materials.1439071/ | |
| Shader "Unlit/ZDepthOnly" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } |
| // Author: Przemyslaw Zaworski | |
| // Modified version of original: | |
| // https://github.com/przemyslawzaworski/Unity3D-CG-programming/blob/master/terrain_shader_tessellation_diffuse.shader | |
| // Shader supports maximum four splat textures (Splat and Normal maps) with triangle tessellation. | |
| // Works seamlessly with built-in Terrain Component. Lambert light model (directional) with shadow casting and receiving. | |
| // https://forum.unity.com/threads/how-to-dynamically-tessellate-a-mesh.597469/#post-3997999 | |
| Shader "Terrain Shader Tessellation Diffuse" | |
| { | |
| Properties |
| // https://forum.unity.com/threads/antialiasing-circle-shader.432119/#post-2796401 | |
| Shader "Unlit/Circle" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| } | |
| SubShader | |
| { | |
| Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } |
| // original source: https://github.com/wlgys8/Sprites-Outline | |
| Shader "Sprites/Outline (Marching Ants)" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
| _Color ("Tint", Color) = (1,1,1,1) | |
| [MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 |
| // https://old.reddit.com/r/Unity3D/comments/a82vcm/stop_wasting_time_while_testing_and_play_from/ | |
| using UnityEngine; | |
| using UnityEditor; | |
| [CreateAssetMenu(fileName = "PlayFromHereData")] | |
| public class PlayFromHereInitData : ScriptableObject | |
| { | |
| public GameObject[] m_arOriginPrefabs; | |
| public GameObject[] m_arPositionPrefabs; |
| // Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
| // unitycoder.com: added simple scrolling UV | |
| Shader "UI/Default-Scroll" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
| _Color ("Tint", Color) = (1,1,1,1) |