<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - How to check object visibility?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=894</link>
		<description><![CDATA[The most recent posts in How to check object visibility?.]]></description>
		<lastBuildDate>Sun, 15 Dec 2013 08:26:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to check object visibility?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6085#p6085</link>
			<description><![CDATA[<p><strong>com3D</strong>, yeah. Thanks.<br />I thinked that IsVisible return reverse value of &quot;Invisible&quot;-attribute<br /><span class="postimg"><img src="http://sgeproject.narod.ru/pics/Maratis/invisible.jpg" alt="http://sgeproject.narod.ru/pics/Maratis/invisible.jpg" /></span><br />But it&#039;s my mistake <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>P.S. He-he, I look to engine-code. Visible check use described above algorythm with BBox <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Aikon)]]></author>
			<pubDate>Sun, 15 Dec 2013 08:26:58 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6085#p6085</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to check object visibility?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6084#p6084</link>
			<description><![CDATA[<p>In lua you can use the isVisible(object) function.</p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Sun, 15 Dec 2013 06:26:10 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6084#p6084</guid>
		</item>
		<item>
			<title><![CDATA[How to check object visibility?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6083#p6083</link>
			<description><![CDATA[<p>I need to detect events - &quot;object appear on screen&quot; and &quot;object dissapear from screen&quot;.<br />Can you advise the best way to do this?</p><p>Currently my plan is check object-visible in onSceneUpdate() by next algorythm:<br />1. Find camera look direction =&gt; vec3_A<br />2. Find vector from cameraPosition to objectPosition (center) =&gt; vec3_B<br />3. Find angles between vec3_A and vec3_B and compare with angles defined by camera fov/screen width and height.<br />It&#039;s a dirty algorythm with &quot;unknow visible state&quot; zone and can be improved by cheking all BBox-vertices (inaccessible yet) instead of center.<br />P.S. I don&#039;t need accurate detection.<br />P.P.S. Next step is visible level, e.g. 1 - object under cursor +-, 0.8 - object near cursor, 0.4 - object near screen border, 0 - object invisible.</p>]]></description>
			<author><![CDATA[dummy@example.com (Aikon)]]></author>
			<pubDate>Sat, 14 Dec 2013 20:21:38 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6083#p6083</guid>
		</item>
	</channel>
</rss>
