<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — Possible to mix iB3d code with "normal" code?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=325&amp;type=atom" />
	<updated>2008-08-23T18:04:00Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=325</id>
		<entry>
			<title type="html"><![CDATA[Re: Possible to mix iB3d code with "normal" code?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1289#p1289" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; it is definately possible to mix code.&nbsp; each iB3D type has a field that is a pointer to the underlying Irrlicht types.&nbsp; so for example, to create the sydney model is some calls to iB3D functions, but to set the animations you need to access the underlying Irrlicht type directly.&nbsp; an example would be:<br /></p><div class="codebox"><pre><code>Local syd:MESH=ib3d_LoadAnimMesh(&quot;sydney.md2&quot;)
IAnimatedMeshSceneNode(syd._node).getFrameNr() &#039; returns current frame
IAnimatedMeshSceneNode(syd._node).setAnimationSpeed(1) &#039; sets speed of animation
Local startframe:Int=0, endframe:Int=25
IAnimatedMeshSceneNode(syd._node).setFrameLoop(startframe,endframe)
IAnimatedMeshSceneNode(syd._node).setLoopMode(False) &#039; to turn off looping</code></pre></div><p>take a peek at the iB3D type code to find the underlying Irrlicht types.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2008-08-23T18:04:00Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1289#p1289</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Possible to mix iB3d code with "normal" code?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1283#p1283" />
			<content type="html"><![CDATA[<p>I&#039;m wondering this myself, mixing stuff like shaders in with iB3D.</p>]]></content>
			<author>
				<name><![CDATA[Mog]]></name>
				<uri>https://gprogs.com/profile.php?id=22</uri>
			</author>
			<updated>2008-07-24T13:25:33Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1283#p1283</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Possible to mix iB3d code with "normal" code?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1274#p1274" />
			<content type="html"><![CDATA[<p>Hi GMan,</p><br /><p>Is it possible to use iB3d and the &quot;normal code&quot; at the same time, or will there be any conflicts?</p><br /><br /><br /><p>Tim</p>]]></content>
			<author>
				<name><![CDATA[TimM.]]></name>
				<uri>https://gprogs.com/profile.php?id=238</uri>
			</author>
			<updated>2008-05-07T19:33:14Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1274#p1274</id>
		</entry>
</feed>
