<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Problems with rendering camera layers]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=965</link>
		<description><![CDATA[The most recent posts in Problems with rendering camera layers.]]></description>
		<lastBuildDate>Thu, 03 Apr 2014 15:08:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6681#p6681</link>
			<description><![CDATA[<p>Ah, ok.<br />Thank you for clarifying that.</p><p>I think the engine should give at least a warning when this function is called with invalid parameters and the wiki page should not just say</p><p>&quot;object : object to operate on&quot;</p><p>since this is quite a small description (so small that it does not tell you anything about this parameter).</p><p>Everything works now as expected! Thank you for your help! <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Sponk</p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Thu, 03 Apr 2014 15:08:01 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6681#p6681</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6679#p6679</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>I found something. If you use a camera from another scene it will not render. That means that:<br />guiScene = getScene(&quot;guiScene&quot;)<br />enableCameraLayer(getObject(guiScene, &quot;Camera0&quot;), guiScene)<br />does not work whereas<br />enableCameraLayer(getObject(&quot;Camera0&quot;), guiScene)</p></blockquote></div><p>enableCameraLayer needs to receive a camera from the current scene,<br />and to see something it should be the current camera (the one that is active in the scene).</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Wed, 02 Apr 2014 17:45:36 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6679#p6679</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6675#p6675</link>
			<description><![CDATA[<p>I did some camera layer stuff just now I do it this way:</p><div class="codebox"><pre><code>cam_main = getObject(&quot;Cam_Main&quot;)

gui = getScene(&quot;GUI&quot;)

enableCameraLayer(cam_main,gui)</code></pre></div><p>This way I can change the camera explicitly, or overlay the stuff on other cameras:</p><div class="codebox"><pre><code>enableCameraLayer(cam_ortho,gui)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Wed, 02 Apr 2014 15:34:19 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6675#p6675</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6673#p6673</link>
			<description><![CDATA[<p>I found something. If you use a camera from another scene it will not render. That means that:</p><div class="codebox"><pre><code>guiScene = getScene(&quot;guiScene&quot;)
enableCameraLayer(getObject(guiScene, &quot;Camera0&quot;), guiScene)</code></pre></div><p>does not work whereas</p><div class="codebox"><pre><code>enableCameraLayer(getObject(&quot;Camera0&quot;), guiScene)</code></pre></div><p>will render at least something. You&#039;ll see no lights though.</p><p>Sponk</p><p>EDIT: I found a workaround. Everything is now in the main scene and rendering correctly.</p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Wed, 02 Apr 2014 12:12:32 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6673#p6673</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6671#p6671</link>
			<description><![CDATA[<p>Ok, I tested the (built-in) camera layer thing on Windows and came to the same result. It just does not render.</p><p>Can anyone confirm that?</p><p>Sponk</p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Tue, 01 Apr 2014 16:29:21 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6671#p6671</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6668#p6668</link>
			<description><![CDATA[<p>This example works without any problems.</p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Sat, 29 Mar 2014 19:46:04 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6668#p6668</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6667#p6667</link>
			<description><![CDATA[<p>what happen when you run the &quot;Render to texture&quot; example : <a href="http://www.maratis3d.org/?page_id=53">http://www.maratis3d.org/?page_id=53</a></p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sat, 29 Mar 2014 18:18:09 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6667#p6667</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6663#p6663</link>
			<description><![CDATA[<p>I know. I used the headers from the SVN version I used to compile the editor/player so everything should be ok.<br />They are &quot;new&quot; because it was from the latest SVN version I downloaded for a fresh compilation.</p><p>Sponk</p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Sat, 29 Mar 2014 14:43:15 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6663#p6663</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6660#p6660</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>EDIT 2: It does not work with the &quot;new&quot; headers as well...</p></blockquote></div><p>you know that you have to use the exact same headers and libraries that was used to compile Maratis,<br />otherwise it is normal that it crashes.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sat, 29 Mar 2014 11:18:45 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6660#p6660</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6659#p6659</link>
			<description><![CDATA[<p>Ok, I have now reinstalled everything and was able to stop the crashes. I think it was because the executable file of the editor was corrupt on my old disk and produced some unwanted behavior. Now everything runs without crashing (with the same headers).<br />The layer is not being rendered though.</p><p>Sponk</p><p>EDIT: I created a new project without C++ plugin to test this<br />EDIT 2: It does not work with the &quot;new&quot; headers as well...</p><p>PS: 100 posts! YAY! <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Fri, 28 Mar 2014 20:34:33 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6659#p6659</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6642#p6642</link>
			<description><![CDATA[<p>Sorry that I answer so late. My hard drive died and I had to purchase a new one. I reinstalled everything and restored my data from my backup drive (I made a backup one day before the crash <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" />)</p><p>anael: As I have no choice now, I will reinstall Maratis from SVN <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Sponk</p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Wed, 26 Mar 2014 20:55:37 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6642#p6642</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6619#p6619</link>
			<description><![CDATA[<p>I compiled the latest version from svn on mac, and the lua enableRenderToTexture and&nbsp; enableCameraLayer worked.</p><p>You should double check that the SDK includes and the MCore.dll/lib and MEngine.dll/lib are the same version, because it sounds like a library address access crash.</p><p>If I have some time I&#039;ll compile your plugin to see what happens.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 24 Mar 2014 16:14:01 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6619#p6619</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6617#p6617</link>
			<description><![CDATA[<p>Hi Sponk,<br />I&#039;m having a look at it, it&#039;s totally possible.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 23 Mar 2014 20:30:18 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6617#p6617</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6616#p6616</link>
			<description><![CDATA[<p>Thank you for pointing this out <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>It was a fast hack I used to compile the code on Windows with a different SDK version and forgot to revert it later.<br />The includes are the most recent ones from SVN. I&#039;m getting the updates on a daily basis via my little helper tool.</p><p>Well, I will see what changed in the engine since when it worked. Maybe a regression somewhere. Who knows <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Sponk</p><p>EDIT: I think it is a bug in the engine since I can&#039;t use the standard enableCameraLayer anymore without crashing the application (Linux and Windows).</p>]]></description>
			<author><![CDATA[dummy@example.com (Sponk)]]></author>
			<pubDate>Sun, 23 Mar 2014 13:29:35 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6616#p6616</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6609#p6609</link>
			<description><![CDATA[<p>I don&#039;t see something obvious popping out,<br />did you update the SDK includes in your &quot;Includes/&quot; directory ? </p><p>I noticed the lines :<br /></p><div class="codebox"><pre><code>#ifdef WIN32
    MVector4 clearColor = *camera-&gt;getClearColor();
#else
    MVector3 clearColor = camera-&gt;getClearColor();
#endif // WIN32</code></pre></div><p>This is not system dependent, &quot;camera-&gt;getClearColor();&quot; was returning a pointer in previous version of the SDK<br />but it was modified to return a copy, the same thing was done for other objects.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Thu, 20 Mar 2014 20:31:12 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6609#p6609</guid>
		</item>
	</channel>
</rss>
