<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Welcome!</title>
	<atom:link href="http://www.catalinzima.com/2008/02/welcome/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.catalinzima.com/2008/02/welcome/</link>
	<description>XNA Tutorials, Samples and Thoughts</description>
	<lastBuildDate>Fri, 20 Aug 2010 07:16:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Alexander (VaderSB) Samarin</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-27</link>
		<dc:creator>Alexander (VaderSB) Samarin</dc:creator>
		<pubDate>Wed, 13 Feb 2008 20:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-27</guid>
		<description>Thanks, Catalin! This technique is really promising (and the result renders looks pretty exactly what I&#039;m heading to!), I&#039;ll take time to research it! I believe it will need some serious porting to be usable in 2d with multiple light sources.</description>
		<content:encoded><![CDATA[<p>Thanks, Catalin! This technique is really promising (and the result renders looks pretty exactly what I&#8217;m heading to!), I&#8217;ll take time to research it! I believe it will need some serious porting to be usable in 2d with multiple light sources.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin Zima</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-26</link>
		<dc:creator>Catalin Zima</dc:creator>
		<pubDate>Tue, 12 Feb 2008 23:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-26</guid>
		<description>Ok. I&#039;ve studied you problem, and I believe the best way would be to use an approach similar to Relief Mapping. 
Actually, deferred rendering and some techniques used in Relief Mapping seem to be a very good fit for your game / engine. Because you keep your view strictly top-down, you don&#039;t actually need all relief mapping, but reading the article and looking at the code should help you understand the techniques. You&#039;d be interested mainly in the part about adding shadows to relief mapped objects, because this technique is exactly what you could use for your design.
 

You should check &lt;a href=&quot;http://fabio.policarpo.nom.br/&quot; rel=&quot;nofollow&quot;&gt;Fabio Policarpo&#039;s webiste &lt;/a&gt;for more info on relief mapping. I especially recommend the following: &lt;a href=&quot;http://fabio.policarpo.nom.br/docs/ReliefMapping_I3D2005.pdf&quot; rel=&quot;nofollow&quot;&gt;Relief Mapping Paper&lt;/a&gt; - here Fabio talks about shadows in relief mapping, at page 4. But you should read the whole paper, in order to understand why relief mapping has so many in common to your design.</description>
		<content:encoded><![CDATA[<p>Ok. I&#8217;ve studied you problem, and I believe the best way would be to use an approach similar to Relief Mapping.<br />
Actually, deferred rendering and some techniques used in Relief Mapping seem to be a very good fit for your game / engine. Because you keep your view strictly top-down, you don&#8217;t actually need all relief mapping, but reading the article and looking at the code should help you understand the techniques. You&#8217;d be interested mainly in the part about adding shadows to relief mapped objects, because this technique is exactly what you could use for your design.</p>
<p>You should check <a href="http://fabio.policarpo.nom.br/" rel="nofollow">Fabio Policarpo&#8217;s webiste </a>for more info on relief mapping. I especially recommend the following: <a href="http://fabio.policarpo.nom.br/docs/ReliefMapping_I3D2005.pdf" rel="nofollow">Relief Mapping Paper</a> &#8211; here Fabio talks about shadows in relief mapping, at page 4. But you should read the whole paper, in order to understand why relief mapping has so many in common to your design.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander (VaderSB) Samarin</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-25</link>
		<dc:creator>Alexander (VaderSB) Samarin</dc:creator>
		<pubDate>Tue, 12 Feb 2008 16:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-25</guid>
		<description>Ok, cool! And I&#039;ll post here if I&#039;ll have any new ideas.</description>
		<content:encoded><![CDATA[<p>Ok, cool! And I&#8217;ll post here if I&#8217;ll have any new ideas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin Zima</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-24</link>
		<dc:creator>Catalin Zima</dc:creator>
		<pubDate>Tue, 12 Feb 2008 15:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-24</guid>
		<description>I understand what you want. I&#039;ll give it some thought later, and I&#039;ll get back to you.</description>
		<content:encoded><![CDATA[<p>I understand what you want. I&#8217;ll give it some thought later, and I&#8217;ll get back to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander (VaderSB) Samarin</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-23</link>
		<dc:creator>Alexander (VaderSB) Samarin</dc:creator>
		<pubDate>Tue, 12 Feb 2008 13:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-23</guid>
		<description>Well, all I have is a photoshop mockup in which I emulated the needed result.
Here is it:
http://www.vsbgames.com/tmp/shadowtest1.png

First, notice that it&#039;s strict top-down. And the main thing to look at is the shadow that is being cast on the stone from the character. The point is that stone pixels will be higher in the height map, and so when character&#039;s shadow is drawn on the stone - it is, mm, shifted.

The point is that I seek for universal solution: where the whole height map render target is filled and then the shadows render target is filled, so when the shadow-drawing pixel shader is called, it doesn&#039;t know if the current pixel is over the terrain or stone - all he knows is the shadow texture, light vector and the current pixel height.</description>
		<content:encoded><![CDATA[<p>Well, all I have is a photoshop mockup in which I emulated the needed result.<br />
Here is it:<br />
<a href="http://www.vsbgames.com/tmp/shadowtest1.png" rel="nofollow">http://www.vsbgames.com/tmp/shadowtest1.png</a></p>
<p>First, notice that it&#8217;s strict top-down. And the main thing to look at is the shadow that is being cast on the stone from the character. The point is that stone pixels will be higher in the height map, and so when character&#8217;s shadow is drawn on the stone &#8211; it is, mm, shifted.</p>
<p>The point is that I seek for universal solution: where the whole height map render target is filled and then the shadows render target is filled, so when the shadow-drawing pixel shader is called, it doesn&#8217;t know if the current pixel is over the terrain or stone &#8211; all he knows is the shadow texture, light vector and the current pixel height.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin Zima</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-22</link>
		<dc:creator>Catalin Zima</dc:creator>
		<pubDate>Tue, 12 Feb 2008 12:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-22</guid>
		<description>that&#039;s an interesting idea.
But I have one question: is the character supposed to be walking on the terrain, or only flying over it? Do you have a picture of the current state of the game?

It would be really helpful to know this, since it may affect the question in various ways. Depending on how your characters look / move in the world, the problem may or may not be solvable. So a screenshot would really help me visualize the problem.</description>
		<content:encoded><![CDATA[<p>that&#8217;s an interesting idea.<br />
But I have one question: is the character supposed to be walking on the terrain, or only flying over it? Do you have a picture of the current state of the game?</p>
<p>It would be really helpful to know this, since it may affect the question in various ways. Depending on how your characters look / move in the world, the problem may or may not be solvable. So a screenshot would really help me visualize the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander (VaderSB) Samarin</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-21</link>
		<dc:creator>Alexander (VaderSB) Samarin</dc:creator>
		<pubDate>Tue, 12 Feb 2008 10:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-21</guid>
		<description>Catalin, I&#039;ve got one 2d top-down view related topic I can&#039;t find any interesting examples of. Let&#039;s say we&#039;ve got a terrain sprite with a height map. We&#039;ve got a character sprite. The problem is to draw a character&#039;s shadow over terrain. Let&#039;s review the basic case: we draw a shadow of character using the same texture just with color rgb = 0 and alpha *= 0.5, with some offset of course, so we&#039;ll have nice semi-transparent shadow.
The point is how to add a &quot;distortion&quot; to the shadow sprite according to the terrain height map? This would add some pretty nice effect of feeling of terrain relief. Do you have any thoughts on how can this effect be done?

The next step is harder. We fill height map for the whole scene, so it will have normals both for terrain and character. The next thing that adds complexity is that character sprite can be rotated. And the final thing is that the shadow sprite offset depends on the vector light-&gt;character, and so all these things must be taken in count in the pixel shader that will do shadow distortion.

The whole thing become pretty complex and I wonder if it&#039;s solvable at all.</description>
		<content:encoded><![CDATA[<p>Catalin, I&#8217;ve got one 2d top-down view related topic I can&#8217;t find any interesting examples of. Let&#8217;s say we&#8217;ve got a terrain sprite with a height map. We&#8217;ve got a character sprite. The problem is to draw a character&#8217;s shadow over terrain. Let&#8217;s review the basic case: we draw a shadow of character using the same texture just with color rgb = 0 and alpha *= 0.5, with some offset of course, so we&#8217;ll have nice semi-transparent shadow.<br />
The point is how to add a &#8220;distortion&#8221; to the shadow sprite according to the terrain height map? This would add some pretty nice effect of feeling of terrain relief. Do you have any thoughts on how can this effect be done?</p>
<p>The next step is harder. We fill height map for the whole scene, so it will have normals both for terrain and character. The next thing that adds complexity is that character sprite can be rotated. And the final thing is that the shadow sprite offset depends on the vector light-&gt;character, and so all these things must be taken in count in the pixel shader that will do shadow distortion.</p>
<p>The whole thing become pretty complex and I wonder if it&#8217;s solvable at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin Zima</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-20</link>
		<dc:creator>Catalin Zima</dc:creator>
		<pubDate>Mon, 11 Feb 2008 20:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-20</guid>
		<description>Top-down only for a while. In fact, it might be applicable in both types of views. I&#039;ll just have to see what comes out.</description>
		<content:encoded><![CDATA[<p>Top-down only for a while. In fact, it might be applicable in both types of views. I&#8217;ll just have to see what comes out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander (VaderSB) Samarin</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-19</link>
		<dc:creator>Alexander (VaderSB) Samarin</dc:creator>
		<pubDate>Mon, 11 Feb 2008 19:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-19</guid>
		<description>Cool! Do you plan a top-down view or a side view? Or maybe isometric? (And I wonder if it&#039;s possible at all to use advanced shader effects in esometric 2d mode!)</description>
		<content:encoded><![CDATA[<p>Cool! Do you plan a top-down view or a side view? Or maybe isometric? (And I wonder if it&#8217;s possible at all to use advanced shader effects in esometric 2d mode!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin Zima</title>
		<link>http://www.catalinzima.com/2008/02/welcome/comment-page-1/#comment-18</link>
		<dc:creator>Catalin Zima</dc:creator>
		<pubDate>Sun, 10 Feb 2008 22:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?p=123#comment-18</guid>
		<description>Thanks for your words.
Don&#039;t worry, Alexander. I have at least two samples planned which will deal with 2D stuff. 
Surprisingly, I&#039;ve decided to make my next project a 2D game. So that means I&#039;ll be experimenting with 2D effects and techniques more in the following weeks.</description>
		<content:encoded><![CDATA[<p>Thanks for your words.<br />
Don&#8217;t worry, Alexander. I have at least two samples planned which will deal with 2D stuff.<br />
Surprisingly, I&#8217;ve decided to make my next project a 2D game. So that means I&#8217;ll be experimenting with 2D effects and techniques more in the following weeks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
