<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iKriz.nl</title>
	<atom:link href="http://www.ikriz.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ikriz.nl</link>
	<description></description>
	<lastBuildDate>Tue, 30 Apr 2013 20:26:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Unity Media WordPress Plugin</title>
		<link>http://www.ikriz.nl/2013/04/20/unity-wordpress-plugin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-wordpress-plugin</link>
		<comments>http://www.ikriz.nl/2013/04/20/unity-wordpress-plugin/#comments</comments>
		<pubDate>Sat, 20 Apr 2013 11:54:06 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[Webplayer]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=976</guid>
		<description><![CDATA[For all of those people out there with a wordpress site [...]]]></description>
				<content:encoded><![CDATA[<p>For all of those people out there with a wordpress site and a will to show some unity content. Here&#8217;s your chance to shine&#8230;<br />
You can use the plugin below to do exactly that, glad to be of assistance.</p>
<h3><span style="font-size: 1.17em;">Unity Media Plugin</span></h3>
<p>Unity Media Plugin allows you to upload various Unity Engine related files to your WordPress site. It also allows you to add a Unity Webplayer to your post.</p>
<p>Major features in Unity Media 1.0 are:</p>
<ul>
<li>Uploading of FBX files, .unitypackages and .unity3d files</li>
<li>Inserting multiple webplayers into your posts</li>
</ul>
<h4>Download:</h4>
<p>You can download my plugin here: <a class="downloadlink" href="http://www.ikriz.nl/download/u3dmedia.zip" title="Version1.0 downloaded 31 times" >Unity Media WP Plugin (31)</a></p>
<h4>Quickstart:</h4>
<p>1. Upload plugin zip to site<br />
2. Activate plugin<br />
3. You can now upload a .unity3d file<br />
4. And place the following tag in a post to add a unity webplayer to it:</p>
<pre>&#91;UnityMedia src="&lt;url of unity3d file&gt;" width=550 height=344&#93;</pre>
<p>Let me know if you like this plugin or if you think it&#8217;s missing some important feature, your welcome to comment or donate so I can update it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2013/04/20/unity-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Arduino: kWh Monitoring</title>
		<link>http://www.ikriz.nl/2013/03/09/kwh-monitoring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=kwh-monitoring</link>
		<comments>http://www.ikriz.nl/2013/03/09/kwh-monitoring/#comments</comments>
		<pubDate>Sat, 09 Mar 2013 22:36:02 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[kwh-meter]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[power usage]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=898</guid>
		<description><![CDATA[Inspired by a fellow ne2000-event goer http://juerd.nl/ [...]]]></description>
				<content:encoded><![CDATA[<p>Inspired by a fellow ne2000-event goer <a title="kWh-meter-meter" href="http://juerd.nl/site.plp/kwh" target="_blank">http://juerd.nl/site.plp/kwh (dutch site)</a> who made a kwh-meter-meter. I decided to also do something similar with my Arduino as it was just sitting idle in a box waiting for greatness&#8230;</p>
<p>To do such a project requires a light amount of electronics experience, although you can probably do it without. If you know how to solder and you can tell the difference between positive and negative connections then bob&#8217;s your uncle.</p>
<p>Before I could get started on this project I needed a few more electrical components like resistors, more flashy leds and what not. I ended up searching the web for a decent place to order the components (which turned out to be Reichelt.de) and ordered the IR Sensor for the project from a local electronics shop in Utrecht because reichelt.de didn&#8217;t have it. Three days after ordering all the bits and pieces a package arrived and I could start.</p>
<p>I soldered the TCRT5000 sensor to a piece of soldering board because I didn&#8217;t want to break any of its terminals fiddling with cables and such, plus it made for a better connection. Added the resistors and two leads for power to that piece of soldering board and then connected it up to the arduino read out the value and.. awesome it worked straight away.</p>
<p>After some tweaking of values I got a sensible reading from the Arduino for each cycle on my kWh meter. That was step one actually getting an event outside of the kwh-meter. Now the question was what to do with that.</p>
<p>In the example project that inspired me (juerd&#8217;s project) juerd had an OpenWRT router capturing values and storing them into an rrd file. As I dont have any OpenWRT or linux server I thought why not use <a title="Munin Monitoring" href="http://munin-monitoring.org/" target="_blank">Munin</a> to monitor my Arduino output.</p>
<p>To accomplish this I used my Ethernet shield as a webserver to serve values to a custom made munin plugin (which was easy to make). That saved me a problem because I already had munin running on a server of mine.</p>
<p><a href="http://www.ikriz.nl/wp-content/uploads/2013/03/kwh_stats.png"><img class="aligncenter size-medium wp-image-937" title="kwh_stats" src="http://www.ikriz.nl/wp-content/uploads/2013/03/kwh_stats-300x172.png" alt="" width="300" height="172" /></a></p>
<p>In using munin I have a polling time of 5 minutes which is more than enough to see the amount of power going out, but it would mean that if something used an excessive amount of power in a time period of less than 5 minutes then I could potentially miss it. To fix this I added a variable that gets reset after each web request and holds the highest value: maxwatt. That allows me to see when short bursts occur in my power usage. But overall the 5min poll time is just fine.</p>
<p>Yes it&#8217;s fairly low-tech at the moment but hey come on.. it&#8217;s an arduino project. Project code can be found <a title="Arduino Sketch" href="https://gist.github.com/ikriz/c8bdf8c72393da598468" target="_blank">here</a></p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/JhadrQupTUU?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p>A Quick update that this project is still working..<br />
It needed a slight adjustment because my provider hands out dynamic IP addresses, and the arduino lost track of its self after a while.<br />
So I had to change the order of execution in the loop and also added some dyndns updating..<br />
Here&#8217;s the latest day graph:</p>
<p><a href="http://www.ikriz.nl/wp-content/uploads/2013/03/kwh_stats-day.png"><img class="aligncenter size-medium wp-image-986" title="kwh_stats-day" src="http://www.ikriz.nl/wp-content/uploads/2013/03/kwh_stats-day-300x176.png" alt="" width="300" height="176" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2013/03/09/kwh-monitoring/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hello 2013&#8230; Happy New Year Everyone!</title>
		<link>http://www.ikriz.nl/2013/01/15/happy-2013/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=happy-2013</link>
		<comments>http://www.ikriz.nl/2013/01/15/happy-2013/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 18:07:52 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Asset Store]]></category>
		<category><![CDATA[Babycare]]></category>
		<category><![CDATA[New Year's Day]]></category>
		<category><![CDATA[Oppertunity]]></category>
		<category><![CDATA[Site Updates]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=855</guid>
		<description><![CDATA[2012 has been a great year with a cherry on top&#8230;  [...]]]></description>
				<content:encoded><![CDATA[<p><strong>2012</strong> has been a great year with a cherry on top&#8230; just before new years on the 27th my wife gave birth to our brand new daughter who is doing very well. This last year has been good, I got a permanent contract at work and we moved into our own house back in feb, all in all it&#8217;s been a rather eventful year. Of course the last few weeks have all been baby filled, now with things settling down and gradually getting in to the rhythm of broken sleep and changing diapers there is time in between to do grown up stuff.</p>
<p>What grown up stuff is there to be done? you may wonder?<br />
[Tech Talk]<br />
Well I noticed a few things on my site that needed fixing so i&#8217;ve tended to that, you&#8217;ll now notice that all unity webplayers on the site should be working much better. Plus i&#8217;ve updated the theme template to the newest version. Not to forget updating wordpress which was well over due.</p>
<p>In the near future I&#8217;m playing with the idea to switch hosting as this is getting to be a little over the top for something not generating much in return. If your reading this now your welcome to donate if you like what I do here, or if you have any tips for me please comment.</p>
<p>I may offer some nice stuff to the Unity Community via the Asset Store once I&#8217;ve figured out what that could/should be. If you have any requests or ideas for what an experienced Unity Developer should make and you&#8217;d be willing to pay a nice sum for it let me know.<br />
[/Tech Talk]</p>
<p>Other than all of that technical stuff, I&#8217;m looking forward to the remainder of 2013 and what it has to bring, as well as watching my daughter grow and build her character. I do hope everyone enjoys 2013 in good health and free of negative stuff, so.. for now I wish you all a <strong>happy new year!</strong></p>
<blockquote><p>Pro Tip: Don&#8217;t let the bed bugs bite and steer clear of smelly diapers.</p>
</blockquote>
<p><a href="http://www.ikriz.nl/2013/01/15/happy-2013/_mg_5037" rel="attachment wp-att-867"><img src="/wp-content/uploads/2013/01/MG_5037-e1358273659404.jpg" alt="_MG_5037" width="1365" height="2048" class="alignleft size-full wp-image-867" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2013/01/15/happy-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favorite Images</title>
		<link>http://www.ikriz.nl/2012/10/14/favorite-images/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=favorite-images</link>
		<comments>http://www.ikriz.nl/2012/10/14/favorite-images/#comments</comments>
		<pubDate>Sun, 14 Oct 2012 20:30:31 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=844</guid>
		<description><![CDATA[Favorite Images, a set on Flickr. These images are a se [...]]]></description>
				<content:encoded><![CDATA[<div style="padding: 0; overflow: hidden; margin: 0; width: 500px;"><a href="http://www.flickr.com/photos/ikrizmedia/2207249783/in/set-72157603763460039/" title="Myself" style="text-decoration: none;"><img src="http://farm3.staticflickr.com/2344/2207249783_0bf8a77efe_s.jpg" alt="Myself" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/2243008608/in/set-72157603763460039/" title="Fietspad" style="text-decoration: none;"><img src="http://farm3.staticflickr.com/2144/2243008608_68a061eee5_s.jpg" alt="Fietspad" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/2242214865/in/set-72157603763460039/" title="The Tree and I" style="text-decoration: none;"><img src="http://farm3.staticflickr.com/2231/2242214865_955d54698f_s.jpg" alt="The Tree and I" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/2208090472/in/set-72157603763460039/" title="Frozen Trees" style="text-decoration: none;"><img src="http://farm3.staticflickr.com/2033/2208090472_ef46976890_s.jpg" alt="Frozen Trees" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/2207358199/in/set-72157603763460039/" title="Cool Morning" style="text-decoration: none;"><img src="http://farm3.staticflickr.com/2234/2207358199_316feae51a_s.jpg" alt="Cool Morning" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/747703012/in/set-72157603763460039/" title="IMG_7783.JPG" style="text-decoration: none;"><img src="http://farm2.staticflickr.com/1316/747703012_5bed03d3a3_s.jpg" alt="IMG_7783.JPG" style="padding: 0 0 10px 0; width: 75px; height: 75px; float: left;"/></a><br clear="all" /><a href="http://www.flickr.com/photos/ikrizmedia/8085727669/in/set-72157603763460039/" title="P1070652" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8044/8085727669_63b3a79dd6_s.jpg" alt="P1070652" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/8085727108/in/set-72157603763460039/" title="IMG_0374" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8046/8085727108_cc35a651c4_s.jpg" alt="IMG_0374" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/8085727402/in/set-72157603763460039/" title="IMG_0335" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8327/8085727402_6d9756421f_s.jpg" alt="IMG_0335" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/8085728617/in/set-72157603763460039/" title="IMG_0080" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8051/8085728617_05f9b4140e_s.jpg" alt="IMG_0080" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/8085727992/in/set-72157603763460039/" title="IMG_0065" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8325/8085727992_39a34f9242_s.jpg" alt="IMG_0065" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/8085728334/in/set-72157603763460039/" title="IMG_0872" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8332/8085728334_65c2bf7896_s.jpg" alt="IMG_0872" style="padding: 0 0 10px 0; width: 75px; height: 75px; float: left;"/></a><br clear="all" /><a href="http://www.flickr.com/photos/ikrizmedia/8085728618/in/set-72157603763460039/" title="P1070831" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8046/8085728618_b21ea77914_s.jpg" alt="P1070831" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/ikrizmedia/8085732892/in/set-72157603763460039/" title="IMG_0236" style="text-decoration: none;"><img src="http://farm9.staticflickr.com/8052/8085732892_1d24e4f93b_s.jpg" alt="IMG_0236" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><img src="http://l.yimg.com/g/images/gallery-empty-icon.gif" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"><img src="http://l.yimg.com/g/images/gallery-empty-icon.gif" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"><img src="http://l.yimg.com/g/images/gallery-empty-icon.gif" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"><img src="http://l.yimg.com/g/images/gallery-empty-icon.gif" style="padding: 0 0 10px 0; width: 75px; height: 75px; float: left;"><br clear="all" /></div>
<div style="font-size: 0.8em; margin-top: 0px; margin-bottom: 5px">
<p><a href="http://www.flickr.com/photos/ikrizmedia/sets/72157603763460039/">Favorite Images</a>, a set on Flickr.</p>
<p>
These images are a selection of images i&#8217;ve taken over the years meant for admiring by the masses, I hope you like them please let me know if you do.
</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2012/10/14/favorite-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unity Post Process Mayhem</title>
		<link>http://www.ikriz.nl/2012/06/18/unity-post-process-mayhem/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-post-process-mayhem</link>
		<comments>http://www.ikriz.nl/2012/06/18/unity-post-process-mayhem/#comments</comments>
		<pubDate>Mon, 18 Jun 2012 15:24:58 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[PostprocessBuildPlayer]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=818</guid>
		<description><![CDATA[Are you sick and tired of forgetting to copy that data  [...]]]></description>
				<content:encoded><![CDATA[<p>Are you sick and tired of forgetting to copy that data file to the build directory after each and every standalone build in unity? Sure you could incorporate it into the project but you don&#8217;t want that, you just wish that PostProcessBuildPlayer script would work on windows. As of Unity 3.5.2 life just got better&#8230;</p>
<p>A long awaited function in Unity was a working post process build player script for standalone players on windows as it was already working on mac&#8217;s. As seen in the latest Release Notes and stated in the BuildPipeline a few things have changed.. Apparently the PostProscessBuildplayer script is not supported on windows, which is a bummer for windows users on the other hand it&#8217;s easily solved with a new and improved <em>UnityEditor.Callbacks</em> which is both usable on Windows and Mac, So here goes&#8230;</p>
<p>P.S. No this is not a custom build window script, it actually triggers from the existing Unity BuildWindow.</p>
<pre class="brush: csharp; title: ; notranslate">
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;

public static class PostBuildTrigger
{
    private static DirectoryInfo targetdir;
    private static string buildname;
    private static string buildDataDir;
    private static DirectoryInfo projectParent;

    // Name of folder in project directory containing files for build
    private static string srcName = &quot;CopyToBuild&quot;;
    private static int filecount;
    private static int dircount;

    /// Processbuild Function
    [PostProcessBuild] // &lt;- this is where the magic happens
    public static void OnPostProcessBuild(BuildTarget target, string path)
    {
        Debug.Log(&quot;Post Processing Build&quot;);

        // Get Required Paths
        projectParent = Directory.GetParent(Application.dataPath);
        buildname = Path.GetFileNameWithoutExtension(path);
        targetdir = Directory.GetParent(path);
        char divider = Path.DirectorySeparatorChar;
        string dataMarker = &quot;_Data&quot;; // Specifically for Windows Standalone build
        buildDataDir = targetdir.FullName + divider + buildname + dataMarker + divider;

        // Do Certain actions on your files (Copy, remove or email them to NASA your decision)
        filecount = 0;
        dircount = 0;
        CopyAll(new DirectoryInfo(projectParent.ToString() + divider + srcName), new DirectoryInfo(buildDataDir));

        Debug.Log(&quot;Copied: &quot; + filecount + &quot; file&quot; +((filecount!=1)?&quot;s&quot;:&quot;&quot;)+ &quot;, &quot; + dircount + &quot; folder&quot; +((dircount!=1)?&quot;s&quot;:&quot;&quot;));
    }

    /// &lt;summary&gt;
    /// Recursive Copy Directory Method
    /// &lt;/summary&gt;
    public static void CopyAll(DirectoryInfo source, DirectoryInfo target)
    {
        // Check if the target directory exists, if not, create it.
        if (Directory.Exists(target.FullName) == false)
        {
            dircount++;
            Directory.CreateDirectory(target.FullName);
        }

        // Copy each file into it’s new directory.
        foreach (FileInfo fi in source.GetFiles())
        {
            filecount++;
            fi.CopyTo(Path.Combine(target.ToString(), fi.Name), true);
        }

        // Copy each subdirectory using recursion.
        foreach (DirectoryInfo diSourceSubDir in source.GetDirectories())
        {
            dircount++;
            DirectoryInfo nextTargetSubDir = target.CreateSubdirectory(diSourceSubDir.Name);
            CopyAll(diSourceSubDir, nextTargetSubDir);
        }
    }
}
</pre>
<p>Your options say you want to add another method that runs before your current one then you can add a priority to the attribute like this:</p>
<pre class="brush: csharp; title: ; notranslate">
[PostProcessBuild(0)] // &lt;- this is where the magic happens
public static void OnPostProcessBuildFirst(BuildTarget target, string path)
{
    Debug.Log(&quot;I get Executed First&quot;);
}
</pre>
<p>NB: -10 is a higher priority than 100, the default priority is 1</p>
<p>You can use the method to do all kinds of things on your computer after a build is complete just a couple ideas:</p>
<ul>
<li>After a large build send an email with a link to the file saying the build is complete.</li>
<li>Play a sound notifiying you build is complete</li>
<li>Run a test on your build</li>
<li>And lots more&#8230;</li>
</ul>
<p>Anyway now you have the tools go make <img src='http://www.ikriz.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2012/06/18/unity-post-process-mayhem/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Unity Editor Macros</title>
		<link>http://www.ikriz.nl/2012/06/15/unity-editor-macros/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-editor-macros</link>
		<comments>http://www.ikriz.nl/2012/06/15/unity-editor-macros/#comments</comments>
		<pubDate>Fri, 15 Jun 2012 09:32:57 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[Macros]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=801</guid>
		<description><![CDATA[A while back the guys at unity released a version of th [...]]]></description>
				<content:encoded><![CDATA[<p>A while back the guys at unity released a version of their editor with macros enabled (by accident) in the current version is has been removed/disabled. (this because it&#8217;s something they use for testing and not meant for production environments)<br />
But with recent endeavours I found it&#8217;s possible to enable it in the editor making debugging stuff within the editor more entertaining, plus it adds a new window to the editor making your editor more of an editor.<br />
Please note this is not documented by unity and probably not supported either.</p>
<p>Simple script:</p>
<pre class="brush: csharp; title: ; notranslate">
using UnityEditor;
using UnityEditorInternal;
public class EnableMacros : Editor {
    [MenuItem (&amp;quot;Window/Macros&amp;quot;)]
    static void Init () {
		MacroWindow win = (MacroWindow)EditorWindow.CreateInstance&lt;MacroWindow&gt;();
		win.Show();
    }
}
</pre>
<p>How to use:<br />
Place this script in an Editor directory in your Assets and then:<br />
Go to <strong>Window</strong>-><strong>Macros</strong> and tadaa.. you have a new editor window that can record all your editor actions and execute new ones.<br />
May this help you on your endeavors of making cool new stuff for unity</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2012/06/15/unity-editor-macros/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unity Webcam Example</title>
		<link>http://www.ikriz.nl/2012/03/02/unity-webcam-example/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-webcam-example</link>
		<comments>http://www.ikriz.nl/2012/03/02/unity-webcam-example/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 21:33:52 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[World Wide Web]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=761</guid>
		<description><![CDATA[Please view the full post to see the Unity content. Cre [...]]]></description>
				<content:encoded><![CDATA[<p><em>Please view the full post to see the Unity content.</em></p>
<div>Created a quick example in Unity free version to show it&#8217;s possible without having the pro version.</div>
<div>This uses the <a title="Unity Video Remake: Webcam Textures" href="http://www.ikriz.nl/2011/12/23/unity-video-remake">webcam script I created earlier</a> on a simple plane.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2012/03/02/unity-webcam-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Project: MOBZ</title>
		<link>http://www.ikriz.nl/2011/12/31/project-mobz/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=project-mobz</link>
		<comments>http://www.ikriz.nl/2011/12/31/project-mobz/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 17:54:12 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[MOBZ]]></category>
		<category><![CDATA[Movares]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=680</guid>
		<description><![CDATA[For the past year (2011) I&#8217;ve been working at Mov [...]]]></description>
				<content:encoded><![CDATA[<p>For the past year (2011) I&#8217;ve been working at Movares on a simulator for the training of bridge &amp; lock operators. Operators of what??? the people that control locks/sluices for boats and plus some bridges.<br />
More info about MOBZ can be found <a title="MOBZ" href="http://www.rijkswaterstaat.nl/water/plannen_en_projecten/Modernisering_Objectenbediening_Zeeland/nieuws/Nieuwsbrief/mei2011/artikel1.aspx">here</a> and <a title="Movares MOBZ" href="http://movares.nl/project/trainingssimulator-bruggen-en-sluizen-mobz">here</a><br />
I now know a lot about them. I built the interface and logic behind the simulator all of it was done in the Unity Engine. Check out this video to see what is all about (sorry the voice is in dutch can&#8217;t help you there).</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='400' src='http://www.youtube.com/embed/p4RK3Xmu4dI?version=3&#038;rel=0&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2011/12/31/project-mobz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unity Video Remake: Webcam Textures</title>
		<link>http://www.ikriz.nl/2011/12/23/unity-video-remake/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-video-remake</link>
		<comments>http://www.ikriz.nl/2011/12/23/unity-video-remake/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 22:59:38 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[Camera]]></category>
		<category><![CDATA[Texture]]></category>
		<category><![CDATA[web cam]]></category>
		<category><![CDATA[WebCamTexture]]></category>
		<category><![CDATA[Webplayer]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=544</guid>
		<description><![CDATA[A while back I posted something about video capture in  [...]]]></description>
				<content:encoded><![CDATA[<p>A while back I posted <a title="Unity Video Capture" href="http://www.ikriz.nl/2011/11/18/unity-video-capture/">something about video capture</a> in Unity with a sad plea for beta access to version 3.5 which is now finally in <a title="Unity 3.5 public beta" href="http://unity3d.com/unity/preview/download" class="broken_link">public beta</a>, so I decided to do a new post.</p>
<h3>Setting up a Webcam Texture in Unity</h3>
<p>Now as you may have seen in the Script Reference (the only place to actually find something about a WebcamTexture) there is no Object like a RenderTexture for a WebCamTexture which makes it a tad more harder to work with (read: not as easy to drag and drop in to materials).</p>
<p>Quickest way to get this working is to drop the following script on an object. (please support me by clicking an ad)</p>
<a class="downloadlink" href="http://www.ikriz.nl/download/Webcam.txt" title="Version0.1 downloaded 4962 times" >Webcam Script (4962)</a>
<p>Checkout this script in action <a title="Unity Webcam Example" href="http://www.ikriz.nl/2012/03/02/unity-webcam-example">Webcam Example</a></p>
<p>Keep in mind that this in not the best way for multiple objects unless they all have the same material with the script on one object.<br />
<span style="color: #800000;">You can only have one WebCamTexture per webcam!</span></p>
<p><del>By the way.. Once 3.5 goes fully public I&#8217;ll put up a working example to give you a starting point, and so you can see yourself (if you have a camera connected of course) so keep an eye on my site <img src='http://www.ikriz.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </del></p>
<p>Once you&#8217;ve got the camera running it&#8217;s possible to do all kinds of things.. I Look forward to the future of Webcams in Unity all over the internets. <img src='http://www.ikriz.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>[ad]</p>
<h3>Issues: Cannot use web cam, since the user has not authorized this!</h3>
<p>In your attempt at getting the webcam running you may have come across the following error: (I did at least)</p>
<pre class="brush: plain; title: ; notranslate">Cannot use web cam, since the user has not authorized this!
UnityEngine.WebCamTexture:Play()</pre>
<p>You can squash this little one by changing your build platform to Standalone Mac/PC. Go to Build Settings -&gt; Select &#8220;PC and Mac Standalone&#8221; then click that little button at the bottom left &#8220;Switch Platform&#8221;, this, I think is something new.</p>
<p>The whole reason for this is because you probably have the Web player platform setup by default. This requires the user to first give permission to use their webcam because of privacy reasons. If you want to do this then you need to request the users permission by using the following piece of code:</p>
<pre class="brush: csharp; title: ; notranslate">
IEnumerator Start()
{
yield return Application.RequestUserAuthorization(UserAuthorization.WebCam);
if(Application.HasUserAuthorization(UserAuthorization.WebCam)) Debug.Log(&quot;Authorized&quot;);
}
</pre>
<p>Same goes for<em> UserAuthorization.Microphone</em>. When you use a standalone platform the authorization is no longer needed.</p>
<h3>Issues: The type or namespace name `WebCamTexture’ could not be found.</h3>
<p>Thanks to solehome for commenting on this one. The public beta 3.5 seems to have an error when using WebCamTextures in Flash builds.<br />
If you choose to build on a flash platform the following errors occurs:</p>
<pre class="brush: plain; title: ; notranslate">error CS0246: The type or namespace name `WebCamTexture’ could not be found.</pre>
<p>Are you missing a using directive or an assembly reference?<br />
Error building Player because scripts had compiler errors<br />
Solution to this problem... euhm dont build flash?</p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2011/12/23/unity-video-remake/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Unity Video Capture</title>
		<link>http://www.ikriz.nl/2011/11/18/unity-video-capture/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-video-capture</link>
		<comments>http://www.ikriz.nl/2011/11/18/unity-video-capture/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 21:52:39 +0000</pubDate>
		<dc:creator>iKriz</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[Computer programming]]></category>
		<category><![CDATA[OpenFrameworks]]></category>
		<category><![CDATA[Plug-in]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://www.ikriz.nl/?p=494</guid>
		<description><![CDATA[There once was a Unity Engine roadmap without any means [...]]]></description>
				<content:encoded><![CDATA[<p>There once was a Unity Engine roadmap without any means of capturing video or audio, conclusion: If you wanna do it right do it yourself or hope unity implements it themselves.. w00t v3.5 <img src='http://www.ikriz.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  well anyway before 3.5 my little plugin named Video Grabber was born&#8230;</p>
<p>Built on the basis of <a title="OpenFrameworks" href="http://www.openframeworks.cc" target="_blank">OpenFrameworks</a> (being one of the frameworks to handle video for windows &amp; mac at the same time) and also allowing for alot more fun.<br />
I successfully built this library as a plugin into <a title="Unity Technologies" href="http://www.unity3d.com" target="_blank" class="broken_link">Unity</a>. In doing this I can now capture pixels from the camera and transfer them to a texture in a scene. I even added in some face recognition to the whole shebang&#8230;<br />
It works quite well with a slight delay of a few milliseconds, but who really cares about that. BTW oF is doing some really cool stuff <img src='http://www.ikriz.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So what happens when you&#8217;ve almost finished a functioning Video Grabber (except for a couple of problems when stopping the plugin) you find out that Unity is going to implement it themselves.. of course.. Unity wouldn&#8217;t be Unity if they didn&#8217;t.. you need video we&#8217;ll put it right in there, how about some audio as well then.. whut? you want AI pathfinding&#8230; sure no problem. While we&#8217;re at it we&#8217;ll mix in a little UI update and some extra goodies&#8230; What can we expect in version 4.0? A &#8220;Generate AAA Game Concept&#8221; button™ all ready and waiting?</p>
<p>One thing&#8217;s for sure.. I&#8217;ve temporarily stopped working on my Video plugin with high expectations of Unity 3.5 coming.. <img src='http://www.ikriz.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<strong>[insert plea to beta group owner for a membership here with a cherry on top]</strong></p>
<p>If your interested in looking at what I&#8217;ve currently got for video grabbing add a comment below make sure to add your email address in the proper field (which will stay private) i&#8217;ll add you to the private repo and we maybe could start an open source project for the community. <img src='http://www.ikriz.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><center>[ad]</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ikriz.nl/2011/11/18/unity-video-capture/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
