<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://theeyetribe.com/forum/feed.php?f=15&amp;t=38" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2014-03-04T15:52:39+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=15&amp;t=38</id>
<entry>
<author><name><![CDATA[john@johnmquick.com]]></name></author>
<updated>2014-03-04T15:52:39+02:00</updated>
<published>2014-03-04T15:52:39+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=496#p496</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=496#p496"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=496#p496"><![CDATA[
That's great. Thanks for the code sample.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1666">skatajohn@johnmquick.com</a> — 04 Mar 2014, 15:52</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Martin]]></name></author>
<updated>2014-03-03T17:22:59+02:00</updated>
<published>2014-03-03T17:22:59+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=481#p481</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=481#p481"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=481#p481"><![CDATA[
Hi John,<br /><br />Path to server exe can be readout from the registry like this:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>        private static string GetServerExecutablePath()<br />        {<br />            // Check registry for path<br />            string installPath = string.Empty;<br />           installPath = (string)Registry.GetValue(@&quot;HKEY_CURRENT_USER\Software\EyeTribe\EyeTribe Service&quot;, &quot;InstallDir&quot;, string.Empty);<br /><br />            if (installPath != string.Empty)<br />                return installPath + &quot;EyeTribe.exe&quot;;<br /><br />            // Not in reg, check default paths<br />            const string x86 = &quot;C:\\Program Files (x86)\\EyeTribe\\Server\\EyeTribe.exe&quot;;<br />            const string x64 = &quot;C:\\Program Files\\EyeTribe\\Server\\EyeTribe.exe&quot;;<br /><br />            if (File.Exists(x86))<br />                return x86;<br /><br />            if (File.Exists(x64))<br />                return x64;<br /><br />            return string.Empty;<br />        }<br /></code></dd></dl><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=117">skataMartin</a> — 03 Mar 2014, 17:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[john@johnmquick.com]]></name></author>
<updated>2014-03-03T15:36:21+02:00</updated>
<published>2014-03-03T15:36:21+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=477#p477</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=477#p477"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=477#p477"><![CDATA[
<blockquote><div><cite>Martin wrote:</cite><br />...<br />The server runs standalone. You could potentially check if it's not running and start it using the standard .Net <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start(v=vs.110).aspx" class="postlink">Process.Start()</a> (this is how we do it for the EyeTribeUI)<br /></div></blockquote><br /><br />Hi Martin,<br /><br />For Process.Start(), do you give the url to the full install path or do you include a copy of the server exe with the project and call it with a relative path (or something else)? I wanted to implement this feature in a Unity project, but am wondering whether the full install path method would be consistent between users or if there is any problem with including the server exe inside the project. Do you have a snippet to share from your implementation?<br /><br />Here is my version, which uses the full URL path, but I'm still wondering if there is a better approach.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>        //check whether the tet server process is running and start it if needed<br />        string tetProcessName = &quot;EyeTribe&quot;; //name of tet server process<br />        string tetProcessExe = @&quot;C:\Program Files (x86)\EyeTribe\Server\EyeTribe.exe&quot;; //exe path<br />        bool tetProcessRunning = false; //flag to check whether tet server is already running<br />        Process&#91;&#93; allProcesses = Process.GetProcesses(); //store any running processes<br />        //loop through processes to find tet server<br />        foreach (Process theProcess in allProcesses) {<br />            try {<br />                if (theProcess.ProcessName == tetProcessName) {<br />                    //toggle flag<br />                    tetProcessRunning = true;<br />                    UnityEngine.Debug.Log(&quot;TET Server already running&quot;);<br />                }<br />            }<br />            //ignore any processes that Unity can't access<br />            catch (System.InvalidOperationException theException) {<br />                UnityEngine.Debug.Log(&quot;Process not accessible - ignore: &quot; /*+ theException*/);<br />            }<br />        }<br />        //start the process if it is not running<br />        if (tetProcessRunning == false) {<br />            UnityEngine.Debug.Log(&quot;Starting TET Server&quot;);<br />            Process.Start(tetProcessExe);<br />        }<br /></code></dd></dl><br /><br />Thanks,<br />John<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1666">skatajohn@johnmquick.com</a> — 03 Mar 2014, 15:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[a.vourvopoulos@gmail.com]]></name></author>
<updated>2014-01-30T19:07:35+02:00</updated>
<published>2014-01-30T19:07:35+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=223#p223</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=223#p223"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=223#p223"><![CDATA[
That's cool, thanks!<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1930">skataa.vourvopoulos@gmail.com</a> — 30 Jan 2014, 19:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Martin]]></name></author>
<updated>2014-01-30T15:14:39+02:00</updated>
<published>2014-01-30T15:14:39+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=217#p217</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=217#p217"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=217#p217"><![CDATA[
We just published our first <a href="https://github.com/EyeTribe/tet-unity-gazecam" class="postlink">Unity sample on GitHub</a>, it's using the CSharpClient. <br /><br /><img src="http://theeyetribe.com/images/unitySampleSmall.png" alt="Image" /><br /><br />The server runs standalone. You could potentially check if it's not running and start it using the standard .Net <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start(v=vs.110).aspx" class="postlink">Process.Start()</a> (this is how we do it for the EyeTribeUI)<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=117">skataMartin</a> — 30 Jan 2014, 15:14</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[a.vourvopoulos@gmail.com]]></name></author>
<updated>2014-01-28T19:44:58+02:00</updated>
<published>2014-01-28T19:44:58+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=204#p204</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=204#p204"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=204#p204"><![CDATA[
<blockquote><div><cite>Martin wrote:</cite><br />Came across a project on Github today by Rich Stoner:<br /><a href="https://github.com/richstoner/unofficial-eyetribe-unity3d" class="postlink">https://github.com/richstoner/unofficial-eyetribe-unity3d</a><br /><br />A similar sample from us is coming as well.<br /></div></blockquote><br /><br />Thanks, i will give it a try.<br />I guess it includes only a client so I have to run the EyeTribe server externaly  <img src="http://theeyetribe.com/forum/images/smilies/icon_e_confused.gif" alt=":?" title="Confused" /><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1930">skataa.vourvopoulos@gmail.com</a> — 28 Jan 2014, 19:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Martin]]></name></author>
<updated>2014-01-28T02:54:19+02:00</updated>
<published>2014-01-28T02:54:19+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=194#p194</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=194#p194"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=194#p194"><![CDATA[
Came across a project on Github today by Rich Stoner:<br /><a href="https://github.com/richstoner/unofficial-eyetribe-unity3d" class="postlink">https://github.com/richstoner/unofficial-eyetribe-unity3d</a><br /><br />A similar sample from us is coming as well.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=117">skataMartin</a> — 28 Jan 2014, 02:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[a.vourvopoulos@gmail.com]]></name></author>
<updated>2014-01-17T20:46:11+02:00</updated>
<published>2014-01-17T20:46:11+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=149#p149</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=149#p149"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=149#p149"><![CDATA[
<blockquote><div><cite>Martin wrote:</cite><br />Yes! Working on it, hope to release next week but no firm promise on it.<br /></div></blockquote><br /><br />That's great, thanks!<br /><br />I think Unity doesn't support Newtonsoft for de/serialising the data and I had some problems on that.<br />i plannig to use LitJson <a href="http://lbv.github.io/litjson/" class="postlink">http://lbv.github.io/litjson/</a> :/<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1930">skataa.vourvopoulos@gmail.com</a> — 17 Jan 2014, 20:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Martin]]></name></author>
<updated>2014-01-17T19:06:54+02:00</updated>
<published>2014-01-17T19:06:54+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=148#p148</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=148#p148"/>
<title type="html"><![CDATA[Re: Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=148#p148"><![CDATA[
Yes! Working on it, hope to release next week but no firm promise on it.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=117">skataMartin</a> — 17 Jan 2014, 19:06</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[a.vourvopoulos@gmail.com]]></name></author>
<updated>2014-01-17T16:59:09+02:00</updated>
<published>2014-01-17T16:59:09+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=147#p147</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=147#p147"/>
<title type="html"><![CDATA[Unity3D samples]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=38&amp;p=147#p147"><![CDATA[
Are there any available Unity3d samples?<br />Even in a primitive stage...<br /><br />Thanks.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1930">skataa.vourvopoulos@gmail.com</a> — 17 Jan 2014, 16:59</p><hr />
]]></content>
</entry>
</feed>