<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Problems with rendering camera layers]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=965&amp;type=atom"/>
	<updated>2014-04-03T15:08:01Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=965</id>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6681#p6681"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-04-03T15:08:01Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6681#p6681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6679#p6679"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-04-02T17:45:36Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6679#p6679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6675#p6675"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-04-02T15:34:19Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6675#p6675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6673#p6673"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-04-02T12:12:32Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6673#p6673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6671#p6671"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-04-01T16:29:21Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6671#p6671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6668#p6668"/>
			<content type="html"><![CDATA[<p>This example works without any problems.</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-03-29T19:46:04Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6668#p6668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6667#p6667"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-29T18:18:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6667#p6667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6663#p6663"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-03-29T14:43:15Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6663#p6663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6660#p6660"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-29T11:18:45Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6660#p6660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6659#p6659"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-03-28T20:34:33Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6659#p6659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6642#p6642"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-03-26T20:55:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6642#p6642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6619#p6619"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-24T16:14:01Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6619#p6619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6617#p6617"/>
			<content type="html"><![CDATA[<p>Hi Sponk,<br />I&#039;m having a look at it, it&#039;s totally possible.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-23T20:30:18Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6617#p6617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6616#p6616"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-03-23T13:29:35Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6616#p6616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems with rendering camera layers]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6609#p6609"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-20T20:31:12Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6609#p6609</id>
		</entry>
</feed>
