<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - glow shader]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=673</link>
		<description><![CDATA[The most recent posts in glow shader.]]></description>
		<lastBuildDate>Tue, 21 May 2013 10:24:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: glow shader]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4201#p4201</link>
			<description><![CDATA[<p>Hi,<br />for the pointer thing, yes the example is a bit old, the engine was modified a bit,<br />some variables was sent as a pointer and it was removed.</p><p>If you corrected getScene and getClearColor (remove the *) it should work normally,<br />did you send the new game class to the engine ? :</p><div class="codebox"><pre><code>MyGame * game = NULL;

void StartPlugin(void)
{
    // get engine
    MEngine * engine = MEngine::getInstance();

    game = new MyGame();
    engine-&gt;setGame(game);
}

void EndPlugin(void)
{
    SAFE_DELETE(game);
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 21 May 2013 10:24:44 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4201#p4201</guid>
		</item>
		<item>
			<title><![CDATA[Re: glow shader]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4194#p4194</link>
			<description><![CDATA[<div class="codebox"><pre><code>( Compiling MyGame.cpp )
MyGame.cpp: In member function ‘virtual void MyGame::draw()’:
MyGame.cpp:216:71: error: invalid conversion from ‘MOCamera*’ to ‘unsigned int’ [-fpermissive]
In file included from /home/jmclemencon/Software/maratis-read-only/trunk/dev/MSDK/MEngine/Includes/MEngine.h:148:0,
                 from MyGame.h:11,
                 from MyGame.cpp:8:
/home/jmclemencon/Software/maratis-read-only/trunk/dev/MSDK/MEngine/Includes/MScene.h:147:20: error:   initializing argument 1 of ‘MOCamera* MScene::getCameraByIndex(unsigned int)’ [-fpermissive]
MyGame.cpp:222:48: error: ambiguous overload for ‘operator*’ in ‘*MOCamera::getClearColor() const()’
MyGame.cpp:222:48: note: candidates are:
MyGame.cpp:222:48: note: operator*(float*) &lt;built-in&gt;
MyGame.cpp:222:48: note: operator*(const float*) &lt;built-in&gt;
make: *** [MyGame.o] Error 1</code></pre></div><p>I have this error <img src="http://forum.maratis3d.com/img/smilies/sad.png" width="15" height="15" alt="sad" />.</p><p>I&#039;m using the SVN version of maratis. I have already corrected the error by using</p><p>MOCamera * camera = scene-&gt;getCurrentCamera();&nbsp; &nbsp; </p><p>But it doesn&#039;t blur <img src="http://forum.maratis3d.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (samυncle)]]></author>
			<pubDate>Mon, 20 May 2013 19:56:50 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4194#p4194</guid>
		</item>
		<item>
			<title><![CDATA[Re: glow shader]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4193#p4193</link>
			<description><![CDATA[<p>Ok thanks I will try to build the plugin example for linux <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" />.</p><p>But please add bookmark or something that can remember your last file open. Like blender in the splash screen. It would be perfect. It&#039;s annoying to always reopen your project and search it in the root directory <img src="http://forum.maratis3d.com/img/smilies/sad.png" width="15" height="15" alt="sad" />.</p>]]></description>
			<author><![CDATA[dummy@example.com (samυncle)]]></author>
			<pubDate>Mon, 20 May 2013 17:21:43 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4193#p4193</guid>
		</item>
		<item>
			<title><![CDATA[Re: glow shader]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4192#p4192</link>
			<description><![CDATA[<p>Hi,</p><p>you need to use the plugin system and customize the MGame::draw function (with a custom MGame class),<br />then using render to texture and a glsl shader.</p><p>An exemple here (doing blur) : <a href="http://www.maratis3d.org/code/post-process/">http://www.maratis3d.org/code/post-process/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 20 May 2013 13:18:17 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4192#p4192</guid>
		</item>
		<item>
			<title><![CDATA[glow shader]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4189#p4189</link>
			<description><![CDATA[<p>Hello <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I&#039;m doing test with Maratis. I want to use HDR and glow.</p><p>Glow is done with two render. A first render with only light and blurred, a second one with normal scene.<br />The two render are mixed together with an additive blending. This technique is described <a href="http://http.developer.nvidia.com/GPUGems/gpugems_ch21.html">here</a>.</p><p>In maratis I was thinking to use the emit map.</p><p>First render (normal)<br />Second render (with light turned off) (so only thing that will be rendered is emit surfaces)</p><p>My question is how I can do the second render ? With a script ? or a plugin ? </p><p>And to speed up the second render I want to disable other textures (we don&#039;t need normal mapping or specular mapping). How I can do this ? Can I pass to a shader a variable with a plugin ?</p>]]></description>
			<author><![CDATA[dummy@example.com (samυncle)]]></author>
			<pubDate>Mon, 20 May 2013 10:39:47 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4189#p4189</guid>
		</item>
	</channel>
</rss>
