<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Simulate a Tag system]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=747</link>
		<description><![CDATA[The most recent posts in Simulate a Tag system.]]></description>
		<lastBuildDate>Tue, 27 Aug 2013 19:59:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4831#p4831</link>
			<description><![CDATA[<p>Thanks anael that will be useful when i try my read book UI system.</p>]]></description>
			<author><![CDATA[dummy@example.com (Argoon)]]></author>
			<pubDate>Tue, 27 Aug 2013 19:59:44 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4831#p4831</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4823#p4823</link>
			<description><![CDATA[<p>about gui &gt; <br />there is also a script method to draw another scene on top of a camera (like GUI Demo) : <a href="http://wiki.maratis3d.org/index.php?title=EnableCameraLayer">http://wiki.maratis3d.org/index.php?tit &#133; ameraLayer</a></p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 27 Aug 2013 19:30:23 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4823#p4823</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4811#p4811</link>
			<description><![CDATA[<p>Yes but it&#039;s in 3d, if you want it to stay 2D in relation to the player point of view, and always at the same size, etc, you have to use the GUI Demo plus my tutorial.</p>]]></description>
			<author><![CDATA[dummy@example.com (255)]]></author>
			<pubDate>Tue, 27 Aug 2013 18:26:18 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4811#p4811</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4804#p4804</link>
			<description><![CDATA[<p>Thanks 255 <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> i will experiment with it, btw showing text is not a problem on maratis even without a 2D &quot;engine&quot; you just use a text object and use activate() and deactivate() to hide or show it at the location you want.</p>]]></description>
			<author><![CDATA[dummy@example.com (Argoon)]]></author>
			<pubDate>Tue, 27 Aug 2013 15:48:49 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4804#p4804</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4794#p4794</link>
			<description><![CDATA[<div class="quotebox"><cite>Argoon wrote:</cite><blockquote><p>About getProjectedPoint(object, point) i did saw it has also getUnProjectedPoint(object, point) but there&#039;s no real tutorial on the forum (if you can call it that) that shows how to use the first</p></blockquote></div><p>I did this <a href="http://wiki.maratis3d.org/index.php?title=Convert_3D_points_to_2D_points_using_GUIDemo">http://wiki.maratis3d.org/index.php?tit &#133; ng_GUIDemo</a> but it&#039;s C++ not Lua. It uses that function.<br />BTW the function itself it&#039;s very simple, you have a point in your scene, let&#039;s say where your game character is, let&#039;s say it&#039;s P(50,50,0). You do<br /></p><div class="codebox"><pre><code>MVector3 position = camera-&gt;getProjectedPoint(MVector3(50,50,0));</code></pre></div><p>and what you get is the screen 2D coordinates stored in the variable &quot;position&quot;. Z is of course not counted.<br />As simple as that.<br />If then you want to display something (a text for example) at such position, it&#039;s a bit trickier since Maratis don&#039;t have a 2D GUI &quot;engine&quot; yet, but you can use my tutorial linked above to see how to do it with the current version.</p>]]></description>
			<author><![CDATA[dummy@example.com (255)]]></author>
			<pubDate>Tue, 27 Aug 2013 10:18:16 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4794#p4794</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4791#p4791</link>
			<description><![CDATA[<p>take care. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Tue, 27 Aug 2013 05:22:07 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4791#p4791</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4789#p4789</link>
			<description><![CDATA[<p>Thanks Tutorial Doctor i will read more about the classes then, i do know some of that terms because of my time trying to learn C# <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" />.</p><p>About getProjectedPoint(object, point) i did saw it has also getUnProjectedPoint(object, point) but there&#039;s no real tutorial on the forum (if you can call it that) that shows how to use the first, and when i used the later i just couldn&#039;t make it work well, rayhit function was what i tried next and it worked right away, has i said i&#039;m not a real coder, for the most part i need to see already made code to be able to implement my ideas, i just lack for the time being a &quot;coder brain&quot; where i see my ideas on my head already &quot;code&quot; formated, <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> ,&nbsp; i&#039;m more of a artist.&nbsp; Even the idea that made it possible for me to make the &quot;mouse over&quot; code was a Anael thread showing another user how to use the rayhit funtion with screenshots.</p><p>But day after day i&#039;m starting to &quot;get it&quot;. </p><p>Again i will read more about the classes then, good night.</p>]]></description>
			<author><![CDATA[dummy@example.com (Argoon)]]></author>
			<pubDate>Tue, 27 Aug 2013 02:49:26 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4789#p4789</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4788#p4788</link>
			<description><![CDATA[<div class="quotebox"><cite>Argoon wrote:</cite><blockquote><p>Hello guys i was able to fake a mouse over script here, i change the cursor image by a hand image when i mouse over a object, i use the rayhit function to detect the object and i just activate or deactivate a fake cursor (a plane with a image with emission on and a follow plus lookAt behavior, that is right in front of the camera) when the ray detects the object i want the cursor changes, works fantastically. </p><p>But now i have a question, from my inexperienced point of view, every time i want to make a object &quot;mouse over&quot; enabled, i need to make individual functions to all new objects (with repeated code), imo if true this would be unmanageable with so many different interactive objects on a scene, (and the script would be very confusing and big), but if i add a way to Tag a object then this would not be a major problem, does it?&nbsp; Because i think only one function would work for all objects with different names but tagged for example &quot;interactive&quot;. </p><p>for example a getTag() function would be nice but has it doesn&#039;t exist, at least i don&#039;t see it anywhere, what can you guys suggest that i do? Do i really need to make a bunch of functions for every object on my level that i want interactive or there&#039;s a more easy way?</p></blockquote></div><p>What you really want is a CLASS. This is part of the reason I made my post on how to make classes in lua. Anael also responded with a link to the wiki. </p><p>Also, have you seen the:</p><p>getProjectedPoint(object, point)</p><p>function?</p><p>I think that has something to do with the mouse also. </p><p>On Classes:</p><p>Classes are just what they sound like. An apple belongs to the class of FRUIT, and so does an orange. A man belongs to the class of HUMANS, and so does a woman. </p><p>Fruit also have various properties, like TASTE and COLOR and TYPE. These would be variables in the class. And humans have various properties also, like a NAME and an AGE and a RACE. Humans also have ABILITIES. Humans can WALK, and TALK, and JUMP, etc. These would be functions in the class (Also called METHODS).</p><p>So if I were to create a new variable named manzana, and I made it part of the fruit class, I could just give it properties and abilities without having to type out the function over and over for a new fruit.</p><p>When you make variables that have these abilities and properties they are called OBJECTS. </p><p> Example:</p><p>--We make joe a person<br />joe = newPerson()</p><p>--now we can do stuff with joe<br />joe:Walk()<br />joe:Speak()<br />joe:Dance()</p><p>print (joe.name)<br />print (joe.age)<br />print (joe.height)</p><p>--create another person<br />sara= newPerson()<br />sara:Speak()<br />sara:Dance()<br />sara:Walk()</p><p>print (sara.height)<br />print (sara.age)<br />print (sara.name)</p><p>And we could keep doing this over and over and over.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Tue, 27 Aug 2013 01:39:03 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4788#p4788</guid>
		</item>
		<item>
			<title><![CDATA[Simulate a Tag system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4787#p4787</link>
			<description><![CDATA[<p>Hello guys i was able to fake a mouse over script here, i change the cursor image by a hand image when i mouse over a object, i use the rayhit function to detect the object and i just activate or deactivate a fake cursor (a plane with a image with emission on and a follow plus lookAt behavior, that is right in front of the camera) when the ray detects the object i want the cursor changes, works fantastically. </p><p>But now i have a question, from my inexperienced point of view, every time i want to make a object &quot;mouse over&quot; enabled, i need to make individual functions to all new objects (with repeated code), imo if true this would be unmanageable with so many different interactive objects on a scene, (and the script would be very confusing and big), but if i add a way to Tag a object then this would not be a major problem, does it?&nbsp; Because i think only one function would work for all objects with different names but tagged for example &quot;interactive&quot;. </p><p>for example a getTag() function would be nice but has it doesn&#039;t exist, at least i don&#039;t see it anywhere, what can you guys suggest that i do? Do i really need to make a bunch of functions for every object on my level that i want interactive or there&#039;s a more easy way?</p>]]></description>
			<author><![CDATA[dummy@example.com (Argoon)]]></author>
			<pubDate>Tue, 27 Aug 2013 01:20:07 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4787#p4787</guid>
		</item>
	</channel>
</rss>
