<?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>Technical Art for Games</title>
	<atom:link href="http://adammechtley.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://adammechtley.com</link>
	<description>Tips, Tutorials, and Tools - by Adam Mechtley</description>
	<lastBuildDate>Fri, 18 Jan 2013 20:11:55 +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>Null Components and You</title>
		<link>http://adammechtley.com/2012/11/null-components-and-you/</link>
		<comments>http://adammechtley.com/2012/11/null-components-and-you/#comments</comments>
		<pubDate>Sat, 24 Nov 2012 18:38:49 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://adammechtley.com/?p=1220</guid>
		<description><![CDATA[Do you use the null coalescing operator?? If so, be careful about using it with properties of MonoBehaviour that return a component. For example, if you have an object with no rigidbody attached, the following example will not in fact add a rigidbody: Rigidbody rb = rigidbody ?? gameObject.AddComponent&#60;Rigidbody&#62;(); Why? For some reason, these built-in [...]]]></description>
				<content:encoded><![CDATA[<p>Do you use the <a href="http://msdn.microsoft.com/en-us/library/ms173224.aspx" title="null coalescing operator" target="_blank">null coalescing operator</a>?? If so, be careful about using it with properties of <a href="http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.html" title="MonoBehaviour" target="_blank">MonoBehaviour</a> that return a component. For example, if you have an object with no rigidbody attached, the following example will not in fact add a rigidbody:</p>
<p><code>Rigidbody rb = rigidbody ?? gameObject.AddComponent&lt;Rigidbody&gt;();</code></p>
<p>Why? For some reason, these built-in properties (such as <a href="http://docs.unity3d.com/Documentation/ScriptReference/Component-rigidbody.html?from=MonoBehaviour" title="rigidbody" target="_blank">rigidbody</a>, <a href="http://docs.unity3d.com/Documentation/ScriptReference/Component-collider.html?from=MonoBehaviour" title="collider" target="_blank">collider</a>, and so on), actual return an object of the appropriate type that evaluates to null, rather than an actual null reference, even when the component does not exist. For example, on an object with no rigidbody, this line will log true:</p>
<p><code>Debug.Log(rigidbody.Equals(null));</code> </p>
<p>On the other hand, this example will throw a NullReferenceException, as expected:</p>
<p><code>Rigidbody rb = GetComponent&lt;Rigidbody&gt;();<br />
Debug.Log(rb.Equals(null));</code></p>
<p>As such, you can rewrite the first example in the following way and it should work:</p>
<p><code>Rigidbody rb = GetComponent&lt;Rigidbody&gt;() ?? gameObject.AddComponent&lt;Rigidbody&gt;();</code></p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2012/11/null-components-and-you/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Unity Biped 2.0</title>
		<link>http://adammechtley.com/2012/11/unity-biped-2-0/</link>
		<comments>http://adammechtley.com/2012/11/unity-biped-2-0/#comments</comments>
		<pubDate>Thu, 15 Nov 2012 14:35:53 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General Interest]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://adammechtley.com/?p=1214</guid>
		<description><![CDATA[I finally emerge from my work cave today with an update to my Unity Biped tool, now compatible with Unity&#8217;s Mecanim animation system! Take a look at the 2.0 feature video below to get an idea of all of the new stuff. I just submitted it to the asset store this morning, so keep your [...]]]></description>
				<content:encoded><![CDATA[<p>I finally emerge from my work cave today with an update to my Unity Biped tool, now compatible with Unity&#8217;s Mecanim animation system! Take a look at the 2.0 feature video below to get an idea of all of the new stuff. I just submitted it to the asset store this morning, so keep your eyes peeled, and please let me know about your experiences using it.</p>
<p><iframe width="640" height="390" src="http://www.youtube.com/embed/bkIV7IYrlu8" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2012/11/unity-biped-2-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Any Biped Editor Users Out There?</title>
		<link>http://adammechtley.com/2012/08/any-biped-editor-users-out-there/</link>
		<comments>http://adammechtley.com/2012/08/any-biped-editor-users-out-there/#comments</comments>
		<pubDate>Sun, 26 Aug 2012 16:21:05 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://adammechtley.com/?p=1202</guid>
		<description><![CDATA[Unfortunately, as a content developer for the Unity Asset Store, I have no real means of contacting customers directly, so I&#8217;m hoping there are some of you out there who might get in touch with me. I&#8217;m working on some revisions to the Biped Editor, and am seriously considering committing some cardinal sins in the [...]]]></description>
				<content:encoded><![CDATA[<p>Unfortunately, as a content developer for the Unity Asset Store, I have no real means of contacting customers directly, so I&#8217;m hoping there are some of you out there who might get in touch with me.</p>
<p>I&#8217;m working on some revisions to the <a href="http://u3d.as/content/adam-mechtley/biped-editor/1ro">Biped Editor</a>, and am seriously considering committing some cardinal sins in the interest of making the code much easier for me to maintain and extend for future use. I&#8217;m looking at some technical changes that wouldn&#8217;t necessitate your updating in the middle of a project in production, but I wouldn&#8217;t want to prevent you from doing so if you wanted to take advantage of some new features. The main things I need to know right now are:</p>
<ul>
<li>Are there any public APIs on which your pipeline currently relies, apart from the automated setup and GetUp() methods? Considering how much coupling was in place already, I sincerely doubt it, but I also don&#8217;t want to push the big red button with little more than an assumption behind it.</li>
<li>How seriously would it inconvenience you to have to fix a couple of compiler errors if you got a new update? (e.g., de-nested nested classes, changing method signatures that use bools to use enums, etc.)</li>
<li>How seriously would it inconvenience you to have to redo automated setup?</li>
<li>How seriously would it inconvenience you to have to re-link your get up animations?</li>
</ul>
<p>Please feel free to contact me directly or to post here. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2012/08/any-biped-editor-users-out-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Accessibility</title>
		<link>http://adammechtley.com/2012/07/on-accessibility/</link>
		<comments>http://adammechtley.com/2012/07/on-accessibility/#comments</comments>
		<pubDate>Sun, 15 Jul 2012 21:01:06 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General Interest]]></category>

		<guid isPermaLink="false">http://adammechtley.com/?p=1186</guid>
		<description><![CDATA[Up to this point, I&#8217;ve always done motion retargetting in MotionBuilder. Just this week, I finally tried out Maya&#8217;s HumanIK tools. I really like a lot of the design work that has gone into them! Setting up a character and getting up and running was a snap. Graphical views, as well as type-in fields with [...]]]></description>
				<content:encoded><![CDATA[<p>Up to this point, I&#8217;ve always done motion retargetting in MotionBuilder. Just this week, I finally tried out Maya&#8217;s HumanIK tools. I really like a lot of the design work that has gone into them! Setting up a character and getting up and running was a snap. Graphical views, as well as type-in fields with autocompletion really made everything a pleasant experience. If you haven&#8217;t looked at Maya&#8217;s HumanIK tools before, it&#8217;s worth checking out two different views of the character definition controls:</p>
<p><img alt="Human IK GUIs in Autodesk Maya" src="http://adammechtley.com/images/hik_color.png" \></p>
<p>Unfortunately, for a not insignificant portion of the population, the same GUI looks like this:</p>
<p><img alt="Human IK GUIs in Autodesk Maya" src="http://adammechtley.com/images/hik_colorblind.png" \></p>
<p>While much about this GUI looks really nice and is laid out well, those of you out there with colorblindness are seeing the same image twice, and are unfortunately missing some of the most important information these GUIs convey about the state of the character definition at a glance. It&#8217;s nice to have the detail text in the corner, but not really ideal.</p>
<p>It&#8217;s easy for us to get wrapped up in technical/architectural pedantry or in details of layout and workflow, so it&#8217;s important to also keep accessibility in mind when we design tools for others to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2012/07/on-accessibility/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>GDC</title>
		<link>http://adammechtley.com/2012/01/gdc/</link>
		<comments>http://adammechtley.com/2012/01/gdc/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 02:11:56 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[General Interest]]></category>
		<category><![CDATA[Maya Python]]></category>

		<guid isPermaLink="false">http://adammechtley.com/?p=1170</guid>
		<description><![CDATA[I posted this over on our companion web site for the book, but figured it couldn&#8217;t hurt to cross post here for anyone who doesn&#8217;t regularly visit the book site. Seth, Kristine, and I will all be doing poster sessions related to Maya/Python stuff. If you happen to make it out to GDC please stop [...]]]></description>
				<content:encoded><![CDATA[<p>I posted this over on our <a href="http://www.maya-python.com/2012/01/gdc/">companion web site for the book</a>, but figured it couldn&#8217;t hurt to cross post here for anyone who doesn&#8217;t regularly visit the book site. Seth, Kristine, and I will all be doing poster sessions related to Maya/Python stuff. If you happen to make it out to GDC please stop by and say hi!</p>
]]></content:encoded>
			<wfw:commentRss>http://adammechtley.com/2012/01/gdc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
