├── .gitignore ├── README.md └── Syphon Implementations ├── License.txt └── Unity3D ├── Read Me.rtf └── Unity3D-3_5 ├── Read Me.rtf ├── SyphonUnityExample ├── .gitignore ├── Assembly-CSharp-Editor-vs.csproj ├── Assembly-CSharp-Editor.csproj ├── Assembly-CSharp-Editor.pidb ├── Assembly-CSharp-firstpass-vs.csproj ├── Assembly-CSharp-firstpass.csproj ├── Assembly-CSharp-firstpass.pidb ├── Assembly-CSharp-vs.csproj ├── Assembly-CSharp.csproj ├── Assembly-UnityScript-firstpass-vs.unityproj ├── Assembly-UnityScript-firstpass.pidb ├── Assembly-UnityScript-firstpass.unityproj ├── Assets │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ ├── prop-base │ │ │ └── SyphonServerAndClient.unity.svn-base │ │ └── text-base │ │ │ ├── Editor.meta.svn-base │ │ │ ├── Plugins.meta.svn-base │ │ │ ├── Read Me.rtf.meta.svn-base │ │ │ ├── Read Me.rtf.svn-base │ │ │ ├── Resources.meta.svn-base │ │ │ ├── SyphonServerAndClient.unity.meta.svn-base │ │ │ └── SyphonServerAndClient.unity.svn-base │ ├── Editor.meta │ ├── Editor │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── entries │ │ │ └── text-base │ │ │ │ ├── SyphonEditor.cs.meta.svn-base │ │ │ │ ├── SyphonEditor.cs.svn-base │ │ │ │ ├── SyphonHelper.cs.meta.svn-base │ │ │ │ └── SyphonHelper.cs.svn-base │ │ ├── SyphonEditor.cs │ │ ├── SyphonEditor.cs.meta │ │ ├── SyphonHelper.cs │ │ └── SyphonHelper.cs.meta │ ├── New Material.mat │ ├── New Material.mat.meta │ ├── Plugins.meta │ ├── Plugins │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── entries │ │ │ └── text-base │ │ │ │ ├── MouseOrbit.js.meta.svn-base │ │ │ │ ├── MouseOrbit.js.svn-base │ │ │ │ ├── Syphon.cs.meta.svn-base │ │ │ │ ├── Syphon.cs.svn-base │ │ │ │ ├── SyphonObject.meta.svn-base │ │ │ │ ├── SyphonTexture.meta.svn-base │ │ │ │ └── SyphonUnityPlugin.bundle.meta.svn-base │ │ ├── MouseOrbit.js │ │ ├── MouseOrbit.js.meta │ │ ├── PlaneScaler.cs │ │ ├── PlaneScaler.cs.meta │ │ ├── Syphon.cs │ │ ├── Syphon.cs.meta │ │ ├── SyphonObject.meta │ │ ├── SyphonObject │ │ │ ├── .svn │ │ │ │ ├── all-wcprops │ │ │ │ ├── entries │ │ │ │ └── text-base │ │ │ │ │ ├── SyphonClientObject.cs.meta.svn-base │ │ │ │ │ ├── SyphonClientObject.cs.svn-base │ │ │ │ │ ├── SyphonServerObject.cs.meta.svn-base │ │ │ │ │ └── SyphonServerObject.cs.svn-base │ │ │ ├── SyphonClientObject.cs │ │ │ ├── SyphonClientObject.cs.meta │ │ │ ├── SyphonServerObject.cs │ │ │ └── SyphonServerObject.cs.meta │ │ ├── SyphonTexture-AdvancedUsers.meta │ │ ├── SyphonTexture-AdvancedUsers │ │ │ ├── SyphonClientTextureProjector.cs │ │ │ ├── SyphonClientTextureProjector.cs.meta │ │ │ ├── SyphonServerAlphaOne.cs │ │ │ ├── SyphonServerAlphaOne.cs.meta │ │ │ ├── SyphonServerTextureCustomResolution.cs │ │ │ ├── SyphonServerTextureCustomResolution.cs.meta │ │ │ ├── SyphonServerTextureViewRenderer.cs │ │ │ └── SyphonServerTextureViewRenderer.cs.meta │ │ ├── SyphonTexture.meta │ │ ├── SyphonTexture │ │ │ ├── .svn │ │ │ │ ├── all-wcprops │ │ │ │ ├── entries │ │ │ │ └── text-base │ │ │ │ │ ├── SyphonClientTexture.cs.meta.svn-base │ │ │ │ │ ├── SyphonClientTexture.cs.svn-base │ │ │ │ │ ├── SyphonServerTexture.cs.meta.svn-base │ │ │ │ │ └── SyphonServerTexture.cs.svn-base │ │ │ ├── SyphonClientTexture.cs │ │ │ ├── SyphonClientTexture.cs.meta │ │ │ ├── SyphonServerTexture.cs │ │ │ └── SyphonServerTexture.cs.meta │ │ ├── SyphonUnityPlugin.bundle.meta │ │ └── SyphonUnityPlugin.bundle │ │ │ ├── Contents.meta │ │ │ └── Contents │ │ │ ├── Frameworks.meta │ │ │ ├── Frameworks │ │ │ ├── Syphon.framework.meta │ │ │ └── Syphon.framework │ │ │ │ ├── Headers.meta │ │ │ │ ├── Headers │ │ │ │ ├── Syphon.h │ │ │ │ ├── Syphon.h.meta │ │ │ │ ├── SyphonClient.h │ │ │ │ ├── SyphonClient.h.meta │ │ │ │ ├── SyphonImage.h │ │ │ │ ├── SyphonImage.h.meta │ │ │ │ ├── SyphonServer.h │ │ │ │ ├── SyphonServer.h.meta │ │ │ │ ├── SyphonServerDirectory.h │ │ │ │ └── SyphonServerDirectory.h.meta │ │ │ │ ├── Resources.meta │ │ │ │ ├── Resources │ │ │ │ ├── English.lproj.meta │ │ │ │ ├── English.lproj │ │ │ │ │ ├── InfoPlist.strings │ │ │ │ │ └── InfoPlist.strings.meta │ │ │ │ ├── Info.plist │ │ │ │ └── Info.plist.meta │ │ │ │ ├── Syphon │ │ │ │ ├── Syphon.meta │ │ │ │ ├── Versions.meta │ │ │ │ └── Versions │ │ │ │ ├── A.meta │ │ │ │ ├── A │ │ │ │ ├── Headers.meta │ │ │ │ ├── Headers │ │ │ │ │ ├── Syphon.h │ │ │ │ │ ├── Syphon.h.meta │ │ │ │ │ ├── SyphonClient.h │ │ │ │ │ ├── SyphonClient.h.meta │ │ │ │ │ ├── SyphonImage.h │ │ │ │ │ ├── SyphonImage.h.meta │ │ │ │ │ ├── SyphonServer.h │ │ │ │ │ ├── SyphonServer.h.meta │ │ │ │ │ ├── SyphonServerDirectory.h │ │ │ │ │ └── SyphonServerDirectory.h.meta │ │ │ │ ├── Resources.meta │ │ │ │ ├── Resources │ │ │ │ │ ├── English.lproj.meta │ │ │ │ │ ├── English.lproj │ │ │ │ │ │ ├── InfoPlist.strings │ │ │ │ │ │ └── InfoPlist.strings.meta │ │ │ │ │ ├── Info.plist │ │ │ │ │ └── Info.plist.meta │ │ │ │ ├── Syphon │ │ │ │ └── Syphon.meta │ │ │ │ ├── Current.meta │ │ │ │ └── Current │ │ │ │ ├── Headers.meta │ │ │ │ ├── Headers │ │ │ │ ├── Syphon.h │ │ │ │ ├── Syphon.h.meta │ │ │ │ ├── SyphonClient.h │ │ │ │ ├── SyphonClient.h.meta │ │ │ │ ├── SyphonImage.h │ │ │ │ ├── SyphonImage.h.meta │ │ │ │ ├── SyphonServer.h │ │ │ │ ├── SyphonServer.h.meta │ │ │ │ ├── SyphonServerDirectory.h │ │ │ │ └── SyphonServerDirectory.h.meta │ │ │ │ ├── Resources.meta │ │ │ │ ├── Resources │ │ │ │ ├── English.lproj.meta │ │ │ │ ├── English.lproj │ │ │ │ │ ├── InfoPlist.strings │ │ │ │ │ └── InfoPlist.strings.meta │ │ │ │ ├── Info.plist │ │ │ │ └── Info.plist.meta │ │ │ │ ├── Syphon │ │ │ │ └── Syphon.meta │ │ │ ├── Info.plist │ │ │ ├── Info.plist.meta │ │ │ ├── MacOS.meta │ │ │ ├── MacOS │ │ │ ├── SyphonUnityPlugin │ │ │ └── SyphonUnityPlugin.meta │ │ │ ├── Resources.meta │ │ │ └── Resources │ │ │ ├── English.lproj.meta │ │ │ └── English.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── InfoPlist.strings.meta │ ├── Read Me.rtf │ ├── Read Me.rtf.meta │ ├── Resources.meta │ ├── Resources │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── entries │ │ │ ├── prop-base │ │ │ │ ├── syphonSupportedShader.mat.svn-base │ │ │ │ └── syphonSupportedShaderCloth.mat.svn-base │ │ │ └── text-base │ │ │ │ ├── SyphonShaders.meta.svn-base │ │ │ │ ├── syphonSupportedShader.mat.meta.svn-base │ │ │ │ ├── syphonSupportedShader.mat.svn-base │ │ │ │ ├── syphonSupportedShaderCloth.mat.meta.svn-base │ │ │ │ └── syphonSupportedShaderCloth.mat.svn-base │ │ ├── AlphaOne.mat │ │ ├── AlphaOne.mat.meta │ │ ├── AlphaOne.shader │ │ ├── AlphaOne.shader.meta │ │ ├── SyphonProjectorMaterial.mat │ │ ├── SyphonProjectorMaterial.mat.meta │ │ ├── Unlit-Safe.shader │ │ ├── Unlit-Safe.shader.meta │ │ ├── syphonSupportedShader.mat │ │ ├── syphonSupportedShader.mat.meta │ │ ├── testCustomResolutionSphere.mat │ │ └── testCustomResolutionSphere.mat.meta │ ├── SyphonServerAndClient.unity │ ├── SyphonServerAndClient.unity.meta │ ├── SyphonServerCustomResolution.unity │ └── SyphonServerCustomResolution.unity.meta ├── ProjectSettings │ ├── AudioManager.asset │ ├── DynamicsManager.asset │ ├── EditorBuildSettings.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── InputManager.asset │ ├── NavMeshAreas.asset │ ├── NavMeshLayers.asset │ ├── NetworkManager.asset │ ├── Physics2DSettings.asset │ ├── ProjectSettings.asset │ ├── ProjectVersion.txt │ ├── QualitySettings.asset │ ├── TagManager.asset │ ├── TimeManager.asset │ ├── UnityAdsSettings.asset │ └── UnityAnalyticsManager.asset ├── SyphonUnityExample-csharp.sln ├── SyphonUnityExample.sln └── SyphonUnityExample.userprefs └── SyphonUnityPlugin ├── English.lproj └── InfoPlist.strings ├── Info.plist ├── ServerWatcherUtility.mm ├── SyphonCacheData.h ├── SyphonCacheData.mm ├── SyphonClientUnity.m ├── SyphonServerObject.h ├── SyphonServerObject.mm ├── SyphonServerUnity.m ├── SyphonServerUnity.mm ├── SyphonUnity.h ├── SyphonUnity.mm ├── SyphonUnityPlugin.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── SyphonUnityPlugin.xccheckout │ └── xcuserdata │ │ ├── bc.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── bctrashcan.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── bc.xcuserdatad │ ├── xcdebugger │ └── Breakpoints.xcbkptlist │ └── xcschemes │ ├── Build Custom Framework.xcscheme │ ├── SyphonUnityPlugin.xcscheme │ └── xcschememanagement.plist ├── SyphonUnityPlugin_Prefix.pch ├── Unity ├── IUnityGraphics.h ├── IUnityGraphicsD3D11.h ├── IUnityGraphicsD3D12.h ├── IUnityGraphicsD3D9.h └── IUnityInterface.h └── UnityPluginInterface.h /.gitignore: -------------------------------------------------------------------------------- 1 | # =============== # 2 | # Unity generated # 3 | # =============== # 4 | [Tt]emp/ 5 | [Oo]bj/ 6 | [Bb]uild 7 | [Ll]ibrary/ 8 | sysinfo.txt 9 | 10 | # ===================================== # 11 | # Visual Studio / MonoDevelop generated # 12 | # ===================================== # 13 | [Ee]xported[Oo]bj/ 14 | /*.userprefs 15 | /*.csproj 16 | /*.pidb 17 | /*.suo 18 | /*.sln* 19 | /*.user 20 | /*.unityproj 21 | /*.booproj 22 | 23 | # ============ # 24 | # OS generated # 25 | # ============ # 26 | .DS_Store* 27 | ._* 28 | .Spotlight-V100 29 | .Trashes 30 | Icon? 31 | ehthumbs.db 32 | [Tt]humbs.db -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Unity3D 2 | ======= 3 | 4 | Syphon Implementation for Unity3D Pro, 4.0+ 5 | 6 | **This project is not maintained.** 7 | 8 | Consider an alternative such as [KlakSyphon](https://github.com/keijiro/KlakSyphon). 9 | -------------------------------------------------------------------------------- /Syphon Implementations/License.txt: -------------------------------------------------------------------------------- 1 | Syphon Framework and Implementations License: 2 | 3 | Copyright 2010-2011 bangnoise (Tom Butterworth) & vade (Anton Marini). 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above copyright 13 | notice, this list of conditions and the following disclaimer in the 14 | documentation and/or other materials provided with the distribution. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Read Me.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160 2 | \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} 3 | {\colortbl;\red255\green255\blue255;} 4 | \paperw11905\paperh16837\margl1440\margr1440\vieww10800\viewh8400\viewkind0 5 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 6 | 7 | \f0\fs36 \cf0 Syphon for Unity Pro 4.0 \ 8 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 9 | 10 | \fs20 \cf0 1.0 Public Beta 2 a15 11 | \fs36 \ 12 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 13 | 14 | \fs24 \cf0 \ 15 | This is an ongoing work. Please report any and all crashes/freezes, preferably including crash logs\ 16 | \ 17 | {\field{\*\fldinst{HYPERLINK "https://github.com/Syphon/Unity3D/issues"}}{\fldrslt https://github.com/Syphon/Unity3D/issues\ 18 | }}\ 19 | If Unity freezes, see {\field{\*\fldinst{HYPERLINK "http://www.thexlab.com/faqs/activitymonitor.html"}}{\fldrslt http://www.thexlab.com/faqs/activitymonitor.html}} the section entitled 'sampling a process' and send us that log.\ 20 | \ 21 | If Unity crashes, see {\field{\*\fldinst{HYPERLINK "http://echoone.com/bugreports/console.html"}}{\fldrslt http://echoone.com/bugreports/console.html}} and send the relevant log.\ 22 | \ 23 | More features to be added soon. If there's something missing that you want, let us know.\ 24 | \ 25 | 26 | \b Instructions 27 | \b0 \ 28 | \ 29 | Open the .unitypackage to import to an existing project, or simply create a new project and import the unity package into that. When creating a new project, you may want to tick the checkbox in "File/Build Settings/Player Settings/Resolution and Presentation/Run in Background." See SyphonServerAndClient.unity as the provided demo scene. \ 30 | \ 31 | Add a Syphon.cs to your main camera. this will act as your Syphon manager.\ 32 | \ 33 | 34 | \b (*For new users*) \ 35 | ---------------------- 36 | \b0 \ 37 | 38 | \b Syphon Server: 39 | \b0 \ 40 | 1) if you want to simply output the existing Unity scene camera as a syphon server, add a SyphonServerTexture to any camera in your scene. For basic setups, use this.\ 41 | \ 42 | 43 | \b Syphon Client: 44 | \b0 \ 45 | Add a SyphonClientTexture to any object in your scene.\ 46 | On the SyphonClientTexture, in the public inspector fields, add the name and appName of the client you just added.\ 47 | 48 | \b ----------------------\ 49 | 50 | \b0 \ 51 | \ 52 | 53 | \b (*For advanced users*)\ 54 | ----------------------\ 55 | Syphon Server: 56 | \b0 \ 57 | if you want to output a custom resolution video texture (i.e., 3072x768 for a triplehead, etc) add a SyphonServerTextureCustomResolution to the main camera in your scene. If you want a quick way to use Unity as a control surface, where its GUI is only visible inside the Unity app itself, additionally take a look at the code in ControlSurfaceExample. See the unity scene SyphonServerCustomResolution.unity for a demo.\ 58 | \ 59 | If you don't care about the alpha channel, and want to ensure your Syphon output texture looks the same as it does in the Unity game view, put a SyphonServerAlphaOne script on the camera.\ 60 | \ 61 | 62 | \b SyphonClient: 63 | \b0 \ 64 | if you want to use a Projector as a Syphon client, add the SyphonClientTextureProjector script to a gameObject that has a Projector on it, and then in its public inspector fields, add the name and appName of the client.\ 65 | 66 | \b ----------------------\ 67 | 68 | \b0 \ 69 | Take a look at the code in SyphonClientTexture.cs's ApplyTexture() method to see how to add additional functionality- adding the texture to projectors, bump maps, etc.\ 70 | \ 71 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2495\pardirnatural\qj 72 | \cf0 Syphon for Unity is published under a BSD license. See the included License.txt file.\ 73 | \ 74 | Syphon for Unity3D - Brian Chasalow (Unity 3D integration and scripting), Tom Butterworth (bangnoise) and Anton Marini (vade).\ 75 | \ 76 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2495\pardirnatural\qj 77 | {\field{\*\fldinst{HYPERLINK "http://syphon.v002.info"}}{\fldrslt \cf0 http://syphon.v002.info }}\ 78 | \ 79 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2495\pardirnatural\qj 80 | 81 | \b \cf0 Release Notes:\ 82 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2495\pardirnatural\qj 83 | 84 | \b0 \cf0 a15: Oculus DK2 Support 85 | \b \ 86 | 87 | \b0 a14: added a SyphonServerAlphaOne script to optionally set alpha == 1 for the Syphon Server RenderTexture.\ 88 | a13: fix SyphonClientObject issue with not rendering under rare instances due to cachedTexID == 0 89 | \b \ 90 | 91 | \b0 a12: added SyphonClientTextureProjector script, and made it so that SyphonClientTexture adds the mainTexture on all materials on a gameObject, not just the first\ 92 | a11: added a custom resolution syphon example, and fixed a rare threading issue on syphon exit or creation. \ 93 | a10: fixed a bug with OnRetireServer crashing with OpenFrameworks servers exiting.\ 94 | a9: fixed some Unity 4.2 texture creation and 64 bit issues. uses custom Syphon framework with multithreading changes.\ 95 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/Read Me.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170 2 | \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} 3 | {\colortbl;\red255\green255\blue255;} 4 | \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 5 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 6 | 7 | \f0\fs36 \cf0 Syphon for Unity Pro 4.0 \ 8 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 9 | 10 | \fs20 \cf0 1.0 Public Beta 2 a17 11 | \fs36 \ 12 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 13 | 14 | \fs24 \cf0 \ 15 | This is an ongoing work. Please report any and all crashes/freezes, preferably including crash logs\ 16 | \ 17 | {\field{\*\fldinst{HYPERLINK "https://github.com/Syphon/Unity3D/issues"}}{\fldrslt https://github.com/Syphon/Unity3D/issues\ 18 | }}\ 19 | If Unity freezes, see {\field{\*\fldinst{HYPERLINK "http://www.thexlab.com/faqs/activitymonitor.html"}}{\fldrslt http://www.thexlab.com/faqs/activitymonitor.html}} the section entitled 'sampling a process' and send us that log.\ 20 | \ 21 | If Unity crashes, see {\field{\*\fldinst{HYPERLINK "http://echoone.com/bugreports/console.html"}}{\fldrslt http://echoone.com/bugreports/console.html}} and send the relevant log.\ 22 | \ 23 | More features to be added soon. If there's something missing that you want, let us know.\ 24 | \ 25 | 26 | \b Instructions 27 | \b0 \ 28 | \ 29 | Open the .unitypackage to import to an existing project, or simply create a new project and import the unity package into that. When creating a new project, you may want to tick the checkbox in "File/Build Settings/Player Settings/Resolution and Presentation/Run in Background." See SyphonServerAndClient.unity as the provided demo scene. \ 30 | \ 31 | Add a Syphon.cs to your main camera. this will act as your Syphon manager.\ 32 | \ 33 | 34 | \b (*For new users*) \ 35 | ---------------------- 36 | \b0 \ 37 | 38 | \b Syphon Server: 39 | \b0 \ 40 | 1) if you want to simply output the existing Unity scene camera as a syphon server, add a SyphonServerTexture to any camera in your scene. For basic setups, use this.\ 41 | \ 42 | 43 | \b Syphon Client: 44 | \b0 \ 45 | Add a SyphonClientTexture to any object in your scene.\ 46 | On the SyphonClientTexture, in the public inspector fields, add the name and appName of the client you just added.\ 47 | 48 | \b ----------------------\ 49 | 50 | \b0 \ 51 | \ 52 | 53 | \b (*For advanced users*)\ 54 | ----------------------\ 55 | Syphon Server: 56 | \b0 \ 57 | if you want to output a custom resolution video texture (i.e., 3072x768 for a triplehead, etc) add a SyphonServerTextureCustomResolution to the main camera in your scene. If you want a quick way to use Unity as a control surface, where its GUI is only visible inside the Unity app itself, additionally take a look at the code in ControlSurfaceExample. See the unity scene SyphonServerCustomResolution.unity for a demo.\ 58 | \ 59 | If you don't care about the alpha channel, and want to ensure your Syphon output texture looks the same as it does in the Unity game view, put a SyphonServerAlphaOne script on the camera.\ 60 | \ 61 | 62 | \b SyphonClient: 63 | \b0 \ 64 | if you want to use a Projector as a Syphon client, add the SyphonClientTextureProjector script to a gameObject that has a Projector on it, and then in its public inspector fields, add the name and appName of the client.\ 65 | 66 | \b ----------------------\ 67 | 68 | \b0 \ 69 | Take a look at the code in SyphonClientTexture.cs's ApplyTexture() method to see how to add additional functionality- adding the texture to projectors, bump maps, etc.\ 70 | \ 71 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 72 | \cf0 Syphon for Unity is published under a BSD license. See the included License.txt file.\ 73 | \ 74 | Syphon for Unity3D - Brian Chasalow (Unity 3D integration and scripting), Tom Butterworth (bangnoise) and Anton Marini (vade).\ 75 | \ 76 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 77 | {\field{\*\fldinst{HYPERLINK "http://syphon.v002.info"}}{\fldrslt \cf0 http://syphon.v002.info }}\ 78 | \ 79 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 80 | 81 | \b \cf0 Release Notes:\ 82 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 83 | 84 | \b0 \cf0 a17: fixes for Unity 5.2 using new plugin API, avoids flickering 85 | \b \ 86 | 87 | \b0 a16: bugfix for Oculus support in builds 88 | \b \ 89 | 90 | \b0 a15: Oculus DK2 Support 91 | \b \ 92 | 93 | \b0 a14: added a SyphonServerAlphaOne script to optionally set alpha == 1 for the Syphon Server RenderTexture.\ 94 | a13: fix SyphonClientObject issue with not rendering under rare instances due to cachedTexID == 0 95 | \b \ 96 | 97 | \b0 a12: added SyphonClientTextureProjector script, and made it so that SyphonClientTexture adds the mainTexture on all materials on a gameObject, not just the first\ 98 | a11: added a custom resolution syphon example, and fixed a rare threading issue on syphon exit or creation. \ 99 | a10: fixed a bug with OnRetireServer crashing with OpenFrameworks servers exiting.\ 100 | a9: fixed some Unity 4.2 texture creation and 64 bit issues. uses custom Syphon framework with multithreading changes.\ 101 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/.gitignore: -------------------------------------------------------------------------------- 1 | # =============== # 2 | # Unity generated # 3 | # =============== # 4 | [Tt]emp/ 5 | [Oo]bj/ 6 | [Bb]uild 7 | [Ll]ibrary/ 8 | sysinfo.txt 9 | 10 | # ===================================== # 11 | # Visual Studio / MonoDevelop generated # 12 | # ===================================== # 13 | [Ee]xported[Oo]bj/ 14 | /*.userprefs 15 | /*.csproj 16 | /*.pidb 17 | /*.suo 18 | /*.sln* 19 | /*.user 20 | /*.unityproj 21 | /*.booproj 22 | 23 | # ============ # 24 | # OS generated # 25 | # ============ # 26 | .DS_Store* 27 | ._* 28 | .Spotlight-V100 29 | .Trashes 30 | Icon? 31 | ehthumbs.db 32 | [Tt]humbs.db -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-CSharp-Editor.pidb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-CSharp-Editor.pidb -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-CSharp-firstpass-vs.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {07E29774-1106-A413-B191-A84496C1A826} 9 | Library 10 | Properties 11 | 12 | Assembly-CSharp-firstpass 13 | v3.5 14 | 512 15 | Assets 16 | 17 | 18 | true 19 | full 20 | false 21 | Temp\bin\Debug\ 22 | DEBUG;TRACE;UNITY_5_0_2;UNITY_5_0;UNITY_5;ENABLE_LICENSE_RENAME;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_NEW_HIERARCHY;ENABLE_PHYSICS;ENABLE_PHYSICS_PHYSX3;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_AUDIOMIXER_SUSPEND;ENABLE_NONPRO;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;UNITY_STANDALONE_OSX;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_GAMECENTER;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_MONO;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_OSX;UNITY_TEAM_LICENSE;UNITY_PRO_LICENSE 23 | prompt 24 | 4 25 | 0169 26 | 27 | 28 | pdbonly 29 | true 30 | Temp\bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 0169 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll 43 | 44 | 45 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | /Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 62 | 63 | 64 | /Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/UnityEditor.iOS.Extensions.Xcode.dll 65 | 66 | 67 | 68 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-CSharp-firstpass.pidb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-CSharp-firstpass.pidb -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-CSharp-vs.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {2561C0E7-48DF-F225-92BB-25F8382C13DC} 9 | Library 10 | Properties 11 | 12 | Assembly-CSharp 13 | v3.5 14 | 512 15 | Assets 16 | 17 | 18 | true 19 | full 20 | false 21 | Temp\bin\Debug\ 22 | DEBUG;TRACE;UNITY_5_0_2;UNITY_5_0;UNITY_5;ENABLE_LICENSE_RENAME;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_NEW_HIERARCHY;ENABLE_PHYSICS;ENABLE_PHYSICS_PHYSX3;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_AUDIOMIXER_SUSPEND;ENABLE_NONPRO;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;UNITY_STANDALONE_OSX;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_GAMECENTER;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_MONO;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_OSX;UNITY_TEAM_LICENSE;UNITY_PRO_LICENSE 23 | prompt 24 | 4 25 | 0169 26 | 27 | 28 | pdbonly 29 | true 30 | Temp\bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 0169 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll 43 | 44 | 45 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | /Users/bc/SyphonUnity3D/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll 53 | 54 | 55 | /Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 56 | 57 | 58 | /Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/UnityEditor.iOS.Extensions.Xcode.dll 59 | 60 | 61 | 62 | 63 | {07E29774-1106-A413-B191-A84496C1A826} Assembly-CSharp-firstpass-vs 64 | 65 | 66 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-CSharp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {2561C0E7-48DF-F225-92BB-25F8382C13DC} 9 | Library 10 | Properties 11 | 12 | Assembly-CSharp 13 | v3.5 14 | 512 15 | Assets 16 | 17 | 18 | true 19 | full 20 | false 21 | Temp\bin\Debug\ 22 | DEBUG;TRACE;UNITY_5_0_2;UNITY_5_0;UNITY_5;ENABLE_LICENSE_RENAME;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_NEW_HIERARCHY;ENABLE_PHYSICS;ENABLE_PHYSICS_PHYSX3;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_AUDIOMIXER_SUSPEND;ENABLE_NONPRO;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;UNITY_STANDALONE_OSX;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_GAMECENTER;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_MONO;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_OSX;UNITY_TEAM_LICENSE;UNITY_PRO_LICENSE 23 | prompt 24 | 4 25 | 0169 26 | 27 | 28 | pdbonly 29 | true 30 | Temp\bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 0169 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll 43 | 44 | 45 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | /Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 53 | 54 | 55 | /Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/UnityEditor.iOS.Extensions.Xcode.dll 56 | 57 | 58 | 59 | 60 | {07E29774-1106-A413-B191-A84496C1A826} Assembly-CSharp-firstpass 61 | 62 | {B30B13C1-75C0-ED69-8845-77B43C45BBE6} Assembly-UnityScript-firstpass 63 | 64 | 65 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-UnityScript-firstpass-vs.unityproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {B30B13C1-75C0-ED69-8845-77B43C45BBE6} 9 | Library 10 | Properties 11 | 12 | Assembly-UnityScript-firstpass 13 | v3.5 14 | 512 15 | Assets 16 | 17 | 18 | true 19 | full 20 | false 21 | Temp\bin\Debug\ 22 | DEBUG;TRACE;UNITY_5_0_2;UNITY_5_0;UNITY_5;ENABLE_LICENSE_RENAME;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_NEW_HIERARCHY;ENABLE_PHYSICS;ENABLE_PHYSICS_PHYSX3;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_AUDIOMIXER_SUSPEND;ENABLE_NONPRO;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;UNITY_STANDALONE_OSX;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_GAMECENTER;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_MONO;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_OSX;UNITY_TEAM_LICENSE;UNITY_PRO_LICENSE 23 | prompt 24 | 4 25 | 0169 26 | 27 | 28 | pdbonly 29 | true 30 | Temp\bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 0169 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll 43 | 44 | 45 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | /Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 53 | 54 | 55 | /Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/UnityEditor.iOS.Extensions.Xcode.dll 56 | 57 | 58 | 59 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-UnityScript-firstpass.pidb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-UnityScript-firstpass.pidb -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assembly-UnityScript-firstpass.unityproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {B30B13C1-75C0-ED69-8845-77B43C45BBE6} 9 | Library 10 | Properties 11 | 12 | Assembly-UnityScript-firstpass 13 | v3.5 14 | 512 15 | Assets 16 | 17 | 18 | true 19 | full 20 | false 21 | Temp\bin\Debug\ 22 | DEBUG;TRACE;UNITY_5_0_2;UNITY_5_0;UNITY_5;ENABLE_LICENSE_RENAME;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_NEW_HIERARCHY;ENABLE_PHYSICS;ENABLE_PHYSICS_PHYSX3;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_AUDIOMIXER_SUSPEND;ENABLE_NONPRO;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;UNITY_STANDALONE_OSX;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_GAMECENTER;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_MONO;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_OSX;UNITY_TEAM_LICENSE;UNITY_PRO_LICENSE 23 | prompt 24 | 4 25 | 0169 26 | 27 | 28 | pdbonly 29 | true 30 | Temp\bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 0169 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll 43 | 44 | 45 | /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll 46 | 47 | 48 | 49 | 50 | 51 | 52 | /Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 53 | 54 | 55 | /Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/UnityEditor.iOS.Extensions.Xcode.dll 56 | 57 | 58 | 59 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 94 4 | /svn/!svn/ver/222/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets 5 | END 6 | Resources.meta 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 109 10 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources.meta 11 | END 12 | SyphonServerAndClient.unity 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 122 16 | /svn/!svn/ver/227/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerAndClient.unity 17 | END 18 | SyphonServerAndClient.unity.meta 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 127 22 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerAndClient.unity.meta 23 | END 24 | Plugins.meta 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 107 28 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins.meta 29 | END 30 | Read Me.rtf 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 108 34 | /svn/!svn/ver/229/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Read%20Me.rtf 35 | END 36 | Editor.meta 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 106 40 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor.meta 41 | END 42 | Read Me.rtf.meta 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 113 46 | /svn/!svn/ver/229/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Read%20Me.rtf.meta 47 | END 48 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 222 5 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets 6 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn 7 | 8 | 9 | 10 | 2013-07-13T21:04:46.748055Z 11 | 222 12 | connectbrian@gmail.com 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | b9cd2c10-50e7-8ebe-7bf3-e45c7195435b 28 | 29 | Resources.meta 30 | file 31 | 32 | 33 | 34 | 35 | 2013-02-23T00:50:50.000000Z 36 | 3c967aa6441824ff6ef6fbdfd7e6064f 37 | 2012-03-26T01:11:35.488500Z 38 | 164 39 | bangnoise 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 60 62 | 63 | SyphonServerAndClient.unity 64 | file 65 | 227 66 | 67 | 68 | 69 | 2013-07-14T05:38:29.000000Z 70 | fd92e94d34f04487be60ed694404d3aa 71 | 2013-07-14T05:40:41.608472Z 72 | 227 73 | connectbrian@gmail.com 74 | has-props 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 41528 96 | 97 | Plugins 98 | dir 99 | 100 | SyphonServerAndClient.unity.meta 101 | file 102 | 103 | 104 | 105 | 106 | 2013-02-23T00:50:50.000000Z 107 | 7224a8219bb95b12ff562432e26162f5 108 | 2012-03-26T01:11:35.488500Z 109 | 164 110 | bangnoise 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 60 133 | 134 | Editor 135 | dir 136 | 137 | Plugins.meta 138 | file 139 | 140 | 141 | 142 | 143 | 2013-02-23T00:50:50.000000Z 144 | 86f19a7b8f813336c50222c66e59ad78 145 | 2012-03-26T01:11:35.488500Z 146 | 164 147 | bangnoise 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 60 170 | 171 | Read Me.rtf 172 | file 173 | 229 174 | 175 | 176 | 177 | 2013-07-14T05:39:48.000000Z 178 | 8b2d3044cb2e3f37ac6dea6c8f2a536a 179 | 2013-07-14T05:41:17.413027Z 180 | 229 181 | connectbrian@gmail.com 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 2684 204 | 205 | Resources 206 | dir 207 | 208 | Editor.meta 209 | file 210 | 211 | 212 | 213 | 214 | 2013-02-23T00:50:50.000000Z 215 | 52166d366733c6d09fb016644aa8eed8 216 | 2012-03-26T01:11:35.488500Z 217 | 164 218 | bangnoise 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 60 241 | 242 | Read Me.rtf.meta 243 | file 244 | 229 245 | 246 | 247 | 248 | 2013-07-12T21:58:26.000000Z 249 | 60369ca04853d17d1acf539aaf42d251 250 | 2013-07-14T05:41:17.413027Z 251 | 229 252 | connectbrian@gmail.com 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 90 275 | 276 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/prop-base/SyphonServerAndClient.unity.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/Editor.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c17749324f11c4ee699fe14040e6cede 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/Plugins.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fea9c7c417c747829db5502aaed08bb 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/Read Me.rtf.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e63217e0b97304c1ab3ca647d34e9391 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/Read Me.rtf.svn-base: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390 2 | \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} 3 | {\colortbl;\red255\green255\blue255;} 4 | \paperw11904\paperh16836\margl1440\margr1440\vieww10800\viewh8400\viewkind0 5 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 6 | 7 | \f0\fs36 \cf0 Syphon for Unity Pro 4.0 \ 8 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 9 | 10 | \fs20 \cf0 1.0 Public Beta 2 a8 11 | \fs36 \ 12 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 13 | 14 | \fs24 \cf0 \ 15 | This is an ongoing work. Please report any and all crashes/freezes, preferably including crash logs\ 16 | \ 17 | {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/syphon-implementations/issues"}}{\fldrslt http://code.google.com/p/syphon-implementations/issues}}\ 18 | \ 19 | If Unity freezes, see {\field{\*\fldinst{HYPERLINK "http://www.thexlab.com/faqs/activitymonitor.html"}}{\fldrslt http://www.thexlab.com/faqs/activitymonitor.html}} the section entitled 'sampling a process' and send us that log.\ 20 | \ 21 | If Unity crashes, see {\field{\*\fldinst{HYPERLINK "http://echoone.com/bugreports/console.html"}}{\fldrslt http://echoone.com/bugreports/console.html}} and send the relevant log.\ 22 | \ 23 | More features to be added soon. If there's something missing that you want, let us know.\ 24 | \ 25 | 26 | \b Instructions 27 | \b0 \ 28 | \ 29 | Open the .unitypackage to import to an existing project, or simply create a new project and import the unity package into that. See SyphonServerAndClient.unity as the provided demo scene.\ 30 | \ 31 | Add a Syphon.cs to your main camera. this will act as your Syphon manager.\ 32 | \ 33 | Syphon Server:\ 34 | Add a SyphonServerTexture to any camera in your scene. \ 35 | \ 36 | Syphon Client: \ 37 | Add a SyphonClientTexture to any object in your scene.\ 38 | On the SyphonClientTexture, in the public inspector fields, add the name and appName of the client you just added.\ 39 | \ 40 | Take a look at the code in SyphonClientTexture.cs's ApplyTexture() method to see how to add additional functionality- adding the texture to projectors, bump maps, etc.\ 41 | \ 42 | \ 43 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2496\pardirnatural\qj 44 | \cf0 Syphon for Unity is published under a BSD license. See the included License.txt file.\ 45 | \ 46 | Syphon for Unity3D - Brian Chasalow (Unity 3D integration and scripting), Tom Butterworth (bangnoise) and Anton Marini (vade).\ 47 | \ 48 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2496\pardirnatural\qj 49 | {\field{\*\fldinst{HYPERLINK "http://syphon.v002.info"}}{\fldrslt \cf0 http://syphon.v002.info }}\ 50 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/Resources.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e38bb4fab40394924bf931c555d98ab4 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/SyphonServerAndClient.unity.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f881a3132a1d24b06acd0b34bdefbb50 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/SyphonServerAndClient.unity.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/.svn/text-base/SyphonServerAndClient.unity.svn-base -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c17749324f11c4ee699fe14040e6cede 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 101 4 | /svn/!svn/ver/220/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor 5 | END 6 | SyphonEditor.cs.meta 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 122 10 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/SyphonEditor.cs.meta 11 | END 12 | SyphonHelper.cs 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 117 16 | /svn/!svn/ver/208/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/SyphonHelper.cs 17 | END 18 | SyphonHelper.cs.meta 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 122 22 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/SyphonHelper.cs.meta 23 | END 24 | SyphonEditor.cs 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 117 28 | /svn/!svn/ver/220/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/SyphonEditor.cs 29 | END 30 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 222 5 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor 6 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn 7 | 8 | 9 | 10 | 2013-07-12T22:00:14.731571Z 11 | 220 12 | connectbrian@gmail.com 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | b9cd2c10-50e7-8ebe-7bf3-e45c7195435b 28 | 29 | SyphonEditor.cs.meta 30 | file 31 | 32 | 33 | 34 | 35 | 2013-02-23T00:56:03.000000Z 36 | c2601262befc7e01bfc391c6716b6f1e 37 | 2012-03-26T01:11:35.488500Z 38 | 164 39 | bangnoise 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 165 62 | 63 | SyphonHelper.cs 64 | file 65 | 66 | 67 | 68 | 69 | 2013-02-23T01:23:21.000000Z 70 | 57cdf47dcc3d91b99c0c0ac59b3d8353 71 | 2013-02-23T01:20:44.477313Z 72 | 208 73 | connectbrian@gmail.com 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 1980 96 | 97 | SyphonHelper.cs.meta 98 | file 99 | 100 | 101 | 102 | 103 | 2013-02-23T00:56:03.000000Z 104 | 087bf66d67a309cf2089e23ee2e44223 105 | 2012-03-26T01:11:35.488500Z 106 | 164 107 | bangnoise 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 165 130 | 131 | SyphonEditor.cs 132 | file 133 | 134 | 135 | 136 | 137 | 2013-07-12T21:47:53.000000Z 138 | 49999a9771b493c935252c93dbbc8aea 139 | 2013-07-12T22:00:14.731571Z 140 | 220 141 | connectbrian@gmail.com 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 8621 164 | 165 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/.svn/text-base/SyphonEditor.cs.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13f6ef132a5884608a2c2c3405a9f0e0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/.svn/text-base/SyphonHelper.cs.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3ccbabcfa34444759dae9edb91f1ef9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/.svn/text-base/SyphonHelper.cs.svn-base: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2012 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 2 | /* 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in the 13 | documentation and/or other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | using UnityEngine; 27 | using UnityEditor; 28 | 29 | [InitializeOnLoad] 30 | public class AutorunSyphon 31 | { 32 | static AutorunSyphon() 33 | { 34 | //only cache the assembly/update the instance/etc if the syphon instance already exists in the scene 35 | if(UnityEngine.Object.FindObjectOfType(typeof(Syphon)) != null){ 36 | 37 | if(!Syphon.assemblyIsUpdated()) 38 | Syphon.cacheAssembly(); 39 | 40 | EditorApplication.update += myUpdate; 41 | } 42 | 43 | } 44 | 45 | public static void myUpdate(){ 46 | if(!Application.isPlaying && !Syphon.Instance.Initialized){ 47 | Syphon.Instance.Awake(); 48 | EditorApplication.update -=myUpdate; 49 | } 50 | } 51 | 52 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/SyphonEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13f6ef132a5884608a2c2c3405a9f0e0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/SyphonHelper.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2012 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 2 | /* 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in the 13 | documentation and/or other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | using UnityEngine; 27 | using UnityEditor; 28 | 29 | [InitializeOnLoad] 30 | public class AutorunSyphon 31 | {// 32 | static AutorunSyphon() 33 | { 34 | //only cache the assembly/update the instance/etc if the syphon instance already exists in the scene 35 | //but, using registered syphon clients/server scripts instead of 'finding' them in the scene. this is faster. 36 | if(UnityEngine.Object.FindObjectOfType(typeof(SyphonServerTexture)) != null || 37 | UnityEngine.Object.FindObjectOfType(typeof(SyphonClientTexture)) != null){ 38 | // if(Syphon.syphonScriptCount > 0){ 39 | if(!Syphon.assemblyIsUpdated()) 40 | Syphon.cacheAssembly(); 41 | 42 | EditorApplication.update += myUpdate; 43 | } 44 | } 45 | 46 | public static void myUpdate(){ 47 | if(!Application.isPlaying && !Syphon.Instance.Initialized){ 48 | Syphon.Instance.Awake(); 49 | EditorApplication.update -=myUpdate; 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Editor/SyphonHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3ccbabcfa34444759dae9edb91f1ef9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/New Material.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/New Material.mat -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/New Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f8cb8f6bcc664d5eae141da2dedfe01 3 | timeCreated: 1433827449 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fea9c7c417c747829db5502aaed08bb 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 102 4 | /svn/!svn/ver/220/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins 5 | END 6 | MouseOrbit.js 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 116 10 | /svn/!svn/ver/160/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/MouseOrbit.js 11 | END 12 | Syphon.cs 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 112 16 | /svn/!svn/ver/227/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/Syphon.cs 17 | END 18 | SyphonUnityPlugin.bundle.meta 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 132 22 | /svn/!svn/ver/206/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle.meta 23 | END 24 | SyphonTexture.meta 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 121 28 | /svn/!svn/ver/206/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture.meta 29 | END 30 | MouseOrbit.js.meta 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 121 34 | /svn/!svn/ver/206/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/MouseOrbit.js.meta 35 | END 36 | Syphon.cs.meta 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 117 40 | /svn/!svn/ver/206/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/Syphon.cs.meta 41 | END 42 | SyphonObject.meta 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 120 46 | /svn/!svn/ver/206/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject.meta 47 | END 48 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 222 5 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins 6 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn 7 | 8 | 9 | 10 | 2013-07-12T22:00:14.731571Z 11 | 220 12 | connectbrian@gmail.com 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | b9cd2c10-50e7-8ebe-7bf3-e45c7195435b 28 | 29 | readme.txt.meta 30 | file 31 | 228 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | deleted 52 | 53 | SyphonTexture 54 | dir 55 | 56 | MouseOrbit.js 57 | file 58 | 59 | 60 | 61 | 62 | 2013-07-03T01:15:59.000000Z 63 | 80076b5cf2efc87e11c756029005bfda 64 | 2012-03-25T18:50:20.934578Z 65 | 160 66 | bangnoise 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 1046 89 | 90 | Syphon.cs 91 | file 92 | 227 93 | 94 | 95 | 96 | 2013-07-14T05:15:18.000000Z 97 | 722c036638b9a583cfe576f9782b178f 98 | 2013-07-14T05:40:41.608472Z 99 | 227 100 | connectbrian@gmail.com 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 20060 123 | 124 | SyphonUnityPlugin.bundle.meta 125 | file 126 | 127 | 128 | 129 | 130 | 2012-12-10T15:48:05.000000Z 131 | 783dfcb0034fd4161bfae9ce9d531f17 132 | 2013-02-23T01:18:08.075615Z 133 | 206 134 | connectbrian@gmail.com 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 90 157 | 158 | SyphonTexture.meta 159 | file 160 | 161 | 162 | 163 | 164 | 2013-02-23T00:51:51.000000Z 165 | 11038773a7303a9ab7131c008901d973 166 | 2013-02-23T01:18:08.075615Z 167 | 206 168 | connectbrian@gmail.com 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 90 191 | 192 | SyphonObject 193 | dir 194 | 195 | MouseOrbit.js.meta 196 | file 197 | 198 | 199 | 200 | 201 | 2013-02-23T00:51:53.000000Z 202 | 9a1503a433593a0445c679eced658638 203 | 2013-02-23T01:18:08.075615Z 204 | 206 205 | connectbrian@gmail.com 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 178 228 | 229 | Syphon.cs.meta 230 | file 231 | 232 | 233 | 234 | 235 | 2013-02-23T00:51:51.000000Z 236 | 1125f43934dc447394106a7124dfbfe9 237 | 2013-02-23T01:18:08.075615Z 238 | 206 239 | connectbrian@gmail.com 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 180 262 | 263 | readme.txt 264 | file 265 | 228 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | deleted 286 | 287 | SyphonObject.meta 288 | file 289 | 290 | 291 | 292 | 293 | 2013-02-23T00:51:51.000000Z 294 | 2f2fc7029bfbf9aaca70620df59c8085 295 | 2013-02-23T01:18:08.075615Z 296 | 206 297 | connectbrian@gmail.com 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 90 320 | 321 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/text-base/MouseOrbit.js.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2c89b0fd1f7a42a98ed77dd0400ac8c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/text-base/MouseOrbit.js.svn-base: -------------------------------------------------------------------------------- 1 | var target : Transform; 2 | var distance = 10.0; 3 | 4 | var xSpeed = 250.0; 5 | var ySpeed = 120.0; 6 | 7 | var yMinLimit = -20; 8 | var yMaxLimit = 80; 9 | 10 | private var x = 0.0; 11 | private var y = 0.0; 12 | 13 | @script AddComponentMenu("Camera-Control/Mouse Orbit") 14 | 15 | function Start () { 16 | var angles = transform.eulerAngles; 17 | x = angles.y; 18 | y = angles.x; 19 | 20 | // Make the rigid body not change rotation 21 | if (rigidbody) 22 | rigidbody.freezeRotation = true; 23 | } 24 | 25 | function LateUpdate () { 26 | if (target) { 27 | x += Input.GetAxis("Mouse X") * xSpeed * 0.02; 28 | y -= Input.GetAxis("Mouse Y") * ySpeed * 0.02; 29 | 30 | y = ClampAngle(y, yMinLimit, yMaxLimit); 31 | 32 | var rotation = Quaternion.Euler(y, x, 0); 33 | var position = rotation * Vector3(0.0, 0.0, -distance) + target.position; 34 | 35 | transform.rotation = rotation; 36 | transform.position = position; 37 | } 38 | } 39 | 40 | static function ClampAngle (angle : float, min : float, max : float) { 41 | if (angle < -360) 42 | angle += 360; 43 | if (angle > 360) 44 | angle -= 360; 45 | return Mathf.Clamp (angle, min, max); 46 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/text-base/Syphon.cs.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8313647243af146dab989a31c1f04de1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 100 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/text-base/SyphonObject.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbb56b6d95b8c43abaa3c58c676cb2f8 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/text-base/SyphonTexture.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecd2b1b7e30554d21b58e02870669cc7 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/.svn/text-base/SyphonUnityPlugin.bundle.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3e823ec6844b461091123d8d7dd19c9 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/MouseOrbit.js: -------------------------------------------------------------------------------- 1 | var target : Transform; 2 | var distance = 10.0; 3 | 4 | var xSpeed = 250.0; 5 | var ySpeed = 120.0; 6 | 7 | var yMinLimit = -20; 8 | var yMaxLimit = 80; 9 | 10 | private var x = 0.0; 11 | private var y = 0.0; 12 | 13 | @script AddComponentMenu("Camera-Control/Mouse Orbit") 14 | 15 | function Start () { 16 | var angles = transform.eulerAngles; 17 | x = angles.y; 18 | y = angles.x; 19 | 20 | // Make the rigid body not change rotation 21 | if (GetComponent.()) 22 | GetComponent.().freezeRotation = true; 23 | } 24 | 25 | function LateUpdate () { 26 | if (target) { 27 | x += Input.GetAxis("Mouse X") * xSpeed * 0.02; 28 | y -= Input.GetAxis("Mouse Y") * ySpeed * 0.02; 29 | 30 | y = ClampAngle(y, yMinLimit, yMaxLimit); 31 | 32 | var rotation = Quaternion.Euler(y, x, 0); 33 | var position = rotation * Vector3(0.0, 0.0, -distance) + target.position; 34 | 35 | transform.rotation = rotation; 36 | transform.position = position; 37 | } 38 | } 39 | 40 | static function ClampAngle (angle : float, min : float, max : float) { 41 | if (angle < -360) 42 | angle += 360; 43 | if (angle > 360) 44 | angle -= 360; 45 | return Mathf.Clamp (angle, min, max); 46 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/MouseOrbit.js.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2c89b0fd1f7a42a98ed77dd0400ac8c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/PlaneScaler.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class PlaneScaler : MonoBehaviour { 5 | 6 | // Copyright 2011-2013 Brian Chasalow & Anton Marini - brian@chasalow.com - All Rights Reserved. 7 | 8 | //simply scales a square-sized gameObject based on the dimensions given 9 | public void UpdateAspectRatio(Vector2 texWidthHeight){ 10 | //if you just want a simple way to resize a mesh, use the following. 11 | float aspectRatio = 0.0f; 12 | float myWidth, myHeight; 13 | if(texWidthHeight.x >= texWidthHeight.y){ 14 | aspectRatio = texWidthHeight.y/(float)texWidthHeight.x; 15 | myWidth = 1; 16 | myHeight = aspectRatio; 17 | transform.localScale = new Vector3(myWidth, 1, myHeight); 18 | } 19 | 20 | //weird tall movie 21 | else{ 22 | aspectRatio = texWidthHeight.x/(float)texWidthHeight.y; 23 | myHeight = 1; 24 | myWidth = aspectRatio; 25 | transform.localScale = new Vector3(myWidth, 1, myHeight); 26 | } 27 | } 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/PlaneScaler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35b9f1b25b60e4d298b97d16e243a83d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/Syphon.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8313647243af146dab989a31c1f04de1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 100 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbb56b6d95b8c43abaa3c58c676cb2f8 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 115 4 | /svn/!svn/ver/220/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject 5 | END 6 | SyphonClientObject.cs.meta 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 142 10 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/SyphonClientObject.cs.meta 11 | END 12 | SyphonServerObject.cs 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 137 16 | /svn/!svn/ver/160/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/SyphonServerObject.cs 17 | END 18 | SyphonServerObject.cs.meta 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 142 22 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/SyphonServerObject.cs.meta 23 | END 24 | SyphonClientObject.cs 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 137 28 | /svn/!svn/ver/227/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/SyphonClientObject.cs 29 | END 30 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 222 5 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject 6 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn 7 | 8 | 9 | 10 | 2013-07-12T22:00:14.731571Z 11 | 220 12 | connectbrian@gmail.com 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | b9cd2c10-50e7-8ebe-7bf3-e45c7195435b 28 | 29 | SyphonClientObject.cs.meta 30 | file 31 | 32 | 33 | 34 | 35 | 2012-12-05T07:39:14.000000Z 36 | 9897283617dcd8dffce562afa0e070d4 37 | 2012-03-26T01:11:35.488500Z 38 | 164 39 | bangnoise 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 167 62 | 63 | SyphonServerObject.cs 64 | file 65 | 66 | 67 | 68 | 69 | 2012-12-05T07:39:14.000000Z 70 | f750ffb66df35b4d8639b985db0a3956 71 | 2012-03-25T18:50:20.934578Z 72 | 160 73 | bangnoise 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 4977 96 | 97 | SyphonServerObject.cs.meta 98 | file 99 | 100 | 101 | 102 | 103 | 2012-12-05T07:39:14.000000Z 104 | 896ebc4325acc7897772edebed75a46d 105 | 2012-03-26T01:11:35.488500Z 106 | 164 107 | bangnoise 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 165 130 | 131 | SyphonClientObject.cs 132 | file 133 | 227 134 | 135 | 136 | 137 | 2013-07-14T05:33:53.000000Z 138 | 0e85f642c6adac6192227e07b92555f1 139 | 2013-07-14T05:40:41.608472Z 140 | 227 141 | connectbrian@gmail.com 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 8535 164 | 165 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/.svn/text-base/SyphonClientObject.cs.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aff0472c1844e4b93b8708b961ad5f0e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 100 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/.svn/text-base/SyphonServerObject.cs.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08e1c669bce4d43c188605e6d35c50b5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/SyphonClientObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aff0472c1844e4b93b8708b961ad5f0e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 100 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonObject/SyphonServerObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08e1c669bce4d43c188605e6d35c50b5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c91ef0ee948894ac6b4a0fa1a74367ae 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonClientTextureProjector.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2012 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 2 | /* 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in the 13 | documentation and/or other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | 27 | 28 | //This script should be applied to any object in the scene, and lets you attach a syphon client texture to any Unity object. 29 | //You may modify the ApplyTexture() method as necessary, to handle projectors, bump maps, etc. 30 | using UnityEngine; 31 | using System.Collections; 32 | 33 | public class SyphonClientTextureProjector : SyphonClientTexture { 34 | // Use this for initialization 35 | [SerializeField] 36 | private Material projectorMaterial; 37 | 38 | public override void ApplyTexture(){ 39 | if(clientObject != null && clientObject.Initialized){ 40 | Projector proj = GetComponent(); 41 | if(proj != null && projectorMaterial != null){ 42 | proj.material = projectorMaterial; 43 | proj.material.SetTexture ("_ShadowTex", clientObject.AttachedTexture); 44 | clientObject.AttachedTexture.wrapMode = TextureWrapMode.Clamp; 45 | } 46 | 47 | } 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonClientTextureProjector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ed776afc471146b7b3198cd0188fb7e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: 6 | - projectorMaterial: {fileID: 2100000, guid: 52a1cf6eec0cc4f64bd6dfc9a3e8fe14, type: 2} 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonServerAlphaOne.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class SyphonServerAlphaOne : MonoBehaviour { 5 | 6 | public Material alphaOneMat; 7 | // Use this for initialization 8 | void Start () { 9 | if(!alphaOneMat){ 10 | alphaOneMat = new Material(Shader.Find ("Syphon/AlphaOne")); 11 | } 12 | } 13 | 14 | // Update is called once per frame 15 | void OnRenderImage (RenderTexture src, RenderTexture dst) { 16 | Syphon.SafeMaterial.SetPass (0); 17 | Graphics.Blit (src, dst, alphaOneMat); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonServerAlphaOne.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8a30237ba81d49b691c092d951a1230 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: 6 | - alphaOneMat: {fileID: 2100000, guid: fe1d24430150e4b91acf91e61e93a083, type: 2} 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonServerTextureCustomResolution.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System; 4 | using System.Text; 5 | using System.Net; 6 | using System.Net.Sockets; 7 | using System.IO; 8 | using System.Runtime.InteropServices; 9 | using System.Collections.Generic; 10 | 11 | public class SyphonServerTextureCustomResolution : SyphonServerTexture { 12 | [HideInInspector] 13 | public RenderTexture customRenderTexture; 14 | 15 | public int renderWidth = 1920; 16 | public int renderHeight = 1080; 17 | 18 | private int _renderWidth; 19 | private int _renderHeight; 20 | 21 | public bool renderMe = true; 22 | private bool _renderMe = false; 23 | 24 | 25 | public delegate void CreatedRenderTextureEvent(RenderTexture tex); 26 | public event CreatedRenderTextureEvent CreatedRenderTexture; 27 | 28 | public Camera cameraInstance; 29 | private bool showCameraDebugOnce = false; 30 | public override void Start(){ 31 | base.Start(); 32 | 33 | if(cameraInstance == null) 34 | cameraInstance = gameObject.GetComponent(); 35 | 36 | createOrResizeRenderTexture(); 37 | 38 | 39 | 40 | TestIfShouldRender(); 41 | 42 | } 43 | 44 | public void TestIfShouldRender(){ 45 | _renderMe = renderMe; 46 | SyphonServerTextureViewRenderer rend = GetComponent(); 47 | if(rend){ 48 | if(!renderMe) 49 | Destroy(rend); 50 | } 51 | else{ 52 | if(renderMe){ 53 | gameObject.AddComponent(); 54 | } 55 | } 56 | 57 | } 58 | 59 | public void createOrResizeRenderTexture(){ 60 | if(!testCameraExists()){ 61 | return; 62 | } 63 | 64 | //if the render texture exists already, release it, and resize it. 65 | if(customRenderTexture != null){ 66 | RenderTexture.active = null; 67 | 68 | if(cameraInstance.targetTexture != null) 69 | cameraInstance.targetTexture = null; 70 | 71 | customRenderTexture.Release(); 72 | customRenderTexture.width = renderWidth; 73 | customRenderTexture.height = renderHeight; 74 | RenderTexture.active = customRenderTexture; 75 | GL.Clear(false, true, new Color(0, 0, 0, 0)); 76 | } 77 | customRenderTexture = new RenderTexture(renderWidth, renderHeight, 0, RenderTextureFormat.ARGB32); 78 | customRenderTexture.filterMode = FilterMode.Point; 79 | customRenderTexture.Create(); 80 | Syphon.SafeMaterial.SetPass(0); 81 | RenderTexture.active = customRenderTexture; 82 | GL.Clear(false, true, new Color(0, 0, 0, 0)); 83 | RenderTexture.active = null; 84 | 85 | 86 | cameraInstance.targetTexture = customRenderTexture; 87 | 88 | if(CreatedRenderTexture != null){ 89 | CreatedRenderTexture(customRenderTexture); 90 | } 91 | } 92 | 93 | public override void OnRenderImage(RenderTexture src, RenderTexture dst){ 94 | Graphics.Blit (src, dst); 95 | } 96 | 97 | public bool testCameraExists(){ 98 | if(!cameraInstance){ 99 | 100 | if(!showCameraDebugOnce){ 101 | showCameraDebugOnce = true; 102 | Debug.LogError ("no camera on the gameObject: '" + gameObject.name + "'. please add a camera to the object with the syphon server."); 103 | } 104 | 105 | return false; 106 | } 107 | return true; 108 | } 109 | 110 | public void OnRenderObject(){ 111 | if(!testCameraExists()){ 112 | return; 113 | } 114 | 115 | if(renderWidth != _renderWidth || renderHeight != _renderHeight){ 116 | if(renderWidth <= 4) 117 | renderWidth = 4; 118 | if(renderHeight <= 4) 119 | renderHeight = 4; 120 | 121 | if(renderWidth > 8192){ 122 | renderWidth = 8192; 123 | } 124 | 125 | if(renderHeight > 8192) 126 | renderHeight = 8192; 127 | 128 | _renderWidth = renderWidth; 129 | _renderHeight = renderHeight; 130 | createOrResizeRenderTexture(); 131 | } 132 | 133 | // Update texture data on Syphon server 134 | if (!syphonServerTextureValuesCached || cachedTexID != cameraInstance.targetTexture.GetNativeTexturePtr() 135 | || cameraInstance.targetTexture.width != cachedWidth ||cameraInstance.targetTexture.height != cachedHeight) 136 | cacheTextureValues( cameraInstance.targetTexture ); 137 | 138 | Syphon.SafeMaterial.SetPass(0); 139 | // Publish texture to Syphon Server 140 | if (syphonServerTextureInstance != IntPtr.Zero && cachedTexID != IntPtr.Zero){ 141 | GL.IssuePluginEvent(Syphon.SyphonGetRenderEventFunc(), (int)syphonServerTextureInstance); 142 | } 143 | 144 | 145 | if(_renderMe != renderMe){ 146 | TestIfShouldRender(); 147 | } 148 | 149 | } 150 | 151 | 152 | 153 | } 154 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonServerTextureCustomResolution.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9c2cc71f03c945898675a1a1b63e885 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonServerTextureViewRenderer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEngine.UI; 4 | public class SyphonServerTextureViewRenderer : MonoBehaviour { 5 | 6 | private SyphonServerTextureCustomResolution customResolutionScript; 7 | private Canvas renderCanvas; 8 | private GameObject renderGO; 9 | private CanvasScaler renderCanvasScaler; 10 | private RawImage renderRawImage; 11 | private GameObject rawImageGO ; 12 | private RectTransform renderTrans; 13 | private AspectRatioFitter fitter; 14 | private int _screenWidth; 15 | private int _screenHeight; 16 | private RawImage blackImage; 17 | private Vector2 texSize; 18 | private bool initedOnce = false; 19 | private Camera renderCamera; 20 | // Use this for initialization 21 | void Start () { 22 | customResolutionScript = GetComponent(); 23 | customResolutionScript.CreatedRenderTexture += CreatedOrResizedRenderTexture; 24 | 25 | if(customResolutionScript.customRenderTexture != null){ 26 | CreatedOrResizedRenderTexture(customResolutionScript.customRenderTexture); 27 | } 28 | } 29 | 30 | public void OnDestroy(){ 31 | if(renderGO != null) 32 | Destroy(renderGO); 33 | 34 | if(renderCamera != null){ 35 | Destroy(renderCamera.gameObject); 36 | } 37 | 38 | } 39 | 40 | public void CreatedOrResizedRenderTexture(RenderTexture tex){ 41 | initedOnce = true; 42 | 43 | if(renderGO == null){ 44 | LayerMask layerMask = LayerMask.NameToLayer("UI"); 45 | 46 | renderGO = new GameObject(); 47 | renderGO.layer = layerMask; 48 | renderGO.name = "SyphonServerCustomRezUICanvas"; 49 | 50 | renderCanvas = renderGO.AddComponent(); 51 | renderCanvas.gameObject.AddComponent(); 52 | renderCanvas.renderMode = RenderMode.ScreenSpaceCamera; 53 | 54 | renderCamera = new GameObject().AddComponent(); 55 | renderCanvas.worldCamera = renderCamera; 56 | renderCamera.cullingMask = 1 << layerMask; 57 | renderCamera.depth = -100; 58 | renderCamera.name = "SyphonServerCustomRezCam"; 59 | 60 | GameObject blackImageGO = new GameObject(); 61 | blackImageGO.layer = layerMask; 62 | blackImageGO.name = "bg image as black"; 63 | 64 | blackImage = blackImageGO.AddComponent(); 65 | blackImage.color = Color.black; 66 | blackImage.transform.SetParent(renderCanvas.transform, false); 67 | 68 | rawImageGO = new GameObject(); 69 | rawImageGO.name = "SyphonServerCustomResolutionView"; 70 | rawImageGO.layer = layerMask; 71 | renderRawImage = rawImageGO.AddComponent(); 72 | renderRawImage.transform.SetParent(renderCanvas.transform, false); 73 | renderRawImage.texture = Camera.main.targetTexture; 74 | 75 | blackImageGO.transform.SetAsFirstSibling(); 76 | 77 | renderTrans = (RectTransform) rawImageGO.transform; 78 | renderTrans.anchorMin = new Vector2(0.5f, 0.5f); 79 | renderTrans.anchorMax = new Vector2(0.5f, 0.5f); 80 | } 81 | 82 | 83 | if(fitter == null){ 84 | fitter = rawImageGO.AddComponent(); 85 | } 86 | 87 | renderRawImage.texture = tex; 88 | fitter.aspectRatio = tex.width/ (float)tex.height; 89 | texSize = new Vector2(tex.width, tex.height); 90 | UpdateScreenWH(); 91 | } 92 | 93 | private void UpdateScreenWH(){ 94 | _screenWidth = Screen.width; 95 | _screenHeight = Screen.height; 96 | blackImage.rectTransform.sizeDelta = new Vector2(Screen.width, Screen.height); 97 | 98 | renderTrans.sizeDelta = new Vector2(Screen.width, Screen.height); 99 | if(Screen.width/(float)texSize.x > Screen.height/(float)texSize.y) 100 | fitter.aspectMode = AspectRatioFitter.AspectMode.HeightControlsWidth; 101 | else 102 | fitter.aspectMode = AspectRatioFitter.AspectMode.WidthControlsHeight; 103 | } 104 | 105 | // Update is called once per frame 106 | void Update () { 107 | if(initedOnce && (Screen.width != _screenWidth || Screen.height != _screenHeight)){ 108 | UpdateScreenWH(); 109 | } 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture-AdvancedUsers/SyphonServerTextureViewRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa4213beb936d47efb36fb37687f1823 3 | timeCreated: 1433825993 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecd2b1b7e30554d21b58e02870669cc7 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 116 4 | /svn/!svn/ver/220/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture 5 | END 6 | SyphonServerTexture.cs.meta 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 144 10 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/SyphonServerTexture.cs.meta 11 | END 12 | SyphonClientTexture.cs 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 139 16 | /svn/!svn/ver/220/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/SyphonClientTexture.cs 17 | END 18 | SyphonClientTexture.cs.meta 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 144 22 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/SyphonClientTexture.cs.meta 23 | END 24 | SyphonServerTexture.cs 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 139 28 | /svn/!svn/ver/217/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/SyphonServerTexture.cs 29 | END 30 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 222 5 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture 6 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn 7 | 8 | 9 | 10 | 2013-07-12T22:00:14.731571Z 11 | 220 12 | connectbrian@gmail.com 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | b9cd2c10-50e7-8ebe-7bf3-e45c7195435b 28 | 29 | SyphonServerTexture.cs.meta 30 | file 31 | 32 | 33 | 34 | 35 | 2012-03-26T01:11:35.000000Z 36 | ee7581bfab27ff93d571ffa6ad20d0fd 37 | 2012-03-26T01:11:35.488500Z 38 | 164 39 | bangnoise 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 165 62 | 63 | SyphonClientTexture.cs 64 | file 65 | 66 | 67 | 68 | 69 | 2013-07-10T07:50:19.000000Z 70 | e05ffe8af101ac30c6abd9b504e14b31 71 | 2013-07-12T22:00:14.731571Z 72 | 220 73 | connectbrian@gmail.com 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 4633 96 | 97 | SyphonClientTexture.cs.meta 98 | file 99 | 100 | 101 | 102 | 103 | 2012-12-05T07:39:14.000000Z 104 | edeb61af100cc3cd6ccbcd83c273ef72 105 | 2012-03-26T01:11:35.488500Z 106 | 164 107 | bangnoise 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 165 130 | 131 | SyphonServerTexture.cs 132 | file 133 | 134 | 135 | 136 | 137 | 2013-07-03T02:12:54.000000Z 138 | 53136adae7710ed544e0a6b2d32cef5a 139 | 2013-07-03T02:22:30.599227Z 140 | 217 141 | connectbrian@gmail.com 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 5194 164 | 165 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/.svn/text-base/SyphonClientTexture.cs.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f07ff824ed8114e85bb38b9617211a08 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/.svn/text-base/SyphonClientTexture.cs.svn-base: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2012 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 2 | /* 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in the 13 | documentation and/or other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | 27 | 28 | //This script should be applied to any object in the scene, and lets you attach a syphon client texture to any Unity object. 29 | //You may modify the ApplyTexture() method as necessary, to handle projectors, bump maps, etc. 30 | using UnityEngine; 31 | using System.Collections; 32 | 33 | public class SyphonClientTexture : MonoBehaviour { 34 | // Use this for initialization 35 | public string clientAppName = "Test Server"; 36 | public string clientName = ""; 37 | private SyphonClientObject clientObject; 38 | void Start () { 39 | setupTexture(); 40 | } 41 | 42 | void OnDestroy(){ 43 | Syphon.UnregisterClientInstance(this); 44 | } 45 | 46 | void setupTexture(){ 47 | //when you initialize the client texture, you should TRY to create the syphon client object. 48 | //if it needs to exist because the server is available, it will create it. if the server is offline, 49 | //nothing will happen. this basically initializes a singleton for that particular server appName/name. 50 | clientObject = Syphon.CreateClient (clientAppName, clientName); 51 | // if the client object exists 52 | if(clientObject != null){ 53 | //and if the texture has been initialized, apply its texture to something. 54 | ApplyTexture(); 55 | //only registers it if it doesn't already exist. 56 | Syphon.RegisterClientInstance(this, clientObject); 57 | } 58 | } 59 | 60 | //this class has to watch for when servers come online, so that it knows when to create the client. 61 | public void AnnounceServer(string appName, string name){ 62 | if(appName == clientAppName && name == clientName){ 63 | setupTexture(); 64 | } 65 | } 66 | 67 | //handle applying the client texture to your object whichever way you please. 68 | public void ApplyTexture(){ 69 | if(clientObject != null && clientObject.Initialized){ 70 | renderer.sharedMaterial.mainTexture = clientObject.AttachedTexture; 71 | renderer.sharedMaterial.mainTexture.wrapMode = TextureWrapMode.Repeat; 72 | } 73 | } 74 | 75 | 76 | public void handleRetireClient(SyphonClientObject client){ 77 | if(client == clientObject){ 78 | //your syphonClient may soon go null as it is either 1) being destroyed from the clients list as there is no more reason to keep it alive or 2) the server has disappeared 79 | } 80 | } 81 | 82 | public void handleUpdateClientTextureSize(SyphonClientObject client){ 83 | if(client == clientObject){ 84 | //texture resize here- resize your plane, or whatever you want to do. use client.Width and client.Height 85 | gameObject.SendMessage("UpdateAspectRatio",new Vector2(client.Width, client.Height), SendMessageOptions.DontRequireReceiver); 86 | } 87 | } 88 | 89 | 90 | public void OnDisable(){ 91 | DisableCallbacks(); 92 | } 93 | 94 | public void OnEnable(){ 95 | EnableCallbacks(); 96 | } 97 | 98 | private void EnableCallbacks(){ 99 | Syphon.AnnounceServer += new Syphon.AnnounceServerHandler(AnnounceServer); 100 | 101 | SyphonClientObject.RetireClient += new SyphonClientObject.RetireClientHandler(handleRetireClient); 102 | SyphonClientObject.UpdateClientTextureSize += new SyphonClientObject.UpdateClientTextureSizeHandler(handleUpdateClientTextureSize); 103 | } 104 | 105 | private void DisableCallbacks(){ 106 | Syphon.AnnounceServer -= new Syphon.AnnounceServerHandler(AnnounceServer); 107 | 108 | SyphonClientObject.RetireClient -= new SyphonClientObject.RetireClientHandler(handleRetireClient); 109 | SyphonClientObject.UpdateClientTextureSize -= new SyphonClientObject.UpdateClientTextureSizeHandler(handleUpdateClientTextureSize); 110 | } 111 | 112 | 113 | 114 | } 115 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/.svn/text-base/SyphonServerTexture.cs.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07df6674c17984b8fb3f457115b682f0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/SyphonClientTexture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f07ff824ed8114e85bb38b9617211a08 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/SyphonServerTexture.cs: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2010-2012 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 2 | /* 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in the 13 | documentation and/or other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | */ 26 | 27 | 28 | //This script should be applied to any camera in the scene, and lets you host a syphon server. 29 | //you may optionally use public variable renderGUI to show the GUI rendered by the camera. 30 | using UnityEngine; 31 | using System.Collections; 32 | using System; 33 | using System.Text; 34 | using System.Net; 35 | using System.Net.Sockets; 36 | using System.IO; 37 | using System.Runtime.InteropServices; 38 | using System.Collections.Generic; 39 | #pragma warning disable 0219 40 | 41 | public class SyphonServerTexture : MonoBehaviour { 42 | 43 | protected IntPtr syphonServerTextureInstance = IntPtr.Zero; // The Syphon plugin cache pointer, returned from CreateServerTexture() 44 | protected bool syphonServerTextureValuesCached = false; // Do the server knows our camera size and id? 45 | protected IntPtr cachedTexID = IntPtr.Zero; // current camera gl texture id 46 | protected int cachedWidth = 0; // current camera texture width 47 | protected int cachedHeight = 0; // current camera texture height 48 | 49 | 50 | #if UNITY_EDITOR 51 | //i don't trust that this doesn't crash unity. need more testing. 52 | // public SyphonServerTexture(){ 53 | // Syphon.syphonScriptCount++; 54 | // } 55 | // ~SyphonServerTexture(){ 56 | // Syphon.syphonScriptCount--; 57 | // } 58 | #endif 59 | 60 | public virtual void Start() { 61 | //this next line creates a syphon instance if it doesn't already exist 62 | Syphon instance = Syphon.Instance; 63 | syphonServerTextureInstance = Syphon.CreateServerTexture(gameObject.name); 64 | } 65 | 66 | public void OnDestroy() { 67 | if(syphonServerTextureInstance != IntPtr.Zero){ 68 | Syphon.QueueToKillTexture(syphonServerTextureInstance); 69 | GL.IssuePluginEvent(Syphon.SyphonGetRenderEventFunc(), (int)syphonServerTextureInstance); 70 | } 71 | syphonServerTextureInstance = IntPtr.Zero; 72 | syphonServerTextureValuesCached = false; 73 | cachedTexID = IntPtr.Zero; 74 | } 75 | 76 | // 77 | // Cache the current texture data to server 78 | public void cacheTextureValues( RenderTexture rt ) { 79 | if (rt.GetNativeTexturePtr() != IntPtr.Zero && rt.width != 0 && rt.height != 0) { 80 | Syphon.CacheServerTextureValues(rt.GetNativeTexturePtr(), rt.width, rt.height, syphonServerTextureInstance); 81 | cachedTexID = rt.GetNativeTexturePtr(); 82 | cachedWidth = rt.width; 83 | cachedHeight = rt.height; 84 | syphonServerTextureValuesCached = true; 85 | } 86 | } 87 | 88 | 89 | ////////////////////////////////////////////////////////////// 90 | // 91 | // GAME LOOP CALLBACKS -- In order they are called 92 | // 93 | 94 | // 95 | // OnRenderImage() is called after all rendering is complete to render image, but the GUI is not rendered yet 96 | // http://docs.unity3d.com/Documentation/ScriptReference/Camera.OnRenderImage.html 97 | public virtual void OnRenderImage(RenderTexture src, RenderTexture dst){ 98 | // Update texture data on Syphon server 99 | if (!syphonServerTextureValuesCached || cachedTexID != src.GetNativeTexturePtr() || src.width != cachedWidth || src.height != cachedHeight) 100 | cacheTextureValues( src ); 101 | 102 | // Copy src to dst 103 | Syphon.SafeMaterial.SetPass(0); 104 | Graphics.Blit(src, dst); 105 | // Publish texture to Syphon Server 106 | if (syphonServerTextureInstance != IntPtr.Zero && cachedTexID != IntPtr.Zero) 107 | GL.IssuePluginEvent(Syphon.SyphonGetRenderEventFunc(), (int)syphonServerTextureInstance); 108 | 109 | } 110 | } 111 | 112 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonTexture/SyphonServerTexture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07df6674c17984b8fb3f457115b682f0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c1b2aaaab38b4405a14ce9f620deaf8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d13e3036eba3049bd8b1a95f0ac0a8dd 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1249c59ac6c7f4c72a8d4d935c07c524 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1bead628eaa94bc2ba1352e606539e5 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Headers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 136cc2bc3e06647f2b3b188ffbcad9ad 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Headers/Syphon.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ace74ef565804e5e8ed5e93e9f44b5b 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Headers/SyphonClient.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fe6bb6ab117140aeb3041ff44cdd66d 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Headers/SyphonImage.h: -------------------------------------------------------------------------------- 1 | /* 2 | SyphonImage.h 3 | Syphon 4 | 5 | Copyright 2010-2011 bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | #import 32 | 33 | /** 34 | SyphonImage represents an image stored as an OpenGL texture of type GL_TEXTURE_RECTANGLE_ARB. 35 | */ 36 | 37 | @interface SyphonUnitySyphonImage : NSObject { 38 | 39 | } 40 | 41 | /** 42 | A GLuint representing the texture name. The associated texture is of type GL_TEXTURE_RECTANGLE_ARB. 43 | */ 44 | @property (readonly) GLuint textureName; 45 | 46 | /** 47 | A NSSize representing the dimensions of the texture. The image will fill the texture entirely. 48 | */ 49 | @property (readonly) NSSize textureSize; 50 | @end 51 | 52 | @compatibility_alias SyphonImage SyphonUnitySyphonImage; 53 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Headers/SyphonImage.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 262627b8730bb40e39ecd2cbedb2cc83 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Headers/SyphonServer.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d460dc073772947dfa8381dc0cdc271d 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Headers/SyphonServerDirectory.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb60768fd8ffc47e09f4e73346ce4e82 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b50ba755b0c54a8d9cb9b1f8a7b7b40 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Resources/English.lproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a78a34d99f4fc457f8f808ea5911307d 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Resources/English.lproj/InfoPlist.strings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d02efbcbf6f6247eaa88310ba5a258ed 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15A284 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | Syphon 11 | CFBundleIdentifier 12 | info.v002.Syphon 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Syphon 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 7B85 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 15A278 37 | DTSDKName 38 | macosx10.11 39 | DTXcode 40 | 0710 41 | DTXcodeBuild 42 | 7B85 43 | 44 | 45 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Resources/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e122bf384fa1409dafb76821e60a161 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Syphon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Syphon -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Syphon.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2269dbd8086a64e6cbef81318f55a1af 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3faf7b528a1c24ac185755453001d2ed 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f8d76f82086f4ab5b55c1a73af6a757 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Headers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dcb6c85f364f4bf4afae569b12c8f57 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Headers/Syphon.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71f4b9f3cba6f495e8f4f59e54d1cfa7 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Headers/SyphonClient.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf49f93a3813f4eb38d574b100f7db5e 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Headers/SyphonImage.h: -------------------------------------------------------------------------------- 1 | /* 2 | SyphonImage.h 3 | Syphon 4 | 5 | Copyright 2010-2011 bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | #import 32 | 33 | /** 34 | SyphonImage represents an image stored as an OpenGL texture of type GL_TEXTURE_RECTANGLE_ARB. 35 | */ 36 | 37 | @interface SyphonUnitySyphonImage : NSObject { 38 | 39 | } 40 | 41 | /** 42 | A GLuint representing the texture name. The associated texture is of type GL_TEXTURE_RECTANGLE_ARB. 43 | */ 44 | @property (readonly) GLuint textureName; 45 | 46 | /** 47 | A NSSize representing the dimensions of the texture. The image will fill the texture entirely. 48 | */ 49 | @property (readonly) NSSize textureSize; 50 | @end 51 | 52 | @compatibility_alias SyphonImage SyphonUnitySyphonImage; 53 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Headers/SyphonImage.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd483ada97b8c4d698d10ff5356c817c 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Headers/SyphonServer.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ea732025dede4c7f9e1f26a2cac7d97 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Headers/SyphonServerDirectory.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6af7e33994d84ad38e21fc7653dbe37 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebdf2c7bd0d6344ef997d7615510e877 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Resources/English.lproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21cca213f5a5d410cbdf871749706049 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Resources/English.lproj/InfoPlist.strings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9193728e6e3ea4d39a9032c2658c35d0 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15A284 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | Syphon 11 | CFBundleIdentifier 12 | info.v002.Syphon 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Syphon 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 7B85 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 15A278 37 | DTSDKName 38 | macosx10.11 39 | DTXcode 40 | 0710 41 | DTXcodeBuild 42 | 7B85 43 | 44 | 45 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Resources/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2eb797f8751bb49b89649f59f24405f7 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Syphon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Syphon -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/A/Syphon.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c13a315503a14068b780f6bc6127b0f 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f26ed84468bd94d3981fe940bbbc78a9 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Headers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23cc4e5bd70654b79ab1504637bb0151 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Headers/Syphon.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81e8d123280a640fb874be41ab504ff3 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Headers/SyphonClient.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7da59beafb03546dd9a2a7bc2df439d6 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Headers/SyphonImage.h: -------------------------------------------------------------------------------- 1 | /* 2 | SyphonImage.h 3 | Syphon 4 | 5 | Copyright 2010-2011 bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | #import 32 | 33 | /** 34 | SyphonImage represents an image stored as an OpenGL texture of type GL_TEXTURE_RECTANGLE_ARB. 35 | */ 36 | 37 | @interface SyphonUnitySyphonImage : NSObject { 38 | 39 | } 40 | 41 | /** 42 | A GLuint representing the texture name. The associated texture is of type GL_TEXTURE_RECTANGLE_ARB. 43 | */ 44 | @property (readonly) GLuint textureName; 45 | 46 | /** 47 | A NSSize representing the dimensions of the texture. The image will fill the texture entirely. 48 | */ 49 | @property (readonly) NSSize textureSize; 50 | @end 51 | 52 | @compatibility_alias SyphonImage SyphonUnitySyphonImage; 53 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Headers/SyphonImage.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39c47858028934fff84aa1e3919ceb10 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Headers/SyphonServer.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3cf4b2bb0c58649b59b3b9e11fbeacbc 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Headers/SyphonServerDirectory.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 153b195514ab64b0ebed4e21ffd478e2 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efeb063680db4480fa6f9f737bba3d4c 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Resources/English.lproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96205df7eba0747a7aa68b20a088db8f 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 814f5a2db1a184c6bb41d7a92b094e88 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15A284 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | Syphon 11 | CFBundleIdentifier 12 | info.v002.Syphon 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Syphon 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 7B85 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 15A278 37 | DTSDKName 38 | macosx10.11 39 | DTXcode 40 | 0710 41 | DTXcodeBuild 42 | 7B85 43 | 44 | 45 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Resources/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6f276ebf61ba4ee2859a1356d84d685 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Syphon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Syphon -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Frameworks/Syphon.framework/Versions/Current/Syphon.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8293a13731894fdab9c960a69f8c1cc 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15A284 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SyphonUnityPlugin 11 | CFBundleIdentifier 12 | info.v002.syphon.SyphonUnityPlugin 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SyphonUnityPlugin 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | Public Beta 2 a4 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 0.2a4 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 7B85 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 15A278 37 | DTSDKName 38 | macosx10.11 39 | DTXcode 40 | 0710 41 | DTXcodeBuild 42 | 7B85 43 | 44 | 45 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc4a5042bb0944971917794bc179975c 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/MacOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fadecf3c879c44f1d9d56c055c1eeb55 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/MacOS/SyphonUnityPlugin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/MacOS/SyphonUnityPlugin -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/MacOS/SyphonUnityPlugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2a4aa4e4753447b68554c2d95268f71 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78a0187c254c14764b5dd89a707654ee 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Resources/English.lproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e205d2ba722a742c487c6c45ac58833f 3 | folderAsset: yes 4 | timeCreated: 1444808081 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Plugins/SyphonUnityPlugin.bundle/Contents/Resources/English.lproj/InfoPlist.strings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6da3a443f3ca045218591752e72fbd3a 3 | timeCreated: 1444808081 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Read Me.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170 2 | \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} 3 | {\colortbl;\red255\green255\blue255;} 4 | \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 5 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 6 | 7 | \f0\fs36 \cf0 Syphon for Unity Pro 4.0 \ 8 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 9 | 10 | \fs20 \cf0 1.0 Public Beta 2 a17 11 | \fs36 \ 12 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural 13 | 14 | \fs24 \cf0 \ 15 | This is an ongoing work. Please report any and all crashes/freezes, preferably including crash logs\ 16 | \ 17 | {\field{\*\fldinst{HYPERLINK "https://github.com/Syphon/Unity3D/issues"}}{\fldrslt https://github.com/Syphon/Unity3D/issues\ 18 | }}\ 19 | If Unity freezes, see {\field{\*\fldinst{HYPERLINK "http://www.thexlab.com/faqs/activitymonitor.html"}}{\fldrslt http://www.thexlab.com/faqs/activitymonitor.html}} the section entitled 'sampling a process' and send us that log.\ 20 | \ 21 | If Unity crashes, see {\field{\*\fldinst{HYPERLINK "http://echoone.com/bugreports/console.html"}}{\fldrslt http://echoone.com/bugreports/console.html}} and send the relevant log.\ 22 | \ 23 | More features to be added soon. If there's something missing that you want, let us know.\ 24 | \ 25 | 26 | \b Instructions 27 | \b0 \ 28 | \ 29 | Open the .unitypackage to import to an existing project, or simply create a new project and import the unity package into that. When creating a new project, you may want to tick the checkbox in "File/Build Settings/Player Settings/Resolution and Presentation/Run in Background." See SyphonServerAndClient.unity as the provided demo scene. \ 30 | \ 31 | Add a Syphon.cs to your main camera. this will act as your Syphon manager.\ 32 | \ 33 | 34 | \b (*For new users*) \ 35 | ---------------------- 36 | \b0 \ 37 | 38 | \b Syphon Server: 39 | \b0 \ 40 | 1) if you want to simply output the existing Unity scene camera as a syphon server, add a SyphonServerTexture to any camera in your scene. For basic setups, use this.\ 41 | \ 42 | 43 | \b Syphon Client: 44 | \b0 \ 45 | Add a SyphonClientTexture to any object in your scene.\ 46 | On the SyphonClientTexture, in the public inspector fields, add the name and appName of the client you just added.\ 47 | 48 | \b ----------------------\ 49 | 50 | \b0 \ 51 | \ 52 | 53 | \b (*For advanced users*)\ 54 | ----------------------\ 55 | Syphon Server: 56 | \b0 \ 57 | if you want to output a custom resolution video texture (i.e., 3072x768 for a triplehead, etc) add a SyphonServerTextureCustomResolution to the main camera in your scene. If you want a quick way to use Unity as a control surface, where its GUI is only visible inside the Unity app itself, additionally take a look at the code in ControlSurfaceExample. See the unity scene SyphonServerCustomResolution.unity for a demo.\ 58 | \ 59 | If you don't care about the alpha channel, and want to ensure your Syphon output texture looks the same as it does in the Unity game view, put a SyphonServerAlphaOne script on the camera.\ 60 | \ 61 | 62 | \b SyphonClient: 63 | \b0 \ 64 | if you want to use a Projector as a Syphon client, add the SyphonClientTextureProjector script to a gameObject that has a Projector on it, and then in its public inspector fields, add the name and appName of the client.\ 65 | 66 | \b ----------------------\ 67 | 68 | \b0 \ 69 | Take a look at the code in SyphonClientTexture.cs's ApplyTexture() method to see how to add additional functionality- adding the texture to projectors, bump maps, etc.\ 70 | \ 71 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 72 | \cf0 Syphon for Unity is published under a BSD license. See the included License.txt file.\ 73 | \ 74 | Syphon for Unity3D - Brian Chasalow (Unity 3D integration and scripting), Tom Butterworth (bangnoise) and Anton Marini (vade).\ 75 | \ 76 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 77 | {\field{\*\fldinst{HYPERLINK "http://syphon.v002.info"}}{\fldrslt \cf0 http://syphon.v002.info }}\ 78 | \ 79 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 80 | 81 | \b \cf0 Release Notes:\ 82 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ri-2500\pardirnatural\qj 83 | 84 | \b0 \cf0 a17: fixes for Unity 5.2 using new plugin API, avoids flickering 85 | \b \ 86 | 87 | \b0 a16: bugfix for Oculus support in builds 88 | \b \ 89 | 90 | \b0 a15: Oculus DK2 Support 91 | \b \ 92 | 93 | \b0 a14: added a SyphonServerAlphaOne script to optionally set alpha == 1 for the Syphon Server RenderTexture.\ 94 | a13: fix SyphonClientObject issue with not rendering under rare instances due to cachedTexID == 0 95 | \b \ 96 | 97 | \b0 a12: added SyphonClientTextureProjector script, and made it so that SyphonClientTexture adds the mainTexture on all materials on a gameObject, not just the first\ 98 | a11: added a custom resolution syphon example, and fixed a rare threading issue on syphon exit or creation. \ 99 | a10: fixed a bug with OnRetireServer crashing with OpenFrameworks servers exiting.\ 100 | a9: fixed some Unity 4.2 texture creation and 64 bit issues. uses custom Syphon framework with multithreading changes.\ 101 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Read Me.rtf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e63217e0b97304c1ab3ca647d34e9391 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e38bb4fab40394924bf931c555d98ab4 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 104 4 | /svn/!svn/ver/222/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources 5 | END 6 | SyphonShaders.meta 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 123 10 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/SyphonShaders.meta 11 | END 12 | syphonSupportedShader.mat.meta 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 135 16 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/syphonSupportedShader.mat.meta 17 | END 18 | syphonSupportedShaderCloth.mat 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 135 22 | /svn/!svn/ver/222/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/syphonSupportedShaderCloth.mat 23 | END 24 | syphonSupportedShaderCloth.mat.meta 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 140 28 | /svn/!svn/ver/164/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/syphonSupportedShaderCloth.mat.meta 29 | END 30 | syphonSupportedShader.mat 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 130 34 | /svn/!svn/ver/222/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/syphonSupportedShader.mat 35 | END 36 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 222 5 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn/trunk/Syphon%20Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources 6 | https://connectbrian%40gmail.com@syphon-implementations.googlecode.com/svn 7 | 8 | 9 | 10 | 2013-07-13T21:04:46.748055Z 11 | 222 12 | connectbrian@gmail.com 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | b9cd2c10-50e7-8ebe-7bf3-e45c7195435b 28 | 29 | SyphonShaders.meta 30 | file 31 | 32 | 33 | 34 | 35 | 2013-02-23T00:56:17.000000Z 36 | 680f2a226e0b6e307ebecdbec2b0125b 37 | 2012-03-26T01:11:35.488500Z 38 | 164 39 | bangnoise 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 60 62 | 63 | syphonSupportedShader.mat.meta 64 | file 65 | 66 | 67 | 68 | 69 | 2013-02-23T00:56:17.000000Z 70 | 0c892db10eb8fbe4a543e974ed6c8c5e 71 | 2012-03-26T01:11:35.488500Z 72 | 164 73 | bangnoise 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 60 96 | 97 | syphonSupportedShaderCloth.mat 98 | file 99 | 100 | 101 | 102 | 103 | 2013-07-14T03:59:29.000000Z 104 | 445324721e69bd8b22af1ce5d884fa1f 105 | 2013-07-13T21:04:46.748055Z 106 | 222 107 | connectbrian@gmail.com 108 | has-props 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 4640 130 | 131 | SyphonShaders 132 | dir 133 | 134 | syphonSupportedShaderCloth.mat.meta 135 | file 136 | 137 | 138 | 139 | 140 | 2013-02-23T00:56:17.000000Z 141 | f87cf1c35dceff511ef43133f0f1bac8 142 | 2012-03-26T01:11:35.488500Z 143 | 164 144 | bangnoise 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 60 167 | 168 | syphonSupportedShader.mat 169 | file 170 | 171 | 172 | 173 | 174 | 2013-07-14T03:59:29.000000Z 175 | 6894890e83207d1e52d4988c7b249ff6 176 | 2013-07-13T21:04:46.748055Z 177 | 222 178 | connectbrian@gmail.com 179 | has-props 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 4616 201 | 202 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/prop-base/syphonSupportedShader.mat.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/prop-base/syphonSupportedShaderCloth.mat.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/text-base/SyphonShaders.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25606638b3f084adf83830c711a52f5d 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/text-base/syphonSupportedShader.mat.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a9d491edb2f74408befe05fa43d9859 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/text-base/syphonSupportedShader.mat.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/text-base/syphonSupportedShader.mat.svn-base -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/text-base/syphonSupportedShaderCloth.mat.meta.svn-base: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff1cf97a93e6042b0b9b503f67789f18 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/text-base/syphonSupportedShaderCloth.mat.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/.svn/text-base/syphonSupportedShaderCloth.mat.svn-base -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/AlphaOne.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/AlphaOne.mat -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/AlphaOne.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe1d24430150e4b91acf91e61e93a083 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/AlphaOne.shader: -------------------------------------------------------------------------------- 1 | Shader "Syphon/AlphaOne" { 2 | Properties { 3 | _MainTex ("Base (RGB)", 2D) = "white" {} 4 | } 5 | 6 | SubShader { 7 | Pass { 8 | ZTest Always Cull Off ZWrite Off 9 | Fog { Mode off } 10 | 11 | CGPROGRAM 12 | #pragma vertex vert_img 13 | #pragma fragment frag 14 | #pragma fragmentoption ARB_precision_hint_fastest 15 | #include "UnityCG.cginc" 16 | 17 | uniform sampler2D _MainTex; 18 | 19 | 20 | fixed4 frag (v2f_img i) : COLOR 21 | { 22 | fixed4 original = tex2D(_MainTex, i.uv); 23 | original.a = 1; 24 | return original; 25 | } 26 | ENDCG 27 | 28 | } 29 | } 30 | 31 | Fallback off 32 | 33 | } -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/AlphaOne.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9d1a91836f6e44b8a574226f302b6ca 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/SyphonProjectorMaterial.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/SyphonProjectorMaterial.mat -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/SyphonProjectorMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52a1cf6eec0cc4f64bd6dfc9a3e8fe14 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/Unlit-Safe.shader: -------------------------------------------------------------------------------- 1 | // Unlit shader. Simplest possible colored shader. 2 | // - no lighting 3 | // - no lightmap support 4 | // - no texture 5 | 6 | Shader "Unlit/Safe" { 7 | Properties { 8 | _Color ("Main Color", Color) = (1,1,1,1) 9 | } 10 | 11 | SubShader { 12 | Tags { "RenderType"="Opaque" } 13 | LOD 100 14 | ZTest Always Cull Off ZWrite Off 15 | Pass { 16 | CGPROGRAM 17 | 18 | #pragma vertex vert 19 | #pragma fragment frag 20 | // #pragma multi_compile_fog 21 | 22 | #include "UnityCG.cginc" 23 | 24 | struct appdata_t { 25 | float4 vertex : POSITION; 26 | }; 27 | 28 | struct v2f { 29 | float4 vertex : SV_POSITION; 30 | // UNITY_FOG_COORDS(0) 31 | }; 32 | 33 | fixed4 _Color; 34 | 35 | v2f vert (appdata_t v) 36 | { 37 | v2f o; 38 | o.vertex = mul(UNITY_MATRIX_MVP, v.vertex); 39 | // UNITY_TRANSFER_FOG(o,o.vertex); 40 | return o; 41 | } 42 | 43 | fixed4 frag (v2f i) : COLOR 44 | { 45 | fixed4 col = _Color; 46 | // UNITY_APPLY_FOG(i.fogCoord, col); 47 | UNITY_OPAQUE_ALPHA(col.a); 48 | return col; 49 | } 50 | ENDCG 51 | } 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/Unlit-Safe.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e0d65bcad46e40dcb0516ef78773376 3 | timeCreated: 1441576273 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/syphonSupportedShader.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/syphonSupportedShader.mat -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/syphonSupportedShader.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a9d491edb2f74408befe05fa43d9859 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/testCustomResolutionSphere.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/testCustomResolutionSphere.mat -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/Resources/testCustomResolutionSphere.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fadc83e0fc107484e8661da4d7005768 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerAndClient.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerAndClient.unity -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerAndClient.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f881a3132a1d24b06acd0b34bdefbb50 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerCustomResolution.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerCustomResolution.unity -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/Assets/SyphonServerCustomResolution.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a4129440b9654a359ad47fa3bc99733 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.2.1p3 2 | m_StandardAssetsVersion: 0 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/UnityAnalyticsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/ProjectSettings/UnityAnalyticsManager.asset -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/SyphonUnityExample-csharp.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2008 3 | 4 | Project("{E048D02B-AC97-D609-34C0-1A4F22E8C4AD}") = "SyphonUnityExample", "Assembly-CSharp-firstpass-vs.csproj", "{07E29774-1106-A413-B191-A84496C1A826}" 5 | EndProject 6 | Project("{E048D02B-AC97-D609-34C0-1A4F22E8C4AD}") = "SyphonUnityExample", "Assembly-CSharp-Editor-vs.csproj", "{13F3D434-769C-DB94-599C-44DB4FEAE458}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {07E29774-1106-A413-B191-A84496C1A826}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {07E29774-1106-A413-B191-A84496C1A826}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {07E29774-1106-A413-B191-A84496C1A826}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {07E29774-1106-A413-B191-A84496C1A826}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | GlobalSection(MonoDevelopProperties) = preSolution 27 | StartupItem = Assembly-CSharp.csproj 28 | Policies = $0 29 | $0.TextStylePolicy = $1 30 | $1.inheritsSet = null 31 | $1.scope = text/x-csharp 32 | $0.CSharpFormattingPolicy = $2 33 | $2.inheritsSet = Mono 34 | $2.inheritsScope = text/x-csharp 35 | $2.scope = text/x-csharp 36 | $0.TextStylePolicy = $3 37 | $3.FileWidth = 120 38 | $3.TabWidth = 4 39 | $3.EolMarker = Unix 40 | $3.inheritsSet = Mono 41 | $3.inheritsScope = text/plain 42 | $3.scope = text/plain 43 | EndGlobalSection 44 | 45 | EndGlobal 46 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/SyphonUnityExample.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2008 3 | 4 | Project("{E048D02B-AC97-D609-34C0-1A4F22E8C4AD}") = "SyphonUnityExample", "Assembly-CSharp-firstpass.csproj", "{07E29774-1106-A413-B191-A84496C1A826}" 5 | EndProject 6 | Project("{E048D02B-AC97-D609-34C0-1A4F22E8C4AD}") = "SyphonUnityExample", "Assembly-CSharp-Editor.csproj", "{13F3D434-769C-DB94-599C-44DB4FEAE458}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {07E29774-1106-A413-B191-A84496C1A826}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {07E29774-1106-A413-B191-A84496C1A826}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {07E29774-1106-A413-B191-A84496C1A826}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {07E29774-1106-A413-B191-A84496C1A826}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {13F3D434-769C-DB94-599C-44DB4FEAE458}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | GlobalSection(MonoDevelopProperties) = preSolution 27 | StartupItem = Assembly-CSharp.csproj 28 | Policies = $0 29 | $0.TextStylePolicy = $1 30 | $1.inheritsSet = null 31 | $1.scope = text/x-csharp 32 | $0.CSharpFormattingPolicy = $2 33 | $2.inheritsSet = Mono 34 | $2.inheritsScope = text/x-csharp 35 | $2.scope = text/x-csharp 36 | $0.TextStylePolicy = $3 37 | $3.FileWidth = 120 38 | $3.TabWidth = 4 39 | $3.EolMarker = Unix 40 | $3.inheritsSet = Mono 41 | $3.inheritsScope = text/plain 42 | $3.scope = text/plain 43 | EndGlobalSection 44 | 45 | EndGlobal 46 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityExample/SyphonUnityExample.userprefs: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | info.v002.syphon.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | Public Beta 2 a4 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 0.2a4 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonCacheData.h: -------------------------------------------------------------------------------- 1 | //SyphonCacheData.h 2 | // SyphonUnityPlugin 3 | /* 4 | 5 | Copyright 2010-2011 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | //this class is used to sync the GL thread in unity, and the ofxQTKitVideoPlayer 31 | #import "SyphonServerObject.h" 32 | #import 33 | enum PluginType{ 34 | PLUGIN_NONE, PLUGIN_VTP = 1000, PLUGIN_SYPHON = 2000 35 | }; 36 | 37 | class SyphonCacheData 38 | { 39 | public: 40 | PluginType pluginType; 41 | SyphonCacheData(); 42 | //init a client with a syphon server pointer 43 | SyphonCacheData(NSDictionary* ptr); 44 | virtual ~SyphonCacheData(); 45 | void cacheTextureValues(int mytextureID, int width, int height, BOOL imaServer); 46 | int textureID; 47 | int textureWidth; 48 | int textureHeight; 49 | 50 | NSString* serverName; 51 | // CGLContextObj cachedContext; 52 | SyphonServer* syphonServer; 53 | BOOL cannotDrawUntilTextureResize; 54 | //initialized once data is cached 55 | BOOL initialized; 56 | //if(!isAServer), then is a client 57 | BOOL isAServer; 58 | //client related 59 | SyphonClient* syphonClient; 60 | BOOL updateTextureSizeFlag; 61 | BOOL destroyMe; 62 | }; -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonCacheData.mm: -------------------------------------------------------------------------------- 1 | //SyphonCacheData.mm 2 | // SyphonUnityPlugin 3 | /* 4 | 5 | Copyright 2010-2011 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #include "SyphonCacheData.h" 31 | SyphonCacheData::SyphonCacheData() 32 | { 33 | //used for initializing servers 34 | syphonServer = nil; 35 | serverName = nil; 36 | initialized = NO; 37 | updateTextureSizeFlag = NO; 38 | destroyMe = NO; 39 | pluginType = PLUGIN_SYPHON; 40 | cannotDrawUntilTextureResize = NO; 41 | } 42 | 43 | SyphonCacheData::SyphonCacheData(NSDictionary* ptr) 44 | { 45 | //deep copy constructor. used for initializing clients with a server description. 46 | syphonServer = nil; 47 | serverName = nil; 48 | cannotDrawUntilTextureResize = NO; 49 | initialized = NO; 50 | isAServer = NO; 51 | updateTextureSizeFlag = false; 52 | 53 | 54 | destroyMe = NO; 55 | pluginType = PLUGIN_SYPHON; 56 | @autoreleasepool { 57 | syphonClient = [[SyphonClient alloc] initWithServerDescription:ptr options:nil newFrameHandler:nil]; 58 | } 59 | } 60 | 61 | void SyphonCacheData::cacheTextureValues(int mytextureID, int width, int height, BOOL imaServer){ 62 | textureID = mytextureID; 63 | textureWidth = width; 64 | textureHeight = height; 65 | isAServer = imaServer; 66 | initialized = YES; 67 | cannotDrawUntilTextureResize = NO; 68 | } 69 | 70 | 71 | SyphonCacheData::~SyphonCacheData() 72 | { 73 | if(serverName != nil){ 74 | serverName = nil; 75 | } 76 | } 77 | 78 | 79 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonServerObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // SyphonServerObject.h 3 | // SyphonUnityPlugin 4 | // 5 | // Created by bc on 2/2/12. 6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonServerObject.mm: -------------------------------------------------------------------------------- 1 | // 2 | // SyphonServerObject.m 3 | // SyphonUnityPlugin 4 | // 5 | // Created by bc on 2/2/12. 6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "SyphonServerObject.h" 10 | 11 | @implementation SyphonServerObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonServerUnity.m: -------------------------------------------------------------------------------- 1 | /* 2 | SyphonServerUnity.m 3 | Unity3D 4 | 5 | Copyright 2010-2011 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | 31 | #ifdef __cplusplus 32 | extern "C"{ 33 | #endif 34 | 35 | #import 36 | #import 37 | #import 38 | //#import 39 | static NSArray* serversArray = nil; 40 | static SyphonServer* _unitySyphonServer = nil; 41 | static int serversCount = 0; 42 | 43 | //get the count of servers 44 | int SyServerCount(){ 45 | NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; 46 | serversArray = [[SyphonServerDirectory sharedDirectory] servers]; 47 | serversCount = [serversArray count]; 48 | [pool drain]; 49 | NSLog(@"servers Count: %i", serversCount); 50 | return serversCount; 51 | } 52 | 53 | 54 | //get the clients! each object returned 55 | void SyServerAtIndex(int myIndex, char* myAppName, char* myName, char* myUuId, int myCapacity){ 56 | NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; 57 | if(serversCount > 0){ 58 | // NSDictionary* serverDict = [serversArray objectAtIndex:myIndex]; 59 | /// NSString* appName = [serverDict objectForKey:SyphonServerDescriptionAppNameKey]; 60 | // NSString* name = [serverDict objectForKey:SyphonServerDescriptionNameKey]; 61 | // NSString *uuid = [serverDict objectForKey:SyphonServerDescriptionUUIDKey]; 62 | // NSLog(@"capacity Count: %i", myCapacity); 63 | 64 | // strncpy(myAppName, [appName UTF8String], myCapacity); 65 | // strncpy(myName, [name UTF8String], myCapacity); 66 | // strncpy(myUuId, [uuid UTF8String], myCapacity); 67 | } 68 | [pool drain]; 69 | } 70 | 71 | void syphonServerDestroyResources() 72 | { 73 | NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; 74 | 75 | // lets create our client if we dont have it. 76 | if(_unitySyphonServer ) 77 | { 78 | [_unitySyphonServer stop]; 79 | [_unitySyphonServer release]; 80 | _unitySyphonServer = nil; 81 | NSLog(@"destroying Syphon Server"); 82 | } 83 | [pool drain]; 84 | } 85 | 86 | 87 | void syphonServerPublishTexture(int nativeTexture, int width, int height) 88 | { 89 | NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; 90 | 91 | // lets create our client if we dont have it. 92 | if(_unitySyphonServer == nil) 93 | { 94 | _unitySyphonServer = [[SyphonServer alloc] initWithName:@"Demo" context:CGLGetCurrentContext() options:nil]; 95 | NSLog(@"creating Syphon Server"); 96 | } 97 | 98 | if(_unitySyphonServer) 99 | { 100 | 101 | NSRect rect = NSMakeRect(0, 0, width, height); 102 | [_unitySyphonServer publishFrameTexture:nativeTexture textureTarget:GL_TEXTURE_2D imageRegion:rect textureDimensions:rect.size flipped:NO]; 103 | } 104 | 105 | [pool drain]; 106 | } 107 | 108 | 109 | 110 | #ifdef __cplusplus 111 | } 112 | #endif -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonServerUnity.mm: -------------------------------------------------------------------------------- 1 | /* 2 | SyphonServerUnity.mm 3 | Unity3D 4 | 5 | Copyright 2010-2011 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | 31 | #ifdef __cplusplus 32 | extern "C"{ 33 | #endif 34 | #import 35 | #import 36 | static void cacheGraphicsContext(); 37 | 38 | //#import 39 | static int serversCount = 0; 40 | static CGLContextObj cachedContext; 41 | 42 | //get the count of servers 43 | int SyServerCount(){ 44 | @autoreleasepool{ 45 | serversCount = [[[SyphonServerDirectory sharedDirectory] servers] count]; 46 | return serversCount; 47 | } 48 | } 49 | 50 | 51 | //get the clients! each object returned 52 | void* SyServerAtIndex(int myIndex, char* myAppName, char* myName, char* myUuId){ 53 | @autoreleasepool{ 54 | 55 | void* syPtr = (__bridge void*)[[[SyphonServerDirectory sharedDirectory] servers] objectAtIndex:myIndex]; 56 | 57 | if(serversCount > 0){ 58 | NSDictionary* serverDict = [[[SyphonServerDirectory sharedDirectory] servers] objectAtIndex:myIndex]; 59 | NSString* appName = [serverDict objectForKey:SyphonServerDescriptionAppNameKey]; 60 | NSString* name = [serverDict objectForKey:SyphonServerDescriptionNameKey]; 61 | NSString *uuid = [serverDict objectForKey:SyphonServerDescriptionUUIDKey]; 62 | strncpy(myAppName, [appName UTF8String],256); 63 | strncpy(myName, [name UTF8String], 256); 64 | strncpy(myUuId, [uuid UTF8String], 256); 65 | } 66 | 67 | return syPtr; 68 | } 69 | } 70 | 71 | 72 | void syphonServerDestroyResources(SyphonServer* server) 73 | { 74 | @autoreleasepool { 75 | if(server != nil) 76 | { 77 | // NSLog(@"destroying Syphon Server : %@ with thread ID %@", server, [NSThread currentThread]); 78 | [server stop]; 79 | server = nil; 80 | } 81 | } 82 | } 83 | 84 | // 85 | void syphonServerCreate(SyphonCacheData* ptr) 86 | { 87 | @autoreleasepool { 88 | if(cachedContext != nil && CGLGetContextRetainCount(cachedContext) != 0){ 89 | ptr->syphonServer = [[SyphonServer alloc] initWithName:ptr->serverName context:cachedContext options:nil]; 90 | // NSLog(@"creating Syphon Server : %@ with thread ID %@", ptr->serverName, [NSThread currentThread]); 91 | } 92 | else 93 | { //force a context refresh. 94 | cacheGraphicsContext(); 95 | // NSLog(@"context is nil?! HOW! %i", CGLGetContextRetainCount(cachedContext)); 96 | } 97 | } 98 | } 99 | 100 | 101 | 102 | 103 | void syphonServerPublishTexture(SyphonCacheData* ptr){ 104 | @autoreleasepool{ 105 | if(!ptr->syphonServer){ 106 | syphonServerCreate(ptr); 107 | } 108 | 109 | if(ptr->syphonServer) 110 | { 111 | 112 | if(!glIsTexture(ptr->textureID)){ 113 | NSLog(@" %i is not a texture! cannot publish server texture.", ptr->textureID); 114 | return; 115 | } 116 | 117 | // NSLog(@"texture id: %li, x: %i, y: %i, syphon server pointer value: %li", (unsigned long)ptr->textureID, ptr->textureWidth, ptr->textureHeight, (unsigned long)ptr->syphonServer); 118 | //NSLog(@"publishing Syphon Server : %@ with thread ID %@", ptr->serverName, [NSThread currentThread]); 119 | NSRect rect = NSMakeRect(0, 0, ptr->textureWidth, ptr->textureHeight); 120 | if(cachedContext != nil && CGLGetContextRetainCount(cachedContext) != 0){ 121 | [ptr->syphonServer publishFrameTexture:ptr->textureID textureTarget:GL_TEXTURE_2D imageRegion:rect textureDimensions:rect.size flipped:NO]; 122 | } 123 | else 124 | { //force a context refresh. 125 | cacheGraphicsContext(); 126 | // NSLog(@"context is 2 nil?! HOW! %i", CGLGetContextRetainCount(cachedContext)); 127 | } 128 | 129 | } 130 | } 131 | } 132 | 133 | 134 | 135 | #ifdef __cplusplus 136 | } 137 | #endif -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnity.h: -------------------------------------------------------------------------------- 1 | //SyphonUnity.h 2 | // SyphonUnityPlugin 3 | /* 4 | 5 | Copyright 2010-2011 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | #import "UnityPluginInterface.h" 32 | #import "ServerWatcherUtility.mm" 33 | #import "SyphonCacheData.h" 34 | #import "SyphonServerUnity.mm" 35 | #import "SyphonClientUnity.m" 36 | 37 | 38 | #include "Unity/IUnityGraphics.h" 39 | 40 | #include 41 | #include 42 | #include 43 | #include 44 | 45 | // -------------------------------------------------------------------------- 46 | // Include headers for the graphics APIs we support 47 | 48 | #if SUPPORT_D3D9 49 | #include 50 | #include "Unity/IUnityGraphicsD3D9.h" 51 | #endif 52 | #if SUPPORT_D3D11 53 | #include 54 | #include "Unity/IUnityGraphicsD3D11.h" 55 | #endif 56 | #if SUPPORT_D3D12 57 | #include 58 | #include "Unity/IUnityGraphicsD3D12.h" 59 | #endif 60 | 61 | #if SUPPORT_OPENGLES 62 | #if UNITY_IPHONE 63 | #include 64 | #elif UNITY_ANDROID 65 | #include 66 | #endif 67 | #elif SUPPORT_OPENGL 68 | #if UNITY_WIN || UNITY_LINUX 69 | #include 70 | #else 71 | #include 72 | #endif 73 | #endif 74 | 75 | 76 | extern "C" void SyphonUnityRenderEvent(int instanceID); -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/project.xcworkspace/xcshareddata/SyphonUnityPlugin.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | A4A6DDA0-18F6-4582-A900-AA41E28B330D 9 | IDESourceControlProjectName 10 | SyphonUnityPlugin 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 0F2AA51BEA719AA2B941F33D3559F2DBD654EAEF 14 | https://github.com/Syphon/Unity3D.git 15 | 16 | IDESourceControlProjectPath 17 | Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 0F2AA51BEA719AA2B941F33D3559F2DBD654EAEF 21 | ../../../../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/Syphon/Unity3D.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 0F2AA51BEA719AA2B941F33D3559F2DBD654EAEF 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 0F2AA51BEA719AA2B941F33D3559F2DBD654EAEF 36 | IDESourceControlWCCName 37 | SyphonUnity3D 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/project.xcworkspace/xcuserdata/bc.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/project.xcworkspace/xcuserdata/bc.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/project.xcworkspace/xcuserdata/bctrashcan.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syphon/Unity3D/1935d4d5469758d155eac759580c0f59efef300c/Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/project.xcworkspace/xcuserdata/bctrashcan.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/xcuserdata/bc.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/xcuserdata/bc.xcuserdatad/xcschemes/Build Custom Framework.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 42 | 43 | 44 | 45 | 51 | 52 | 54 | 55 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/xcuserdata/bc.xcuserdatad/xcschemes/SyphonUnityPlugin.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 60 | 61 | 63 | 64 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin.xcodeproj/xcuserdata/bc.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Build Custom Framework.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | SyphonUnityPlugin.xcscheme 13 | 14 | orderHint 15 | 1 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 8D5B49AC048680CD000E48DA 21 | 22 | primary 23 | 24 | 25 | BD48069D1239AFCA00DFB19E 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/SyphonUnityPlugin_Prefix.pch: -------------------------------------------------------------------------------- 1 | /* 2 | SyphonUnityPlugin_Prefix.pch 3 | Unity3D 4 | 5 | Copyright 2010 bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #ifdef __OBJC__ 31 | #import 32 | #endif 33 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/Unity/IUnityGraphics.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | 4 | typedef enum UnityGfxRenderer 5 | { 6 | kUnityGfxRendererOpenGL = 0, // Desktop OpenGL 7 | kUnityGfxRendererD3D9 = 1, // Direct3D 9 8 | kUnityGfxRendererD3D11 = 2, // Direct3D 11 9 | kUnityGfxRendererGCM = 3, // PlayStation 3 10 | kUnityGfxRendererNull = 4, // "null" device (used in batch mode) 11 | kUnityGfxRendererXenon = 6, // Xbox 360 12 | kUnityGfxRendererOpenGLES20 = 8, // OpenGL ES 2.0 13 | kUnityGfxRendererOpenGLES30 = 11, // OpenGL ES 3.0 14 | kUnityGfxRendererGXM = 12, // PlayStation Vita 15 | kUnityGfxRendererPS4 = 13, // PlayStation 4 16 | kUnityGfxRendererXboxOne = 14, // Xbox One 17 | kUnityGfxRendererMetal = 16, // iOS Metal 18 | kUnityGfxRendererD3D12 = 18, // Direct3D 12 19 | } UnityGfxRenderer; 20 | 21 | typedef enum UnityGfxDeviceEventType 22 | { 23 | kUnityGfxDeviceEventInitialize = 0, 24 | kUnityGfxDeviceEventShutdown = 1, 25 | kUnityGfxDeviceEventBeforeReset = 2, 26 | kUnityGfxDeviceEventAfterReset = 3, 27 | } UnityGfxDeviceEventType; 28 | 29 | typedef void (UNITY_INTERFACE_API * IUnityGraphicsDeviceEventCallback)(UnityGfxDeviceEventType eventType); 30 | 31 | // Should only be used on the rendering thread unless noted otherwise. 32 | UNITY_DECLARE_INTERFACE(IUnityGraphics) 33 | { 34 | UnityGfxRenderer (UNITY_INTERFACE_API * GetRenderer)(); // Thread safe 35 | 36 | // This callback will be called when graphics device is created, destroyed, reset, etc. 37 | // It is possible to miss the kUnityGfxDeviceEventInitialize event in case plugin is loaded at a later time, 38 | // when the graphics device is already created. 39 | void (UNITY_INTERFACE_API * RegisterDeviceEventCallback)(IUnityGraphicsDeviceEventCallback callback); 40 | void (UNITY_INTERFACE_API * UnregisterDeviceEventCallback)(IUnityGraphicsDeviceEventCallback callback); 41 | }; 42 | UNITY_REGISTER_INTERFACE_GUID(0x7CBA0A9CA4DDB544ULL,0x8C5AD4926EB17B11ULL,IUnityGraphics) 43 | 44 | 45 | 46 | // Certain Unity APIs (GL.IssuePluginEvent, CommandBuffer.IssuePluginEvent) can callback into native plugins. 47 | // Provide them with an address to a function of this signature. 48 | typedef void (UNITY_INTERFACE_API * UnityRenderingEvent)(int eventId); 49 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/Unity/IUnityGraphicsD3D11.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | 4 | // Should only be used on the rendering thread unless noted otherwise. 5 | UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D11) 6 | { 7 | ID3D11Device* (UNITY_INTERFACE_API * GetDevice)(); 8 | }; 9 | UNITY_REGISTER_INTERFACE_GUID(0xAAB37EF87A87D748ULL,0xBF76967F07EFB177ULL,IUnityGraphicsD3D11) 10 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/Unity/IUnityGraphicsD3D12.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | #ifndef __cplusplus 4 | #include 5 | #endif 6 | 7 | // Should only be used on the rendering thread unless noted otherwise. 8 | UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D12) 9 | { 10 | ID3D12Device* (UNITY_INTERFACE_API * GetDevice)(); 11 | ID3D12CommandQueue* (UNITY_INTERFACE_API * GetCommandQueue)(); 12 | 13 | ID3D12Fence* (UNITY_INTERFACE_API * GetFrameFence)(); 14 | // Returns the value set on the frame fence once the current frame completes 15 | UINT64 (UNITY_INTERFACE_API * GetNextFrameFenceValue)(); 16 | 17 | // Returns the state a resource will be in after the last command list is executed 18 | bool (UNITY_INTERFACE_API * GetResourceState)(ID3D12Resource* resource, D3D12_RESOURCE_STATES* outState); 19 | // Specifies the state a resource will be in after a plugin command list with resource barriers is executed 20 | void (UNITY_INTERFACE_API * SetResourceState)(ID3D12Resource* resource, D3D12_RESOURCE_STATES state); 21 | }; 22 | UNITY_REGISTER_INTERFACE_GUID(0xEF4CEC88A45F4C4CULL,0xBD295B6F2A38D9DEULL,IUnityGraphicsD3D12) 23 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/Unity/IUnityGraphicsD3D9.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "IUnityInterface.h" 3 | 4 | // Should only be used on the rendering thread unless noted otherwise. 5 | UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D9) 6 | { 7 | IDirect3D9* (UNITY_INTERFACE_API * GetD3D)(); 8 | IDirect3DDevice9* (UNITY_INTERFACE_API * GetDevice)(); 9 | }; 10 | UNITY_REGISTER_INTERFACE_GUID(0xE90746A523D53C4CULL,0xAC825B19B6F82AC3ULL,IUnityGraphicsD3D9) 11 | -------------------------------------------------------------------------------- /Syphon Implementations/Unity3D/Unity3D-3_5/SyphonUnityPlugin/UnityPluginInterface.h: -------------------------------------------------------------------------------- 1 | //UnityPluginInterface.h 2 | // SyphonUnityPlugin 3 | /* 4 | 5 | Copyright 2010-2011 Brian Chasalow, bangnoise (Tom Butterworth) & vade (Anton Marini). 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #pragma once 31 | 32 | // Which platform we are on? 33 | #if _MSC_VER 34 | #define UNITY_WIN 1 35 | #else 36 | #define UNITY_OSX 1 37 | #endif 38 | 39 | 40 | 41 | // Attribute to make function be exported from a plugin 42 | #if UNITY_WIN 43 | #define EXPORT_API __declspec(dllexport) 44 | #else 45 | #define EXPORT_API 46 | #endif 47 | 48 | 49 | // Which graphics device APIs we possibly support? 50 | #if UNITY_WIN 51 | #define SUPPORT_D3D9 1 52 | #define SUPPORT_OPENGL 1 53 | #endif 54 | 55 | #if UNITY_OSX 56 | #define SUPPORT_OPENGL 1 57 | #endif 58 | 59 | 60 | // Graphics device identifiers in Unity 61 | enum GfxDeviceRenderer 62 | { 63 | kGfxRendererOpenGL = 0, // OpenGL 64 | kGfxRendererD3D9, // Direct3D 9 65 | kGfxRendererD3D11, // Direct3D 11 66 | kGfxRendererGCM, // Sony PlayStation 3 GCM 67 | kGfxRendererNull, // "null" device (used in batch mode) 68 | kGfxRendererHollywood, // Nintendo Wii 69 | kGfxRendererXenon, // Xbox 360 70 | kGfxRendererOpenGLES, // OpenGL ES 1.1 71 | kGfxRendererOpenGLES20Mobile, // OpenGL ES 2.0 mobile variant 72 | kGfxRendererMolehill, // Flash 11 Stage3D 73 | kGfxRendererOpenGLES20Desktop, // OpenGL ES 2.0 desktop variant (i.e. NaCl) 74 | kGfxRendererCount 75 | }; 76 | 77 | 78 | // Event types for UnitySetGraphicsDevice 79 | enum GfxDeviceEventType { 80 | kGfxDeviceEventInitialize = 0, 81 | kGfxDeviceEventShutdown, 82 | kGfxDeviceEventBeforeReset, 83 | kGfxDeviceEventAfterReset, 84 | }; 85 | 86 | 87 | // If exported by a plugin, this function will be called when graphics device is created, destroyed, 88 | // before it's being reset (i.e. resolution changed), after it's being reset, etc. 89 | extern "C" void EXPORT_API UnitySetGraphicsDevice (void* device, int deviceType, int eventType); 90 | 91 | // If exported by a plugin, this function will be called for GL.IssuePluginEvent script calls. 92 | // The function will be called on a rendering thread; note that when multithreaded rendering is used, 93 | // the rendering thread WILL BE DIFFERENT from the thread that all scripts & other game logic happens! 94 | // You have to ensure any synchronization with other plugin script calls is properly done by you. 95 | //extern "C" void EXPORT_API UnityRenderEvent (void* eventID); 96 | 97 | --------------------------------------------------------------------------------