<?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: Anaglyphic 3D in GLSL</title>
	<atom:link href="http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/feed/" rel="self" type="application/rss+xml" />
	<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=anaglyphic-3d-in-glsl</link>
	<description>A number-pimping side project from the valleys in *NEW* upside-down flavour.</description>
	<lastBuildDate>Tue, 15 May 2012 23:01:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: caramish</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-7282</link>
		<dc:creator>caramish</dc:creator>
		<pubDate>Fri, 02 Dec 2011 11:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-7282</guid>
		<description>Excellent! Thank you so much!</description>
		<content:encoded><![CDATA[<p>Excellent! Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-7241</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Sat, 26 Nov 2011 23:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-7241</guid>
		<description>I&#039;ve used the following for trioscopic 3D (green/magenta):

&lt;pre lang=&quot;glsl&quot;&gt;
// Final colour output
vFragColour = vec4(rightFrag.r, leftFrag.g, rightFrag.b, 1.0);&lt;/pre&gt;

And I believe the following will work for ColorCode 3D:

&lt;pre lang=&quot;glsl&quot;&gt;vec3 coefficient = vec3(0.15, 0.15, 0.7);

// Take the dot product of the right-eye colour components and specified coefficients
float mixedRightFrag = dot(rightFrag.rgb, coefficient);

// Final colour output
vFragColour = vec4(leftFrag.r, leftFrag.g, mixedRightFrag, 1.0); &lt;/pre&gt;

There&#039;s a good article which shows how do do all this and also remove/minimise the ghosting effect here:
&lt;a href=&quot;http://iaian7.com/quartz/AnaglyphCompositing&quot; rel=&quot;nofollow&quot;&gt;http://iaian7.com/quartz/AnaglyphCompositing&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used the following for trioscopic 3D (green/magenta):</p>

<div class="wp_syntax"><div class="code"><pre class="glsl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Final colour output</span>
vFragColour <span style="color: #000066;">=</span> <span style="color: #000066; font-weight: bold;">vec4</span><span style="color: #000066;">&#40;</span>rightFrag<span style="color: #000066;">.</span><span style="color: #006600;">r</span><span style="color: #000066;">,</span> leftFrag<span style="color: #000066;">.</span><span style="color: #006600;">g</span><span style="color: #000066;">,</span> rightFrag<span style="color: #000066;">.</span><span style="color: #006600;">b</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></div></div>

<p>And I believe the following will work for ColorCode 3D:</p>

<div class="wp_syntax"><div class="code"><pre class="glsl" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">vec3</span> coefficient <span style="color: #000066;">=</span> <span style="color: #000066; font-weight: bold;">vec3</span><span style="color: #000066;">&#40;</span><span style="color: #0000ff;">0.15</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">0.15</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">0.7</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Take the dot product of the right-eye colour components and specified coefficients</span>
<span style="color: #000066; font-weight: bold;">float</span> mixedRightFrag <span style="color: #000066;">=</span> <span style="color: #993333; font-weight: bold;">dot</span><span style="color: #000066;">&#40;</span>rightFrag<span style="color: #000066;">.</span><span style="color: #006600;">rgb</span><span style="color: #000066;">,</span> coefficient<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Final colour output</span>
vFragColour <span style="color: #000066;">=</span> <span style="color: #000066; font-weight: bold;">vec4</span><span style="color: #000066;">&#40;</span>leftFrag<span style="color: #000066;">.</span><span style="color: #006600;">r</span><span style="color: #000066;">,</span> leftFrag<span style="color: #000066;">.</span><span style="color: #006600;">g</span><span style="color: #000066;">,</span> mixedRightFrag<span style="color: #000066;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></div></div>

<p>There&#8217;s a good article which shows how do do all this and also remove/minimise the ghosting effect here:<br />
<a href="http://iaian7.com/quartz/AnaglyphCompositing">http://iaian7.com/quartz/AnaglyphCompositing</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: caramish</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-7233</link>
		<dc:creator>caramish</dc:creator>
		<pubDate>Fri, 25 Nov 2011 19:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-7233</guid>
		<description>hey friend! I have a question... what are the combinations for the left and right frags if i want to make this work for:
red/blue
red/green
as I can see, the one in your code works fine for red/cyan... but what about this other 2?
sorry for my english, thak you.</description>
		<content:encoded><![CDATA[<p>hey friend! I have a question&#8230; what are the combinations for the left and right frags if i want to make this work for:<br />
red/blue<br />
red/green<br />
as I can see, the one in your code works fine for red/cyan&#8230; but what about this other 2?<br />
sorry for my english, thak you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-7163</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Mon, 14 Nov 2011 05:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-7163</guid>
		<description>Alright - try this: &lt;a href=&quot;http://r3dux.org/files/code/Anaglyphic-3D/ORIG-Anaglyphic-GLSL-with-AA.zip&quot; rel=&quot;nofollow&quot;&gt;ORIG-Anaglyphic-GLSL-with-AA.zip&lt;/a&gt;.

It&#039;s a Code::Blocks project and I&#039;ve fixed it so that it doesn&#039;t moan about allocating multisampled buffer storage - keys are W/A/S/D and mouse to move around and F1 to maximise/restore window size.You&#039;ll also need red/cyan 3D glasses ;)

This project is in desperate need of refactoring into classes - as it stands it&#039;s all just mashed together so I could get something up and running in the quickest time possible. Unfortunately, I just don&#039;t have the time to refactor it at the moment, but when/if I do I&#039;ll post an updated version. Also, it doesn&#039;t use asymmetric frustums so it&#039;s quite likely to cause some eye-strain if used for long periods - so use at your own risk!

The best thing to play around with is probably the eyeSeparation value defined on line 54 of main.cpp - larger values increase the separation to increase the 3D effect and make objects appear infront of the screen (up to a certain point where your brain just won&#039;t gel the two images together anymore) , but even small values where the &quot;front&quot; is at the physical screen&#039;s location look pretty good!

Have fun...</description>
		<content:encoded><![CDATA[<p>Alright &#8211; try this: <a href="http://r3dux.org/files/code/Anaglyphic-3D/ORIG-Anaglyphic-GLSL-with-AA.zip">ORIG-Anaglyphic-GLSL-with-AA.zip</a>.</p>
<p>It&#8217;s a Code::Blocks project and I&#8217;ve fixed it so that it doesn&#8217;t moan about allocating multisampled buffer storage &#8211; keys are W/A/S/D and mouse to move around and F1 to maximise/restore window size.You&#8217;ll also need red/cyan 3D glasses <img src='http://r3dux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>This project is in desperate need of refactoring into classes &#8211; as it stands it&#8217;s all just mashed together so I could get something up and running in the quickest time possible. Unfortunately, I just don&#8217;t have the time to refactor it at the moment, but when/if I do I&#8217;ll post an updated version. Also, it doesn&#8217;t use asymmetric frustums so it&#8217;s quite likely to cause some eye-strain if used for long periods &#8211; so use at your own risk!</p>
<p>The best thing to play around with is probably the eyeSeparation value defined on line 54 of main.cpp &#8211; larger values increase the separation to increase the 3D effect and make objects appear infront of the screen (up to a certain point where your brain just won&#8217;t gel the two images together anymore) , but even small values where the &#8220;front&#8221; is at the physical screen&#8217;s location look pretty good!</p>
<p>Have fun&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-7161</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Sun, 13 Nov 2011 21:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-7161</guid>
		<description>The non-anti-aliased code works fine so I could post that up, but the multisample buffer version complains at one point (even though it works and runs as expected) - lemme take a look this evening and I&#039;ll post something up, even if it&#039;s just the non-AA version.</description>
		<content:encoded><![CDATA[<p>The non-anti-aliased code works fine so I could post that up, but the multisample buffer version complains at one point (even though it works and runs as expected) &#8211; lemme take a look this evening and I&#8217;ll post something up, even if it&#8217;s just the non-AA version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tuxy</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-7160</link>
		<dc:creator>tuxy</dc:creator>
		<pubDate>Sun, 13 Nov 2011 20:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-7160</guid>
		<description>is there any source code?? download??</description>
		<content:encoded><![CDATA[<p>is there any source code?? download??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-6965</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Tue, 20 Sep 2011 23:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-6965</guid>
		<description>I never had any ColorCode glasses to try it out with, although I did try with Green/Magenta TrioScopic glasses - and, well, it works  - but I wouldn&#039;t have been able to call one over the other, they were just different. Which reminds me that I should prolly post up a final multisampling buffer version with anaglyph cycling options... But regardless, I guess colour reproduction is always going to be dreadful with any anaglyphic method.

Thanks for your anaglyph post, btw - I found it really useful in getting my own stuff up and running. Much appreciated.</description>
		<content:encoded><![CDATA[<p>I never had any ColorCode glasses to try it out with, although I did try with Green/Magenta TrioScopic glasses &#8211; and, well, it works  &#8211; but I wouldn&#8217;t have been able to call one over the other, they were just different. Which reminds me that I should prolly post up a final multisampling buffer version with anaglyph cycling options&#8230; But regardless, I guess colour reproduction is always going to be dreadful with any anaglyphic method.</p>
<p>Thanks for your anaglyph post, btw &#8211; I found it really useful in getting my own stuff up and running. Much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuclear</title>
		<link>http://r3dux.org/2011/05/anaglyphic-3d-in-glsl/#comment-6962</link>
		<dc:creator>Nuclear</dc:creator>
		<pubDate>Tue, 20 Sep 2011 14:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=4429#comment-6962</guid>
		<description>After trying out various anaglyph glasses, I believe red-cyan are the best. Colorcode try to retain more color, but I find the extreme difference in brightness levels between the left and right eyes very tiring.</description>
		<content:encoded><![CDATA[<p>After trying out various anaglyph glasses, I believe red-cyan are the best. Colorcode try to retain more color, but I find the extreme difference in brightness levels between the left and right eyes very tiring.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

