<?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>diogo&#039;s coding corner &#187; Home</title>
	<atom:link href="http://diogo.codingcorner.net/category/home/feed/" rel="self" type="application/rss+xml" />
	<link>http://diogo.codingcorner.net</link>
	<description>game development and real-time graphics</description>
	<lastBuildDate>Thu, 22 Dec 2011 12:38:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Seams and Gamma correction</title>
		<link>http://diogo.codingcorner.net/home/seams-and-gamma-correction/</link>
		<comments>http://diogo.codingcorner.net/home/seams-and-gamma-correction/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 19:07:01 +0000</pubDate>
		<dc:creator>diogo</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Home]]></category>

		<guid isPermaLink="false">http://diogo.codingcorner.net/?p=603</guid>
		<description><![CDATA[Got more stuff done last night. This time the pics show a non-exagerated version of the subsurface diffusion and using recommended settings for human skin. I got rid of the seams and added gamma conversion to keep all computations in linear color space. Both have the same specular highlights. Since I&#8217;m using a world-space normal [...]]]></description>
			<content:encoded><![CDATA[<p>Got more stuff done last night. This time the pics show a non-exagerated version of the subsurface diffusion and using recommended settings for human skin. I got rid of the seams and added gamma conversion to keep all computations in linear color space. Both have the same specular highlights.</p>
<table class="aligncenter" border="0" align="center">
<tbody>
<tr>
<td><a href="http://diogo.codingcorner.net/wp-content/uploads/2009/03/head_basic_color1.png"><img class="alignleft size-medium wp-image-604" style="border: 1px solid black;" title="head_basic_color1" src="http://diogo.codingcorner.net/wp-content/uploads/2009/03/head_basic_color1-287x300.png" alt="head_basic_color1" width="230" height="240" /></a></td>
<td><a href="http://diogo.codingcorner.net/wp-content/uploads/2009/03/head_skin_color2.png"><img class="alignright size-medium wp-image-605" style="border: 1px solid black;" title="head_skin_color2" src="http://diogo.codingcorner.net/wp-content/uploads/2009/03/head_skin_color2-287x300.png" alt="head_skin_color2" width="230" height="240" /></a></td>
</tr>
</tbody>
</table>
<p>Since I&#8217;m using a world-space normal map, I was able to remove the seams by switching to a paralell light. That reduces the irradiance pass to a screen-space quad which takes advantage of extra information available outside the mesh (in uv space) which was initially intended to avoid mip-mapping issues.</p>
<p>The diffuse texture should probably be redone at this point. Actually, both the model and textures could use extra work to take real advantage of the shader. Slightly more tesselation on the mesh and more detail in both normal and diffuse textures.</p>
<p>The stretching method described in the book requires a certain amount of tesselation due to the use of partial derivatives; big polygons in uv space can cause discontinuities. My test model is not very dense so I&#8217;m still trying to figure out a way of doing it efficiently.</p>
]]></content:encoded>
			<wfw:commentRss>http://diogo.codingcorner.net/home/seams-and-gamma-correction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

