<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>darkvertex.com</title> <link>http://darkvertex.com/wp</link> <description>Bringing CG to life, one rig at a time...</description> <lastBuildDate>Tue, 24 Aug 2010 04:17:36 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency>  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/darkvertex" /><feedburner:info uri="darkvertex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://darkvertex.com/wp/?pushpress=hub" /><item><title>And now for something completely different…</title><link>http://feedproxy.google.com/~r/darkvertex/~3/6iw0WneZYFE/</link> <comments>http://darkvertex.com/wp/2010/08/24/and-now-for-something-completely-different/#comments</comments> <pubDate>Tue, 24 Aug 2010 04:17:36 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[miscellaneous]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=360</guid> <description><![CDATA[I wanted to shamelessly plug a non-3D blog/project I started this month titled&#8230; &#8220;One Artist A Day&#8221; &#160; As the name implies, I intend on mentioning 1 (likely awesome :p) musician or band I genuinely enjoy, every single day for the forthcoming future. It&#8217;s been almost a month so far and it&#8217;s been a fun [...]]]></description> <content:encoded><![CDATA[<p>I wanted to shamelessly plug a non-3D blog/project I started this month titled&#8230;</p><p><h1><a href="http://oneartistaday.com/">&#8220;<strong>One Artist A Day</strong>&#8221;<br /> <img src="http://static.oneartistaday.com/hlinked/oneartistaday_promo_thumbnail.png" alt="One Artist A Day - music recommendation blog" /></a></h1><p>&nbsp;</p><p>As the name implies, I intend on mentioning 1 (likely awesome :p) musician or band I genuinely enjoy, every single day for the forthcoming future.</p><p>It&#8217;s been almost a month so far and it&#8217;s been a fun challenge to mention artists while trying to stay away from mainstream names. After all, I want to show you music you haven&#8217;t heard before, not what&#8217;s pumping on MTV or some lousy Top40s&#8217;-like radio show. (I miss when MTV had music in it; don&#8217;t you?)</p><p>So&#8230; <a href="http://oneartistaday.com/">check out my new blog!</a> <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I will of course continue to keep this one and as soon as production slows a little where I&#8217;m working at I will be posting a backlog of educational content I have been meaning to submit for a while. (I currently have 9 drafts of coolness in my WordPress waiting for you.)</p><p>Last but not least, I welcome any music suggestions if anyone&#8217;s reading this and want to leave a comment down below. I promise to give you credit and link to your blog if I use your suggestion.</p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/6iw0WneZYFE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/08/24/and-now-for-something-completely-different/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/08/24/and-now-for-something-completely-different/</feedburner:origLink></item> <item><title>Python: Distance between 2 Position Vectors</title><link>http://feedproxy.google.com/~r/darkvertex/~3/AihrdVX0FyE/</link> <comments>http://darkvertex.com/wp/2010/06/05/python-distance-between-2-vectors/#comments</comments> <pubDate>Sun, 06 Jun 2010 00:05:31 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[maya]]></category> <category><![CDATA[softimage]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[python]]></category> <category><![CDATA[scripting]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=307</guid> <description><![CDATA[This post surged from a question at a forum where somebody tried to use the ctr_dist() function &#8212; that returns distance between two object centers &#8212; in a Softimage script only to realise that actually it only exists for expressions, not scripting. Here&#8217;s my take on said function for both Softimage and Maya&#8230; First of [...]]]></description> <content:encoded><![CDATA[<p>This post surged from a question <a href="http://www.xsiforum.com/forum/index.php/topic,7677.0.html">at a forum</a> where somebody tried to use the <a href="http://softimage.wiki.softimage.com/sdkdocs/ref_quickref_DistanceFunctions.htm"><strong>ctr_dist()</strong></a> function &#8212; <em>that returns distance between two object centers</em> &#8212; in a Softimage script only to realise that actually it only exists for expressions, not scripting.</p><p>Here&#8217;s my take on said function for both Softimage and Maya&#8230;<br /> <span id="more-307"></span><br /><hr /></p><p>First of all, we need to know the math behind it. Knowing global position vectors A and B, the formula for the distance (d) between them would be:<br /> <span style="white-space: nowrap; font-size:larger"><br /> d = &radic;<span style="text-decoration:overline;">&nbsp; Ax-Bx<sup>2</sup> + Ay-By<sup>2</sup> + Az-Bz<sup>2</sup> &nbsp;</span><br /> </span><br /></p><p>I&#8217;ve decided to borrow sqrt() and pow() functions from Python&#8217;s <a href="http://docs.python.org/library/math.html">math</a> library, by the way.</p><p>First let&#8217;s see how to do this with Python in Softimage:</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">xsi = Application
lm = xsi.<span style="color: black;">LogMessage</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> ctr_dist<span style="color: black;">&#40;</span> objA, objB <span style="color: black;">&#41;</span>:
	<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">math</span> <span style="color: #ff7700;font-weight:bold;">import</span> sqrt,<span style="color: #008000;">pow</span>
&nbsp;
	Ax, Ay, Az = objA.<span style="color: black;">Kinematics</span>.<span style="color: black;">Global</span>.<span style="color: black;">Transform</span>.<span style="color: black;">GetTranslationValues2</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	Bx, By, Bz = objB.<span style="color: black;">Kinematics</span>.<span style="color: black;">Global</span>.<span style="color: black;">Transform</span>.<span style="color: black;">GetTranslationValues2</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
	<span style="color: #ff7700;font-weight:bold;">return</span> sqrt<span style="color: black;">&#40;</span>  <span style="color: #008000;">pow</span><span style="color: black;">&#40;</span>Ax-Bx,<span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span> + <span style="color: #008000;">pow</span><span style="color: black;">&#40;</span>Ay-By,<span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span> + <span style="color: #008000;">pow</span><span style="color: black;">&#40;</span>Az-Bz,<span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span>  <span style="color: black;">&#41;</span>
<span style="color: #808080; font-style: italic;"># -------------------------</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;"># Try it out with 2 selected objects:</span>
fromObj, toObj = xsi.<span style="color: black;">Selection</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span>, xsi.<span style="color: black;">Selection</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
&nbsp;
lm<span style="color: black;">&#40;</span>
<span style="color: #483d8b;">&quot;Distance between &lt;&quot;</span>+fromObj.<span style="color: black;">FullName</span>+<span style="color: #483d8b;">&quot;&gt; to &lt;&quot;</span>+toObj.<span style="color: black;">FullName</span>+<span style="color: #483d8b;">&quot;&gt; is: &quot;</span>
+<span style="color: #008000;">str</span><span style="color: black;">&#40;</span> ctr_dist<span style="color: black;">&#40;</span>fromObj, toObj<span style="color: black;">&#41;</span> <span style="color: black;">&#41;</span>
<span style="color: black;">&#41;</span></pre></div></div><p>Now let&#8217;s repurpose it for <a href="http://code.google.com/p/pymel/">PyMEL</a> in Maya, without using <a href="http://www.3dtutorialzone.com/tutorial?id=106">distance nodes</a>:</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> pymel.<span style="color: black;">core</span> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #66cc66;">*</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> ctr_dist<span style="color: black;">&#40;</span> objA, objB <span style="color: black;">&#41;</span>:
	<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">math</span> <span style="color: #ff7700;font-weight:bold;">import</span> sqrt,<span style="color: #008000;">pow</span>
&nbsp;
	Ax, Ay, Az = objA.<span style="color: black;">getTranslation</span><span style="color: black;">&#40;</span>space=<span style="color: #483d8b;">&quot;world&quot;</span><span style="color: black;">&#41;</span>
	Bx, By, Bz = objB.<span style="color: black;">getTranslation</span><span style="color: black;">&#40;</span>space=<span style="color: #483d8b;">&quot;world&quot;</span><span style="color: black;">&#41;</span>
&nbsp;
	<span style="color: #ff7700;font-weight:bold;">return</span> sqrt<span style="color: black;">&#40;</span>  <span style="color: #008000;">pow</span><span style="color: black;">&#40;</span>Ax-Bx,<span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span> + <span style="color: #008000;">pow</span><span style="color: black;">&#40;</span>Ay-By,<span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span> + <span style="color: #008000;">pow</span><span style="color: black;">&#40;</span>Az-Bz,<span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span>  <span style="color: black;">&#41;</span>
<span style="color: #808080; font-style: italic;"># -------------------------</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;"># Try it out with 2 selected objects:</span>
sel = ls<span style="color: black;">&#40;</span>sl=<span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Distance between &lt;&quot;</span>+sel<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>+<span style="color: #483d8b;">&quot;&gt; to &lt;&quot;</span>+sel<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>+<span style="color: #483d8b;">&quot;&gt; is: &quot;</span>+<span style="color: #008000;">str</span><span style="color: black;">&#40;</span> ctr_dist<span style="color: black;">&#40;</span>sel<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>,sel<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span> <span style="color: black;">&#41;</span></pre></div></div><p>By the way, note the awesomeness of Python for letting you assign multiple variables from an array using a single line. That&#8217;s pretty nice. <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Hope somebody finds this useful! You can use it a <strong>measuring tool</strong> or for <strong>distance-dependent rigging logic</strong>.</p><p><strong>If you do use it for rigging</strong>, please remember that <strong>if you want the distance to stay the same while a character is scaled, you must divide the distance by the scaling value.</strong></p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/AihrdVX0FyE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/06/05/python-distance-between-2-vectors/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/06/05/python-distance-between-2-vectors/</feedburner:origLink></item> <item><title>Benchmarking your Python experiments</title><link>http://feedproxy.google.com/~r/darkvertex/~3/dZV_436gwo8/</link> <comments>http://darkvertex.com/wp/2010/05/19/benchmarking-python-code/#comments</comments> <pubDate>Wed, 19 May 2010 23:58:10 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[tutorials]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[python]]></category> <category><![CDATA[script]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[tricks]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=288</guid> <description><![CDATA[Which is the fastest way to do this or that? Why not try them all and benchmark! All you need to do is lock at the time.clock()&#8230; # We need this for OS detection: from platform import system as OStype &#160; # Step 1: tick, tock... from time import clock start_time = clock&#40;&#41; &#160; &#160; [...]]]></description> <content:encoded><![CDATA[<p>Which is the fastest way to do this or that? Why not try them all and benchmark! <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>All you need to do is lock at the <a href="http://docs.python.org/library/time.html#time.clock">time.clock()</a>&#8230;<br /> <span id="more-288"></span></p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;"># We need this for OS detection:</span>
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">platform</span> <span style="color: #ff7700;font-weight:bold;">import</span> system <span style="color: #ff7700;font-weight:bold;">as</span> OStype
&nbsp;
<span style="color: #808080; font-style: italic;"># Step 1: tick, tock...</span>
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">time</span> <span style="color: #ff7700;font-weight:bold;">import</span> clock
start_time = clock<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;"># Step 2: ???</span>
<span style="color: #808080; font-style: italic;"># (You do your procedures here.)</span>
<span style="color: #808080; font-style: italic;"># You NEED to do SOMETHING. Don't leave this blank!!</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Here's a filler of nothingness:</span>
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">time</span> <span style="color: #ff7700;font-weight:bold;">import</span> sleep
sleep<span style="color: black;">&#40;</span><span style="color: #ff4500;">0.05</span><span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;"># Step 3: calculate duration</span>
timeTaken = clock<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> - start_time
&nbsp;
<span style="color: #808080; font-style: italic;"># In Windows clock() returns seconds but in Linux it's milliseconds, so:</span>
units = <span style="color: black;">&#91;</span><span style="color: #483d8b;">&quot;seconds&quot;</span> <span style="color: #ff7700;font-weight:bold;">if</span> OStype<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">is</span> <span style="color: #483d8b;">&quot;Windows&quot;</span> <span style="color: #ff7700;font-weight:bold;">else</span> <span style="color: #483d8b;">&quot;milliseconds&quot;</span><span style="color: black;">&#93;</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>
&nbsp;
msg = <span style="color: #483d8b;">&quot;It took &quot;</span>+<span style="color: #008000;">str</span><span style="color: black;">&#40;</span>timeTaken<span style="color: black;">&#41;</span>+<span style="color: #483d8b;">&quot; &quot;</span>+units+<span style="color: #483d8b;">&quot; to process your code.&quot;</span>
&nbsp;
Application.<span style="color: black;">LogMessage</span><span style="color: black;">&#40;</span>msg<span style="color: black;">&#41;</span> <span style="color: #808080; font-style: italic;"># if you're in Softimage,</span>
<span style="color: #808080; font-style: italic;"># otherwise use print() or whatever.</span></pre></div></div><p>I tried to make the snippet above as generic as possible, but if you&#8217;re using Python in Softimage, you can use XSIUtils.IsWindowsOS() for detecting Windows instead of my OStype stuff.</p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/dZV_436gwo8" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/05/19/benchmarking-python-code/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/05/19/benchmarking-python-code/</feedburner:origLink></item> <item><title>Softimage: Undocumented TEMP Folder that cleans up after itself</title><link>http://feedproxy.google.com/~r/darkvertex/~3/8CiXYcqS2vQ/</link> <comments>http://darkvertex.com/wp/2010/05/04/undocumented-softimage-temp-directory/#comments</comments> <pubDate>Wed, 05 May 2010 01:37:39 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[softimage]]></category> <category><![CDATA[script]]></category> <category><![CDATA[tips]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=262</guid> <description><![CDATA[Environment variables are no secret and neither is the system-set &#8220;TEMP&#8221; variable, but what is not really mentioned in the SDK Docs is that Softimage overrides the TEMP and TMP environment variables with a temporary folder made by XSI: LogMessage&#40; XSIUtils.Environment&#40;&#34;TEMP&#34;&#41; &#41;; If I run that (JavaScript) I get something like: C:\Users\Alan\AppData\Local\Temp\XSI_Temp_15076 The number is [...]]]></description> <content:encoded><![CDATA[<p>Environment variables are no secret and neither is the system-set &#8220;TEMP&#8221; variable, but what is not really mentioned in the <em>SDK Docs</em> is that Softimage overrides the TEMP and TMP environment variables with a temporary folder made by XSI:</p><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">LogMessage<span style="color: #009900;">&#40;</span> XSIUtils.<span style="color: #660066;">Environment</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TEMP&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>If I run that (JavaScript) I get something like: <strong>C:\Users\Alan\AppData\Local\Temp\XSI_Temp_15076</strong><br /> <span id="more-262"></span><br /> The number is unique every time and if you open multiple XSI sessions, each will get their own temp folder. <strong><span style="color: #ff0000;">If you close Softimage, the corresponding temp folder is deleted completely.</span></strong></p><p>This is a much more elegant solution to temporary filepaths because <strong>you don&#8217;t have to waste time coding a purging/cleanup mechanism in your plugin.</strong></p><p>Furthermore, <strong><span style="color: #ff0000;">if Softimage crashes it will get cleaned anyways next time you run it.</span></strong> It seems to check for XSI_Temp_* folders on startup and delete any that are not in use by an existing session.</p><p>I found this feature by accident when I needed a temp file function for a scripted tool I was working on. I was expecting to get the normal TEMP path set by Windows, but to my surprise Softimage had overriden it with their own that autopurges by itself. Handy! <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/8CiXYcqS2vQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/05/04/undocumented-softimage-temp-directory/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/05/04/undocumented-softimage-temp-directory/</feedburner:origLink></item> <item><title>New demoreel!</title><link>http://feedproxy.google.com/~r/darkvertex/~3/gUK2S4z6u6o/</link> <comments>http://darkvertex.com/wp/2010/04/19/new-reel/#comments</comments> <pubDate>Mon, 19 Apr 2010 15:42:49 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[work]]></category> <category><![CDATA[reel]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=254</guid> <description><![CDATA[I have put together a new demoreel. I hope you like watching it as much as I liked doing the work in it. Best enjoyed in fullscreen HD: I&#8217;m looking for a position around Toronto and also available for freelancing. Click here for my resume and if you&#8217;d like a 1080p quicktime download this link.]]></description> <content:encoded><![CDATA[<p>I have put together a new demoreel. I hope you like watching it as much as I liked doing the work in it. <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Best enjoyed in fullscreen HD:</p><p><object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf" width="500" height="281"><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><param name="movie" value="http://vimeo.com/moogaloop.swf"/><param name="flashvars" value="clip_id=10995358&#038;server=vimeo.com&#038;fullscreen=1&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF"/></object></p><p><del datetime="2010-05-25T04:54:58+00:00">I&#8217;m looking for a position around Toronto</del> and also available for freelancing.</p><p><a href="http://s3.darkvertex.com/reel/Alan.Fregtman_resume_2010.pdf">Click here for my resume</a> and if you&#8217;d like a 1080p quicktime <a href="http://cdn.darkvertex.com/reel/AlanFregtman_2010_reel_HD.mp4">download this link.</a></p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/gUK2S4z6u6o" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/04/19/new-reel/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/04/19/new-reel/</feedburner:origLink></item> <item><title>Commercial: Excel Critters</title><link>http://feedproxy.google.com/~r/darkvertex/~3/9OOEAFa0rfE/</link> <comments>http://darkvertex.com/wp/2010/04/02/commercial-excel-critters/#comments</comments> <pubDate>Fri, 02 Apr 2010 23:54:31 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[work]]></category> <category><![CDATA[commercials]]></category> <category><![CDATA[softimage]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=238</guid> <description><![CDATA[This was completed and aired recently. It was fun job. I did all the rigging. Oh, and it features a brand new Excel critter, Garlic! ps: Check out Donut when he goes into the x-ray machine.]]></description> <content:encoded><![CDATA[<p>This was completed and aired recently. It was fun job. I did all the rigging. <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf" width="500" height="375"><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><param name="movie" value="http://vimeo.com/moogaloop.swf"/><param name="flashvars" value="clip_id=10364401&#038;server=vimeo.com&#038;fullscreen=1&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF"/></object></p><p>Oh, and it features a brand new Excel critter, Garlic!</p><p>ps: Check out Donut when he goes into the x-ray machine.</p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/9OOEAFa0rfE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/04/02/commercial-excel-critters/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/04/02/commercial-excel-critters/</feedburner:origLink></item> <item><title>Commercial: Dairy Farms, Cheese characters</title><link>http://feedproxy.google.com/~r/darkvertex/~3/24_jZzwXQyc/</link> <comments>http://darkvertex.com/wp/2010/03/27/dairy-farms-cheese-commercials/#comments</comments> <pubDate>Sun, 28 Mar 2010 02:23:36 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[work]]></category> <category><![CDATA[commercials]]></category> <category><![CDATA[softimage]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=225</guid> <description><![CDATA[These two new Dairy Farms commercials aired and completed recently. I did the rigging of the characters and props. The above are a continuation of a series of two previous commercials I also did the rigging for. Since they weren&#8217;t posted on the blog before, might as well show you now: (The top of the [...]]]></description> <content:encoded><![CDATA[<p>These two new Dairy Farms commercials aired and completed recently. I did the rigging of the characters and props.</p><p><object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf" width="500" height="281"><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><param name="movie" value="http://vimeo.com/moogaloop.swf"/><param name="flashvars" value="clip_id=9992908&#038;server=vimeo.com&#038;fullscreen=1&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF"/></object></p><p><object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf" width="500" height="281"><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><param name="movie" value="http://vimeo.com/moogaloop.swf"/><param name="flashvars" value="clip_id=9990420&#038;server=vimeo.com&#038;fullscreen=1&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF"/></object></p><p><span id="more-225"></span><br /> The above are a continuation of a series of two previous commercials I also did the rigging for. Since they weren&#8217;t posted on the blog before, might as well show you now:</p><p><object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf" width="500" height="281"><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><param name="movie" value="http://vimeo.com/moogaloop.swf"/><param name="flashvars" value="clip_id=9431554&#038;server=vimeo.com&#038;fullscreen=1&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF"/></object></p><p>(The top of the CG broccoli is done with ICE instances.)</p><p><object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf" width="500" height="281"><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><param name="movie" value="http://vimeo.com/moogaloop.swf"/><param name="flashvars" value="clip_id=9431577&#038;server=vimeo.com&#038;fullscreen=1&#038;show_title=1&#038;show_byline=1&#038;show_portrait=1&#038;color=00ADEF"/></object></p><p>All the 3D made with Autodesk Softimage. Compositing in Autodesk Inferno.</p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/24_jZzwXQyc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/03/27/dairy-farms-cheese-commercials/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/03/27/dairy-farms-cheese-commercials/</feedburner:origLink></item> <item><title>Softimage: RefModel Deltas’ Hygiene in Production</title><link>http://feedproxy.google.com/~r/darkvertex/~3/WqHkPP0LRAQ/</link> <comments>http://darkvertex.com/wp/2010/02/21/clean-softimage-deltas/#comments</comments> <pubDate>Sun, 21 Feb 2010 20:38:27 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[softimage]]></category> <category><![CDATA[tools]]></category> <category><![CDATA[script]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[tool]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=185</guid> <description><![CDATA[I used to think refmodels were buggy, annoying and out to get me. After some exploration, they exhibit a couple patterns of fixable issues. Let&#8217;s bring them to light, shall we? Here&#8217;s some of my observations with them in the context of artists animating a referenced rig in production: StoredExpressions doesn&#8217;t always store expressions. They [...]]]></description> <content:encoded><![CDATA[<p>I used to think refmodels were buggy, annoying and out to get me. After some exploration, they exhibit a couple patterns of fixable issues. Let&#8217;s bring them to light, shall we?</p><p>Here&#8217;s some of my observations with them in the context of artists animating a referenced rig in production:<br /> <span id="more-185"></span></p><ul><li><strong>StoredExpressions</strong> doesn&#8217;t always store expressions. They actually show up in StoredPositions almost every time you touch something with an expression. They often also break / stop evaluating when this happens. (They often get stored even when you disable storing of expressions in your Delta, but it&#8217;s hard to repro.)<br /> &nbsp;</li><li><strong>StoredPositions</strong> remembers transforms by the mere act of selecting and having translate/rotate/scale tool active. While not exactly a bug, it easily causes problems if you edit centers later on, because the transforms get remembered and so it causes a wacky offset.<br /> Stuff can exist in both StoredPositions and StoredFCurves but it shouldn&#8217;t. If it&#8217;s keyed/animated, keys take priority, which means you got redundant junk in StoredPositions. XSI won&#8217;t remove the StoredPositions entry when setting a key (which makes a StoredFCurves entry.)<br /> &nbsp;</li><li><strong>StoredPositions</strong> will (from time to time) remember changes to a referenced material&#8217;s parameters. This combines with the annoyance of updating a material later and having old values mysteriously enforced on it because they were in StoredPositions and shared the same names. (Maybe a better name is &#8220;StoredValues&#8221;, since it stores more than <em>positions</em>.)<br /> &nbsp;</li><li>Generally rigs don&#8217;t come preanimated so there&#8217;s no point for &#8220;<strong>StoredRemoveAnimations</strong>&#8221; to exist. It gets created whenever you remove keys from something in the rig.<br /> &nbsp;</li><li><strong>StoredConstraints</strong> remembers constraint relations by explicit naming. Sometimes these don&#8217;t update when the objects name changes, and sometimes they do.<br /> So say if you constrain an arm of the referenced character rig to a null you just made, THEN rename the null, there&#8217;s a very high chance when you save and reopen the constraint won&#8217;t be connected, since it will be expecting the original null name. The good news is you can open the Delta in an Explorer, doubleclick the StoredConstraints subproperty and rename the object names in each row to whatever are the correct ones.<br /> &nbsp;</li><li>Whenever you edit contents of a Delta by hand and want to see the updated result, you must rightclick on the referenced model in an Explorer and &#8220;<em>Update Referenced Model</em>.&#8221;<br /> &nbsp;</li><li>You need a Delta per model&#8230; and in the case of having a rig with one or more models inside it, this rule still applies.<br /> &nbsp;</li><li>Just because a Delta sits below a model that doesn&#8217;t necessarily mean that is the model it&#8217;s working on. It&#8217;s actually working on whatever its &#8220;Target&#8221; parameter specifies.<br /> &nbsp;</li><li>If &#8220;<em>Record</em>&#8221; isn&#8217;t <strong>ON</strong> (in the Delta&#8217;s PPG) before you make changes, they don&#8217;t get saved. End of story. &#8212; Turning it on after doing changes won&#8217;t save your ass. (Good thing it&#8217;s on by default, eh?)<br /> &nbsp;</li><li>If you have a convoluted/complex rig that crashes when you do &#8220;<em>Update Reference Model</em>&#8221; or when simply offloading, but works fine otherwise&#8230; if you need to update the refmodel path, you can do this without opening your scene by editing the relevant scntoc file and then when you open your scene it&#8217;ll be path you wanted. <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br /> &nbsp;</li><li>When you duplicate a material from a referenced model, it duplicates fine EXCEPT for the image clips/sources, which stay referenced and when you reopen the scene, they will have dissapeared.<br /> &nbsp;</li><li>Using <strong>Animation Layers</strong> with referenced models is <s><strong>not to be trusted</strong>.</s> [*<strong>update</strong>*: Steven Caron from Blur Studios has noted that as of Soft 2010 SP1, animation layers work fine with referenced models. Beware if you are using a previous version.]<br /> If you use them, always open the scene you just saved in a new XSI without closing the first one so you can check that when it opens all the animation is still there and works properly. (I haven&#8217;t confirmed, but I believe I read on the mailing list that you can collapse animation layers before you save and then it&#8217;s okay.)<br /> &nbsp;</li><li>Someone on the Softimage mailing list mentioned once that only the first Delta for a particular model remembers Mixer stuff like actionclips and such, regardless of what you set. Good to bare in mind.</li></ul><p>At work I made two relatively simple scripts that help us with refmodel woes. I&#8217;d like to share them with you:</p><p>&nbsp;</p><hr /> <strong>&#8220;Import Referenced Rig&#8221;:</strong><br /> If you do File-&gt;Import-&gt;Referenced Model and begin working without doing anything, it&#8217;s set to remember *anything* and *everything*. It&#8217;ll break in no time.</p><p>This really simple script imports a refmodel, make a fresh empty delta for it (and extra Deltas for any models in it) and sets these defaults automatically:</p><ul><li>Static Pos and Other Parameters ON</li><li>FCurves ON</li><li>Expressions OFF</li><li>Constraints ON</li><li>Animation Mixer ON</li><li>Group Relations ON<br /> (this stores partitions relationships so it&#8217;s very important!)</li><li>Model Instances OFF<br /> (could be left ON if you need it)</li><li>External Connections ON<br /> (this remembers stuff like constraining something in the refmodel to an external object)</li><li>New Properties OFF</li><li>Clusters OFF</li><li>Cluster Properties OFF</li><li>Operators OFF</li></ul><p>then in Mixer Modifications:</p><ul><li>Animation ON</li><li>Shapes OFF</li><li>Audio ON</li><li>Cache ON</li></ul><p>These are the ideal settings for using a referenced model to move/animate it, put it in partitions/groups/layers and render.</p><p><a href="http://wpfiles.darkvertex.com/wp/wp-content/uploads/2010/02/AF_ImportRefModelForAnimation.py">Download the <strong><em>AF_ImportRefModelForAnimation.py</em></strong> Python script here.</a> Make it into a button or incorporate it into your workflow tools if you have any.</p><p>&nbsp;</p><hr /><p><strong>&#8220;Clean Delta&#8221;:</strong><br /> It deletes stuff from a Delta that shouldn&#8217;t be there if you just wanted to animate and render a referenced rig or model. See the code for more specifics.</p><p><a href="http://wpfiles.darkvertex.com/wp/wp-content/uploads/2010/02/AF_DeltaCleaner.py">Download the <strong><em>AF_DeltaCleaner.py</em></strong> Python script here</a> and run it from a button with refmodels selected. I&#8217;ve left plenty of code comments to make sense of what it does. I urge you to read them.</p><hr /> &nbsp;</p><p>I hope these scripts assist you in having a more pleasant experience with referenced models. They&#8217;re actually quite wonderful after you learn their quirks.</p><p>If anyone has anything else to say about deltas, modifications, suggestions, code improvements, constructive critique, cheese and monkeys, etc. please leave a comment. Thank you. <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/WqHkPP0LRAQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/02/21/clean-softimage-deltas/feed/</wfw:commentRss> <slash:comments>4</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/02/21/clean-softimage-deltas/</feedburner:origLink></item> <item><title>Softimage: Automatic Symmetry Mapping Template</title><link>http://feedproxy.google.com/~r/darkvertex/~3/kxKcuS4eHVg/</link> <comments>http://darkvertex.com/wp/2010/01/18/auto-symmetry-mapping-template/#comments</comments> <pubDate>Mon, 18 Jan 2010 20:41:16 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[softimage]]></category> <category><![CDATA[tools]]></category> <category><![CDATA[script]]></category> <category><![CDATA[tool]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=151</guid> <description><![CDATA[If you do rigging in Softimage you probably know when trying to Mirror Weights it only pays attention to the last created Symmetry Mapping Template for that model. There&#8217;s no interface to append to or join mapping templates. It gets annoying having to recreate them and verify that Soft guessed all the correct symmetrical equivalents, [...]]]></description> <content:encoded><![CDATA[<p>If you do rigging in Softimage you probably know when trying to <em>Mirror Weights</em> it only pays attention to the last created Symmetry Mapping Template for that model. There&#8217;s no interface to append to or join mapping templates. It gets annoying having to recreate them and verify that Soft guessed all the correct symmetrical equivalents, so&#8230;</p><p><span id="more-151"></span><br /> The following Python script iterates through your selected enveloped objects, creates SymmetryMaps if one doesn&#8217;t exist, and then goes through their envelope deformers and appends them to the SymmetryMappingTemplate for that model based on the naming convention of prefixing &#8220;L_&#8221; for left-side and &#8220;R_&#8221; for right-side objects.</p><p>It assumes the following: (and maybe in the future I&#8217;ll make the code smarter&#8230;)<br /> - Your selected objects all have envelopes.<br /> - Your left-side objects begin with &#8220;L_&#8221; and the right-side with &#8220;R_&#8221;.<br /> - All your selected objects belong to the same Model.<br /> - That you don&#8217;t have more than one SymmetryMappingTemplate under your model. (It will append to the first one found under the model, and create one if one isn&#8217;t found.) I recommend not having one to start with.</p><p>Make yourself a button with this:</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">xsi = Application
lm = xsi.<span style="color: black;">LogMessage</span>
<span style="color: #ff7700;font-weight:bold;">from</span> win32com.<span style="color: black;">client</span> <span style="color: #ff7700;font-weight:bold;">import</span> constants <span style="color: #ff7700;font-weight:bold;">as</span> c
<span style="color: #ff7700;font-weight:bold;">import</span> win32com.<span style="color: black;">client</span>
&nbsp;
objects = win32com.<span style="color: black;">client</span>.<span style="color: black;">Dispatch</span><span style="color: black;">&#40;</span> <span style="color: #483d8b;">&quot;XSI.Collection&quot;</span> <span style="color: black;">&#41;</span>
objects.<span style="color: black;">AddItems</span><span style="color: black;">&#40;</span>xsi.<span style="color: black;">Selection</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Iterate through selection</span>
<span style="color: #ff7700;font-weight:bold;">for</span> envObj <span style="color: #ff7700;font-weight:bold;">in</span> objects:
	lm<span style="color: black;">&#40;</span> <span style="color: #483d8b;">&quot;Iterating through: &quot;</span>+envObj.<span style="color: black;">FullName</span>, c.<span style="color: black;">siVerbose</span> <span style="color: black;">&#41;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;"># Create a SymmetryMappingTemplate if needed.</span>
	oSymmetryMapTemplate = xsi.<span style="color: black;">Dictionary</span>.<span style="color: black;">GetObject</span><span style="color: black;">&#40;</span> envObj.<span style="color: black;">Model</span>.<span style="color: black;">Name</span>+<span style="color: #483d8b;">&quot;.SymmetryMappingTemplate&quot;</span>, <span style="color: #008000;">False</span> <span style="color: black;">&#41;</span>
	<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #ff7700;font-weight:bold;">not</span> oSymmetryMapTemplate:
		oSymmetryMapTemplate = xsi.<span style="color: black;">CreateSymmetryMappingTemplate</span><span style="color: black;">&#40;</span>envObj, <span style="color: #008000;">False</span>, <span style="color: #ff4500;">0</span>, <span style="color: #008000;">False</span><span style="color: black;">&#41;</span>
		lm<span style="color: black;">&#40;</span> <span style="color: #483d8b;">&quot;Symmetry Mapping Template not found; created one.&quot;</span>, c.<span style="color: black;">siVerbose</span> <span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
&nbsp;
	<span style="color: #808080; font-style: italic;"># Create a SymmetryMap if it doesn't exist.</span>
	sMapCls = envObj.<span style="color: black;">ActivePrimitive</span>.<span style="color: black;">Geometry</span>.<span style="color: black;">Clusters</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;SymmetryMapCls&quot;</span><span style="color: black;">&#41;</span>
&nbsp;
	found = <span style="color: #008000;">False</span>
	<span style="color: #ff7700;font-weight:bold;">if</span> sMapCls:
		sMap_props = sMapCls.<span style="color: black;">LocalProperties</span>
		<span style="color: #ff7700;font-weight:bold;">for</span> eachProp <span style="color: #ff7700;font-weight:bold;">in</span> sMap_props:
			<span style="color: #ff7700;font-weight:bold;">if</span> eachProp.<span style="color: black;">Type</span> == <span style="color: #483d8b;">&quot;map&quot;</span> <span style="color: #ff7700;font-weight:bold;">and</span> <span style="color: #ff7700;font-weight:bold;">not</span> found:
				sMap = eachProp
				found = <span style="color: #008000;">True</span>
				lm<span style="color: black;">&#40;</span> <span style="color: #483d8b;">&quot;Found SymmetryMap: &quot;</span>+sMap.<span style="color: black;">FullName</span>, c.<span style="color: black;">siVerbose</span> <span style="color: black;">&#41;</span>
&nbsp;
	<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #ff7700;font-weight:bold;">not</span> found:
		lm<span style="color: black;">&#40;</span> <span style="color: #483d8b;">&quot;SymmetryMap not found; created one.&quot;</span>, c.<span style="color: black;">siVerbose</span> <span style="color: black;">&#41;</span>
		<span style="color: #808080; font-style: italic;">#sMap = xsi.CreateSymmetryMap(&quot;&quot;, envObj, &quot;Symmetry_Map&quot;)(0)</span>
		sMap = xsi.<span style="color: black;">CreateSymmetryMap</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;&quot;</span>, envObj, <span style="color: #483d8b;">&quot;&quot;</span>, <span style="color: #483d8b;">&quot;&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
&nbsp;
	<span style="color: #808080; font-style: italic;"># Add envelope deformers to template by name:</span>
	i = xsi.<span style="color: black;">GetNumMappingRules</span><span style="color: black;">&#40;</span> oSymmetryMapTemplate <span style="color: black;">&#41;</span> + <span style="color: #ff4500;">1</span>
	oppositeNaming = <span style="color: black;">&#123;</span><span style="color: #483d8b;">&quot;L_&quot;</span>:<span style="color: #483d8b;">&quot;R_&quot;</span>, <span style="color: #483d8b;">&quot;R_&quot;</span>:<span style="color: #483d8b;">&quot;L_&quot;</span><span style="color: black;">&#125;</span>
	envelope = envObj.<span style="color: black;">Envelopes</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span>
	deformers = envelope.<span style="color: black;">Deformers</span>
	<span style="color: #ff7700;font-weight:bold;">for</span> eachDef <span style="color: #ff7700;font-weight:bold;">in</span> deformers:
		name_A = eachDef.<span style="color: black;">Name</span>
&nbsp;
		<span style="color: #ff7700;font-weight:bold;">if</span> name_A<span style="color: black;">&#91;</span>:<span style="color: #ff4500;">2</span><span style="color: black;">&#93;</span> <span style="color: #ff7700;font-weight:bold;">in</span> oppositeNaming.<span style="color: black;">keys</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
			name_B = name_A.<span style="color: black;">replace</span><span style="color: black;">&#40;</span>name_A<span style="color: black;">&#91;</span>:<span style="color: #ff4500;">2</span><span style="color: black;">&#93;</span>, oppositeNaming.<span style="color: black;">get</span><span style="color: black;">&#40;</span>name_A<span style="color: black;">&#91;</span>:<span style="color: #ff4500;">2</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>, <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
&nbsp;
			xsi.<span style="color: black;">AddMappingRule</span><span style="color: black;">&#40;</span> oSymmetryMapTemplate, name_A, name_B, i<span style="color: black;">&#41;</span>
			lm<span style="color: black;">&#40;</span> <span style="color: #483d8b;">&quot;Adding Mapping Rule #&quot;</span>+<span style="color: #008000;">str</span><span style="color: black;">&#40;</span>i<span style="color: black;">&#41;</span>+<span style="color: #483d8b;">&quot;: &quot;</span>+name_A+<span style="color: #483d8b;">&quot; &lt;--&gt; &quot;</span>+name_B, c.<span style="color: black;">siVerbose</span> <span style="color: black;">&#41;</span>
			i += <span style="color: #ff4500;">1</span>
&nbsp;
xsi.<span style="color: black;">SelectObj</span><span style="color: black;">&#40;</span>objects<span style="color: black;">&#41;</span></pre></div></div><p>I might update the code in the future to support multiple models and check if an entry in the template has been added already, but for now this above will have to do.</p><p>Hope it&#8217;s useful to somebody! <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/kxKcuS4eHVg" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2010/01/18/auto-symmetry-mapping-template/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2010/01/18/auto-symmetry-mapping-template/</feedburner:origLink></item> <item><title>Rendertree Compound: Shadow AO</title><link>http://feedproxy.google.com/~r/darkvertex/~3/aOzAR7Ja1_c/</link> <comments>http://darkvertex.com/wp/2009/12/24/shadow-ao-rtcompound/#comments</comments> <pubDate>Fri, 25 Dec 2009 02:18:08 +0000</pubDate> <dc:creator>Alan</dc:creator> <category><![CDATA[compounds]]></category> <category><![CDATA[softimage]]></category> <category><![CDATA[rendering]]></category><guid isPermaLink="false">http://darkvertex.com/wp/?p=94</guid> <description><![CDATA[Ever noticed that Ambient Occlusion doesn&#8217;t happen in the real world in lit areas? It&#8217;s more of a darkness thing&#8230; so why apply it everywhere? With this Rendertree compound you have AO in darkness and that&#8217;s it. Simple! Now&#8230;.. can you spot the differences between these images below? Diffuse pass, boring looking, no AO: BAD [...]]]></description> <content:encoded><![CDATA[<p>Ever noticed that Ambient Occlusion doesn&#8217;t happen in the real world in lit areas? It&#8217;s more of a darkness thing&#8230; so why apply it everywhere?</p><p><a href="http://s3.darkvertex.com/tools/ShadowAO_ExampleSceneAndCompound.zip">With this Rendertree compound</a> you have AO in darkness and that&#8217;s it. Simple! <img src='http://darkvertex.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br /> <a href="http://s3.darkvertex.com/tools/ShadowAO_ExampleSceneAndCompound.zip"><img src="http://wpfiles.darkvertex.com/wp/wp-content/uploads/2009/12/ShadowAO__Good_Comp.png" alt="Notice how there's no AO in lit areas" width="640" height="303" /></p><p><img title="Shadow AO compound" src="http://wpfiles.darkvertex.com/wp/wp-content/uploads/2009/12/ShadowAO_RTcompound_screenshot.png" alt="Shadow AO compound" width="509" height="430" /></a><br /> <span id="more-94"></span></p><p>Now&#8230;.. can you spot the differences between these images below?</p><p>Diffuse pass, boring looking, no AO:<br /> <img src="http://wpfiles.darkvertex.com/wp/wp-content/uploads/2009/12/ShadowAO__Color_Pass.png" alt="" width="640" height="303" /></p><p><strong><span style="color: #ff0000;">BAD</span></strong> &#8212; Sloppy AO that&#8217;s been applied everywhere: (notice how dirty it looks towards the center light)<br /> <img src="http://wpfiles.darkvertex.com/wp/wp-content/uploads/2009/12/ShadowAO__Bad_Comp.png" alt="" width="640" height="303" /></p><p><span style="color: #00ff00;">GOOD</span> &#8212; Shadow-aware AO, only exists where it should&#8230; in darkness:<br /> <img src="http://wpfiles.darkvertex.com/wp/wp-content/uploads/2009/12/ShadowAO__Good_Comp.png" alt="" width="640" height="303" /></p><p><em>Credit where credit is due; this method was originally </em><a href="http://www.grabiller.com/site/download/AOInShadow.JPG" rel="shadowbox[post-94];player=img;"><em>pointed out</em></a><em> by Guy Rabiller many years ago, back when our software was called a 3 letter word.</em></p> <img src="http://feeds.feedburner.com/~r/darkvertex/~4/aOzAR7Ja1_c" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://darkvertex.com/wp/2009/12/24/shadow-ao-rtcompound/feed/</wfw:commentRss> <slash:comments>8</slash:comments> <feedburner:origLink>http://darkvertex.com/wp/2009/12/24/shadow-ao-rtcompound/</feedburner:origLink></item> </channel> </rss>
