<?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: Article : Sun- and Lens Flare as a Post Process</title>
	<atom:link href="http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/</link>
	<description>We are &#34;absolutely fine&#34;</description>
	<lastBuildDate>Sun, 22 Jan 2012 13:03:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Crepuscular (God) Rays and Web UI Sample - RandomChaos - XNA UK User Group</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-2722</link>
		<dc:creator>Crepuscular (God) Rays and Web UI Sample - RandomChaos - XNA UK User Group</dc:creator>
		<pubDate>Thu, 15 Sep 2011 19:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-2722</guid>
		<description>[...] still fly. I also thought that I could use my existing sun post process, again, if you missed that, you can find it on stg conker, and incorporate it into the effect. So, the steps used to create [...]</description>
		<content:encoded><![CDATA[<p>[...] still fly. I also thought that I could use my existing sun post process, again, if you missed that, you can find it on stg conker, and incorporate it into the effect. So, the steps used to create [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: March 2011 Talk – Post Processing Framework - RandomChaos - XNA UK User Group</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-2244</link>
		<dc:creator>March 2011 Talk – Post Processing Framework - RandomChaos - XNA UK User Group</dc:creator>
		<pubDate>Fri, 04 Mar 2011 10:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-2244</guid>
		<description>[...] the 21st of April 2010 I posted up an article on Sgt Conker, this is the same code put to use in the framework, as in this sample we have access to the depth [...]</description>
		<content:encoded><![CDATA[<p>[...] the 21st of April 2010 I posted up an article on Sgt Conker, this is the same code put to use in the framework, as in this sample we have access to the depth [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-1733</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Thu, 18 Nov 2010 02:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-1733</guid>
		<description>Haha ok... I&#039;m anxious for it... I just got back into XNA after about a year of inactivity and all the old tutorials on water have kinda been tossed because of the removal of the ClipPlane functionality, and I&#039;ve been trying to implement that via the shader for about a week now and still can&#039;t figure it out for the life of me! Other than that I love your blogs and tutorials! Thanks for everything you have posted!</description>
		<content:encoded><![CDATA[<p>Haha ok&#8230; I&#8217;m anxious for it&#8230; I just got back into XNA after about a year of inactivity and all the old tutorials on water have kinda been tossed because of the removal of the ClipPlane functionality, and I&#8217;ve been trying to implement that via the shader for about a week now and still can&#8217;t figure it out for the life of me! Other than that I love your blogs and tutorials! Thanks for everything you have posted!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NemoKrad</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-1710</link>
		<dc:creator>NemoKrad</dc:creator>
		<pubDate>Sun, 14 Nov 2010 16:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-1710</guid>
		<description>Hi Ricky,

I plan to, but it&#039;s just a matter of me sorting out the time to do it...</description>
		<content:encoded><![CDATA[<p>Hi Ricky,</p>
<p>I plan to, but it&#8217;s just a matter of me sorting out the time to do it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-1699</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Fri, 12 Nov 2010 19:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-1699</guid>
		<description>Will you be posting your code for the post-process water project you have on xna-uk.net? Seems to be where water rending will be going in the next couple years and it would be nice to check out the code you produced.</description>
		<content:encoded><![CDATA[<p>Will you be posting your code for the post-process water project you have on xna-uk.net? Seems to be where water rending will be going in the next couple years and it would be nice to check out the code you produced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NemoKrad</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-877</link>
		<dc:creator>NemoKrad</dc:creator>
		<pubDate>Mon, 17 May 2010 16:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-877</guid>
		<description>PM me on my blog and we can sort something out.

http://xna-uk.net/blogs/randomchaos/
http://xna-uk.net/members/Nemo-Krad.aspx</description>
		<content:encoded><![CDATA[<p>PM me on my blog and we can sort something out.</p>
<p><a href="http://xna-uk.net/blogs/randomchaos/" rel="nofollow">http://xna-uk.net/blogs/randomchaos/</a><br />
<a href="http://xna-uk.net/members/Nemo-Krad.aspx" rel="nofollow">http://xna-uk.net/members/Nemo-Krad.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thunder</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-876</link>
		<dc:creator>Thunder</dc:creator>
		<pubDate>Mon, 17 May 2010 16:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-876</guid>
		<description>Hi, how are you?
You&#039;re right, I&#039;m missing the .End() statement. However, the code doesn&#039;t reach that statement because it crashes as soon as it reaches .Begin().
How can I send you my project? :)

Thanks!
:)</description>
		<content:encoded><![CDATA[<p>Hi, how are you?<br />
You&#8217;re right, I&#8217;m missing the .End() statement. However, the code doesn&#8217;t reach that statement because it crashes as soon as it reaches .Begin().<br />
How can I send you my project? <img src='http://www.sgtconker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!<br />
 <img src='http://www.sgtconker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NemoKrad</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-875</link>
		<dc:creator>NemoKrad</dc:creator>
		<pubDate>Mon, 17 May 2010 15:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-875</guid>
		<description>4.0 is in CTP but you can write code for both WP7 and PC, but at the moment not the 360. You will once we have the full release.

The only thing I can see in your code snippets is that you are not calling an End() on the effect, so you should have a effect.Techniques[0].Passes[0].End(); too.


Let me know if you are still having issues and you can send me your project and Ill have a better look at your code :)</description>
		<content:encoded><![CDATA[<p>4.0 is in CTP but you can write code for both WP7 and PC, but at the moment not the 360. You will once we have the full release.</p>
<p>The only thing I can see in your code snippets is that you are not calling an End() on the effect, so you should have a effect.Techniques[0].Passes[0].End(); too.</p>
<p>Let me know if you are still having issues and you can send me your project and Ill have a better look at your code <img src='http://www.sgtconker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thunder</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-873</link>
		<dc:creator>Thunder</dc:creator>
		<pubDate>Mon, 17 May 2010 00:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-873</guid>
		<description>Hi, how are you? Thank you for replying!
I am converting to 3.1 because I am working with XNA 3.1... Isn&#039;t 4.0 PTR and for Windows Phone only? I&#039;m thinking of using 4.0 when it is final.

Well, here are the changes:

-----------------------------
in void LoadContent
rt = new RenderTarget2D(GraphicsDevice, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);
-&gt;
rt = new RenderTarget2D(GraphicsDevice, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height, 1, SurfaceFormat.Color);
-----------------------------

in void Draw(...)
GraphicsDevice.SetRenderTargets(rt);
to ------------------&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
GraphicsDevice.SetRenderTarget(0, rt);
-----------------------------

// Post Processing.
GraphicsDevice.SetRenderTargets(null);
GraphicsDevice.Textures[0] = rt;
to ------------------&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
// Post Processing.
GraphicsDevice.SetRenderTarget(0, null);
GraphicsDevice.Textures[0] = rt.GetTexture();
-----------------------------

spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);
effect.Techniques[0].Passes[0].Apply();
spriteBatch.Draw(rt, new Rectangle(0, 0, rt.Width, rt.Height), Color.White);
spriteBatch.End();

spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);
to ------------------&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Immediate, SaveStateMode.None);
effect.Techniques[0].Passes[0].Begin();
spriteBatch.Draw(rt.GetTexture(), new Rectangle(0, 0, rt.Width, rt.Height), Color.White);
spriteBatch.End();

spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Immediate, SaveStateMode.None);
-----------------------------

Those are the changes.
Again, the error is &quot;An unexpected error has occurred.&quot; on line: effect.Techniques[0].Passes[0].Begin();

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi, how are you? Thank you for replying!<br />
I am converting to 3.1 because I am working with XNA 3.1&#8230; Isn&#8217;t 4.0 PTR and for Windows Phone only? I&#8217;m thinking of using 4.0 when it is final.</p>
<p>Well, here are the changes:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
in void LoadContent<br />
rt = new RenderTarget2D(GraphicsDevice, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);<br />
-&gt;<br />
rt = new RenderTarget2D(GraphicsDevice, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height, 1, SurfaceFormat.Color);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>in void Draw(&#8230;)<br />
GraphicsDevice.SetRenderTargets(rt);<br />
to &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
GraphicsDevice.SetRenderTarget(0, rt);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>// Post Processing.<br />
GraphicsDevice.SetRenderTargets(null);<br />
GraphicsDevice.Textures[0] = rt;<br />
to &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
// Post Processing.<br />
GraphicsDevice.SetRenderTarget(0, null);<br />
GraphicsDevice.Textures[0] = rt.GetTexture();<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);<br />
effect.Techniques[0].Passes[0].Apply();<br />
spriteBatch.Draw(rt, new Rectangle(0, 0, rt.Width, rt.Height), Color.White);<br />
spriteBatch.End();</p>
<p>spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);<br />
to &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Immediate, SaveStateMode.None);<br />
effect.Techniques[0].Passes[0].Begin();<br />
spriteBatch.Draw(rt.GetTexture(), new Rectangle(0, 0, rt.Width, rt.Height), Color.White);<br />
spriteBatch.End();</p>
<p>spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Immediate, SaveStateMode.None);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Those are the changes.<br />
Again, the error is &#8220;An unexpected error has occurred.&#8221; on line: effect.Techniques[0].Passes[0].Begin();</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Humphrey</title>
		<link>http://www.sgtconker.com/2010/04/article-sun-and-lens-flare-as-a-post-process/comment-page-1/#comment-871</link>
		<dc:creator>Charles Humphrey</dc:creator>
		<pubDate>Sun, 16 May 2010 06:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sgtconker.com/?p=1407#comment-871</guid>
		<description>Yes, there are a few changes from 3.1 to 4.0....

First of all, why are you converting to 3.1?

As you say there are a fair few changes to have this working in 3.1, there is no point me trying to guess where you may have gone wrong, can you post the draw call you have written/changed and I can have a look and see if I can spot what&#039;s going wrong.</description>
		<content:encoded><![CDATA[<p>Yes, there are a few changes from 3.1 to 4.0&#8230;.</p>
<p>First of all, why are you converting to 3.1?</p>
<p>As you say there are a fair few changes to have this working in 3.1, there is no point me trying to guess where you may have gone wrong, can you post the draw call you have written/changed and I can have a look and see if I can spot what&#8217;s going wrong.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

