<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Z Depth!]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=167</link>
		<description><![CDATA[The most recent posts in Z Depth!.]]></description>
		<lastBuildDate>Thu, 22 Sep 2011 09:13:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Z Depth!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=652#p652</link>
			<description><![CDATA[<p>I&#039;m not sure about adding an option to disable depth test for a single object, it might cause some problems, for a non-flat object, it will make the polygons of the objects penetrating themselves. It will produce the same problem with shadows, if the object was supposed to penetrate a wall, the wall shadow will still cut the object where he was supposed to penetrate the wall.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Thu, 22 Sep 2011 09:13:22 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=652#p652</guid>
		</item>
		<item>
			<title><![CDATA[Re: Z Depth!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=651#p651</link>
			<description><![CDATA[<p>Reducing the size will work fine but putting the gun on a separate layer might cause a problem. It won&#039;t get effected by the main scene lights I think.<br />If you want kindly add it as lua script for the a future release. There are some games which needs it.</p><p>Thanks.<br />Regards.</p>]]></description>
			<author><![CDATA[dummy@example.com (Arclord)]]></author>
			<pubDate>Wed, 21 Sep 2011 21:55:41 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=651#p651</guid>
		</item>
		<item>
			<title><![CDATA[Re: Z Depth!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=650#p650</link>
			<description><![CDATA[<p>personally, for the player gun in a fps, I would reduce the size of the gun to be sure it&#039;s less than the collision box and put it closer to the camera eye.</p><p>If you really don&#039;t want to change the size, you can do a separate layer like the GUI, and put the 3d gun in a separate scene that you render after the game scene.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Wed, 21 Sep 2011 16:56:28 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=650#p650</guid>
		</item>
		<item>
			<title><![CDATA[Re: Z Depth!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=649#p649</link>
			<description><![CDATA[<p>That is how I am also doing. <br />But I only want to disable single object, not the whole level. Say, the gun, stop it to going through walls. </p><p>Thanks.<br />Regards.</p>]]></description>
			<author><![CDATA[dummy@example.com (Arclord)]]></author>
			<pubDate>Wed, 21 Sep 2011 15:23:51 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=649#p649</guid>
		</item>
		<item>
			<title><![CDATA[Re: Z Depth!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=648#p648</link>
			<description><![CDATA[<p>Through sdk you can do everything, the difficulty is to do it before drawing an object.<br />But there is maybe a simpler way, what do you want to do ?</p><p>Exemple to disable zbuffer :</p><div class="codebox"><pre><code>MRenderingContext * render = engine-&gt;getRenderingontext();

// you can clear zbuffer
render-&gt;clear(M_BUFFER_DEPTH);

// or disable depth test completly
render-&gt;disableDepthTest(); // re-enable by doing : render-&gt;enableDepthTest();

// or just disable writing to depth
render-&gt;setDepthMask(1); // re-enable by doing : render-&gt;setDepthMask(0);</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Wed, 21 Sep 2011 08:20:09 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=648#p648</guid>
		</item>
		<item>
			<title><![CDATA[Z Depth!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=647#p647</link>
			<description><![CDATA[<p>Hi,<br />&nbsp; &nbsp;Is there a way to disable/enable it for an object whether through script or sdk?</p><p>&nbsp; &nbsp; Thanks.<br />&nbsp; &nbsp; Regards.</p>]]></description>
			<author><![CDATA[dummy@example.com (Arclord)]]></author>
			<pubDate>Wed, 21 Sep 2011 01:31:48 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=647#p647</guid>
		</item>
	</channel>
</rss>
