<?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>NikosGatos.com &#124; Blog &#187; RenderMan</title>
	<atom:link href="http://blog.nikosgatos.com/index.php/category/renderman/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nikosgatos.com</link>
	<description>graphics&#124;films&#124;games&#124;programming&#124;misc</description>
	<lastBuildDate>Wed, 11 Feb 2009 15:13:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RenderMan: Optimization is Everything</title>
		<link>http://blog.nikosgatos.com/index.php/2009/01/29/renderman-optimization-is-everything/</link>
		<comments>http://blog.nikosgatos.com/index.php/2009/01/29/renderman-optimization-is-everything/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 23:56:52 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[RenderMan]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=22</guid>
		<description><![CDATA[RenderMan (PRMan) can be a very fast and efficient renderer as long as you spend some time optimizing the asset you are developing. Here are a few useful pointers.

Always pre-bake diffuse occlusion and subsurface scattering into pointclouds/brickmaps whenever possible.
Always pre-filter your textures to RenderMan&#8217;s native format.
Always use a higher local shading rate for objects that [...]]]></description>
			<content:encoded><![CDATA[<p>RenderMan (PRMan) can be a very fast and efficient renderer as long as you spend some time optimizing the asset you are developing. Here are a few useful pointers.</p>
<ul>
<li>Always pre-bake diffuse occlusion and subsurface scattering into pointclouds/brickmaps whenever possible.</li>
<li>Always pre-filter your textures to RenderMan&#8217;s native format.</li>
<li>Always use a higher local shading rate for objects that don&#8217;t require much detail.</li>
<li>Always use trace sets when dealing with raytracing.</li>
<li>Always check the displacement bounding box.</li>
<li>Always cache your shadow or deep shadow maps to disk.</li>
<li>Always check the XML stats to identify which parts of the objects are taking the longest time to render.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2009/01/29/renderman-optimization-is-everything/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MEL: Setting the value of a Slim attribute</title>
		<link>http://blog.nikosgatos.com/index.php/2008/07/11/mel-setting-the-value-of-a-slim-attribute/</link>
		<comments>http://blog.nikosgatos.com/index.php/2008/07/11/mel-setting-the-value-of-a-slim-attribute/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 17:06:35 +0000</pubDate>
		<dc:creator>nikos</dc:creator>
				<category><![CDATA[Maya]]></category>
		<category><![CDATA[RenderMan]]></category>
		<category><![CDATA[MEL]]></category>
		<category><![CDATA[Slim]]></category>

		<guid isPermaLink="false">http://blog.nikosgatos.com/?p=11</guid>
		<description><![CDATA[Setting the value of a Slim attribute, from MEL, requires a bit more overhead compared to the normal Maya attribute. The following example shows how it can be done.

string $palette = `slimcmd slim FindPalette &#8220;MYPALETTE&#8221;`;


string $all = `slimcmd $palette GetAppearances`;


string $shaders&#91;&#93;;


tokenize&#40; $all, &#34; &#34;, $shaders &#41;;


&#160;


for &#40; $s in $shaders &#41; &#123;


&#160; &#160; string $attr [...]]]></description>
			<content:encoded><![CDATA[<p>Setting the value of a Slim attribute, from MEL, requires a bit more overhead compared to the normal Maya attribute. The following example shows how it can be done.</p>
<div class="geshi no perl">
<div class="head">string $palette = `slimcmd slim FindPalette &#8220;MYPALETTE&#8221;`;</div>
<ol>
<li class="li1">
<div class="de1">string <span class="re0">$all</span> = `slimcmd <span class="re0">$palette</span> GetAppearances`;</div>
</li>
<li class="li1">
<div class="de1">string <span class="re0">$shaders</span><span class="br0">&#91;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">tokenize<span class="br0">&#40;</span> <span class="re0">$all</span>, <span class="st0">&quot; &quot;</span>, <span class="re0">$shaders</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">for</span> <span class="br0">&#40;</span> <span class="re0">$s</span> in <span class="re0">$shaders</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; string <span class="re0">$attr</span> = `slimcmd <span class="re0">$s</span> GetProperties -name <span class="st0">&quot;MYPROPERTY&quot;</span>`;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> <span class="re0">$attr</span> <span class="sy0">!</span>= <span class="st0">&quot;&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; slimcmd <span class="re0">$attr</span> SetValue <span class="st0">&quot;MYVALUE&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nikosgatos.com/index.php/2008/07/11/mel-setting-the-value-of-a-slim-attribute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
