<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Post Processing supported?]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=524&amp;type=atom"/>
	<updated>2013-01-07T09:10:56Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=524</id>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3255#p3255"/>
			<content type="html"><![CDATA[<p>Maybe a faster way can be implemented in lua:</p><div class="codebox"><pre><code>//this creates automatically the second camera and the mesh
imageOnCam = createShadingFrameBuffer()  // imageOnCam = { mesh = plane with the texture of the primary camera ,  camera = a camera pointing to mesh}
setShader( imageOnCam.mesh , &quot;shaderfile.frag&quot; , &quot;shaderfile.vert&quot; )</code></pre></div><p>but maybe the auxiliary cam will be influenced by the lights of the environment</p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-01-07T09:10:56Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3255#p3255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3253#p3253"/>
			<content type="html"><![CDATA[<p>yes, the mesh in blender is in fact just a quad, you can make it one time and reuse it,<br />or take the one from the example with the t-pot.</p><p>With a plugin you can do it directly with code, there is a direct access to the engine so it can do anything.</p><p>I&#039;ll try to do something more simple in-editor for the next release if I have time.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-07T00:18:56Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3253#p3253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3252#p3252"/>
			<content type="html"><![CDATA[<p>So actually to use shaders I have to:</p><p>1 - Create the glsl .frag/.vert files<br />2 - Apply the shader to a mesh in blender<br />3 - Render a camera to a texture, so the mesh applies the shader to the texture ( which in reality is the scene of the camera )<br />4 - Use a second camera to see the shader effect</p><p>It&#039;s a bit complicated...<br />And if I write a plugin can I hook the shaders directly to the camera output?</p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-01-06T22:39:40Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3252#p3252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3251#p3251"/>
			<content type="html"><![CDATA[<p>It&#039;s in Blender : <a href="http://www.maratis3d.org/?p=277">http://www.maratis3d.org/?p=277</a><br />There is a material mode called &quot;CustomShader&quot;</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-06T22:19:24Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3251#p3251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3249#p3249"/>
			<content type="html"><![CDATA[<p>I still have some questions...</p><p>1. Can I apply shaders without using the textures system directly on the cam?<br />2. How does maratis manage shaders? I didn&#039;t find any &quot;shader&quot; option , does it pass which shader on the mesh file?</p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-01-06T22:00:27Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3249#p3249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3248#p3248"/>
			<content type="html"><![CDATA[<p>Bloom is already possible using the render to texture technique, it just need a shader, but should not be very complicated, you can look at the shaders of the example from the link I gave you, Bloom can be done a bit like the blur effect but with a contrasted image put in addition of the normal render.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-06T21:23:00Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3248#p3248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3247#p3247"/>
			<content type="html"><![CDATA[<p><a href="http://en.wikibooks.org/wiki/OpenGL_Programming/Post-Processing">http://en.wikibooks.org/wiki/OpenGL_Pro &#133; Processing</a></p><p>It doesn&#039;t look like complicated, I&#039;ll give it a try on my spare time <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-01-06T21:15:13Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3247#p3247</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3246#p3246"/>
			<content type="html"><![CDATA[<p>I don&#039;t have a great knowledge about graphics in C++,<br />so I have no idea of how to implement such a thing... maybe I&#039;ll give it a try too after some research on graphics! <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>but some years ago , i used a little 3d program like maratis to make some model testing suite...<br />it already has bloom and depth of field, maybe its source could be usefull...</p><p>It has a good graphics, but some feature was missing for a complete editor ( the scene editor and the scene tree system )...</p><p>here it is...<br /><a href="https://github.com/centralnoise/BlendELF/tree/master/elf">https://github.com/centralnoise/BlendEL &#133; master/elf</a></p><p>video<br /><a href="http://www.youtube.com/watch?v=qg7_N2-H4Wg">http://www.youtube.com/watch?v=qg7_N2-H4Wg</a></p><p>I hope maratis can get this capability...</p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-01-06T21:09:20Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3246#p3246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3245#p3245"/>
			<content type="html"><![CDATA[<p>Normally it has to be done using a c++ plugin,<br />but I recently added a feature that can enable render to texture from lua, and the texture can be used to do post process with a shader. Only thing is this method don&#039;t give access to depth yet so depth of field will still need to be done in c++ (I think I&#039;ll add it for the next version).</p><p>&quot;Render to texture&quot; example here : <a href="http://www.maratis3d.org/?page_id=53">http://www.maratis3d.org/?page_id=53</a></p><p><span class="postimg"><img src="http://www.maratis3d.org/wp-content/uploads/2012/08/renderToTexture.jpg" alt="http://www.maratis3d.org/wp-content/uploads/2012/08/renderToTexture.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-06T20:53:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3245#p3245</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Post Processing supported?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3242#p3242"/>
			<content type="html"><![CDATA[<p>Hi!</p><p>Does maratis support post processing effects?</p><p>PS It would be nice to add some effects like bloom or depth of field</p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-01-06T19:59:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3242#p3242</id>
		</entry>
</feed>
