<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Starting some additional lua binding]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=510&amp;type=atom"/>
	<updated>2013-01-04T14:16:55Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=510</id>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3208#p3208"/>
			<content type="html"><![CDATA[<p>Oh right, that&#039;s working <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2013-01-04T14:16:55Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3208#p3208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3207#p3207"/>
			<content type="html"><![CDATA[<p>Vegas : normally it was already done (I probably forgot to add it to the wiki) :<br />setAnimationSpeed(object, speed)<br />getAnimationSpeed(object)<br />setCurrentFrame(object, frame)<br />getCurrentFrame(object)</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-04T11:10:47Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3207#p3207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3162#p3162"/>
			<content type="html"><![CDATA[<p>I&#039;m thinking of get/setAnimationSpeed and get/setCurrentFrame that i saw long time ago on r68 over <a href="http://code.google.com/p/maratis/source/list?num=25&amp;start=84">Here</a></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2013-01-02T15:00:12Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3162#p3162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3160#p3160"/>
			<content type="html"><![CDATA[<p>I need to add something to access materials properties, and maybe bones coordinates.</p><p>Other things missing ?</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-02T13:48:47Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3160#p3160</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3157#p3157"/>
			<content type="html"><![CDATA[<p>Great! Some good features, well done.</p>]]></content>
			<author>
				<name><![CDATA[Almighty Laxz]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1037</uri>
			</author>
			<updated>2013-01-02T07:54:46Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3157#p3157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3151#p3151"/>
			<content type="html"><![CDATA[<p>Amazing ! however i can only watch and drool :x</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2013-01-01T21:31:40Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3151#p3151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3148#p3148"/>
			<content type="html"><![CDATA[<p>Nice! <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> Ill go check it out now.</p>]]></content>
			<author>
				<name><![CDATA[zester]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=516</uri>
			</author>
			<updated>2013-01-01T20:06:23Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3148#p3148</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3146#p3146"/>
			<content type="html"><![CDATA[<p>And a second wave, the code is on svn ! :</p><p>- general :<br />getChilds(object) &gt; return a list of all childs (if any)<br />getWindowScale() &gt; return a table[2]<br />getSystemTick()</p><p>- shadows :<br />enableShadow(object, bool)<br />isCastingShadow(object)</p><p>- light properties :<br />setlightShadowQuality<br />setlightShadowBias<br />setlightShadowBlur<br />getlightShadowQuality<br />getlightShadowBias<br />getlightShadowBlur<br />setlightSpotAngle<br />setlightSpotExponent<br />getlightSpotAngle<br />getlightSpotExponent</p><p>- physics :<br />getMass<br />setMass<br />getFriction<br />setFriction<br />getRestitution<br />setRestitution<br />getAngularFactor<br />setAngularFactor<br />getLinearFactor<br />setLinearFactor<br />getCentralForce<br />getTorque</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-01T18:33:32Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3146#p3146</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Starting some additional lua binding]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3145#p3145"/>
			<content type="html"><![CDATA[<p>I&#039;m starting a code session to improve the lua integration of Maratis engine as a lot of feature are still missing,<br />the first wave is already on svn, with a focus on vector manipulation and object.</p><p>I added a minimal vector manipulation for 3d vector, compatible with the current table system,<br />allowing basic math (addition, multiplication etc), for example :</p><div class="codebox"><pre><code>pos = (getPosition(object) + vec3(1, 0, 0)) * 2

-- it&#039;s still a table like before :
x = pos[1]
y = pos[2]
z = pos[3]</code></pre></div><p>With the classic math :</p><p>length(vec)&nbsp; &nbsp; &nbsp; &nbsp; &gt; return a number<br />normalize(vec)&nbsp; &nbsp; &nbsp; &nbsp; &gt; return a vec3<br />dot(veca, vecb)&nbsp; &nbsp; &nbsp; &nbsp; &gt; return a number<br />cross(veca, vecb)&nbsp; &nbsp; &gt; return a vec3</p><br /><p>Plus some object missing functions (there is still a lot missing) :</p><p>- object data<br />isActive(object)<br />getName(object)<br />getParent(object)<br />setParent(object, parent)</p><p>- to get object global coordinates (if parenting) :<br />getTransformedPosition(object)<br />getTransformedRotation(object)&nbsp; &nbsp; <br />getTransformedScale(object)<br />&nbsp; &nbsp; <br />-- some vector/matrix manipulation :<br />getInverseRotatedVector(object, vec)<br />getRotatedVector(object, vec)<br />getInverseVector(object, vec)<br />getTransformedVector(object, vec)<br />updateMatrix(object)<br />getMatrix(object) &gt; return a table of 16 entries</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-01T16:28:35Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3145#p3145</id>
		</entry>
</feed>
