<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Z Depth!]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=167&amp;type=atom"/>
	<updated>2011-09-22T09:13:22Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=167</id>
		<entry>
			<title type="html"><![CDATA[Re: Z Depth!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=652#p652"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-09-22T09:13:22Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=652#p652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Z Depth!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=651#p651"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Arclord]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=211</uri>
			</author>
			<updated>2011-09-21T21:55:41Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=651#p651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Z Depth!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=650#p650"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-09-21T16:56:28Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=650#p650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Z Depth!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=649#p649"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Arclord]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=211</uri>
			</author>
			<updated>2011-09-21T15:23:51Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=649#p649</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Z Depth!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=648#p648"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-09-21T08:20:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=648#p648</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Z Depth!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=647#p647"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Arclord]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=211</uri>
			</author>
			<updated>2011-09-21T01:31:48Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=647#p647</id>
		</entry>
</feed>
