<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - glow shader]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=673&amp;type=atom"/>
	<updated>2013-05-21T10:24:44Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=673</id>
		<entry>
			<title type="html"><![CDATA[Re: glow shader]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4201#p4201"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-05-21T10:24:44Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4201#p4201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: glow shader]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4194#p4194"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[samυncle]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1434</uri>
			</author>
			<updated>2013-05-20T19:56:50Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4194#p4194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: glow shader]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4193#p4193"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[samυncle]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1434</uri>
			</author>
			<updated>2013-05-20T17:21:43Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4193#p4193</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: glow shader]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4192#p4192"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-05-20T13:18:17Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4192#p4192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[glow shader]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4189#p4189"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[samυncle]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1434</uri>
			</author>
			<updated>2013-05-20T10:39:47Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4189#p4189</id>
		</entry>
</feed>
