├── .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