<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — need help with skinnedmesh]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=417&amp;type=atom" />
	<updated>2010-06-26T19:45:00Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=417</id>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1584#p1584" />
			<content type="html"><![CDATA[<p>Just an Update, it doesnt seem to crash at all on my work PC, but it is still doing the same thing. I&#039;m not sure what&#039;s going on, after looking at some code people used to push verts into SSkinmeshBuffer it should retain its shape regardless if the bones are there or not.</p>]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-26T19:45:00Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1584#p1584</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1583#p1583" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-26T05:38:06Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1583#p1583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1582#p1582" />
			<content type="html"><![CDATA[<p>as far as appendfromother that&#039;s no big deal as long as i can get the data in there i&#039;m happy. from what i saw apparently in you had to insert the vertices by using SSkinMeshBuffer.Vertices_Standard.pushback( vertice array blah blah in order to get the data into the buffer, so yea i am guessing the append function was not implemented yet.</p>]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-26T05:15:49Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1582#p1582</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1581#p1581" />
			<content type="html"><![CDATA[<p>woohoo!</p><p>after reading some techniques done in C++ i saw that you could essentially build an entire mesh and apply bones as well as set the weights within code, which was what i was after. In blitz3d i got around this whole bit simply by passing entityparent from a bone of one mesh tot he bone of another, this way when i animated the skeleton the child meshes would animate with it. In irrlicht trying to attach a bonenode of one mesh to the bonenode of another mesh crashes the system. So instead of that i decided perhaps i could just build a new Skinned mesh made up of meshbuffers from different bodyparts and then use the skeleton of the base skeleton.b3d file i loaded. This way i can swap out parts for changing costume or features.</p>]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-26T05:05:19Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1581#p1581</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1580#p1580" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2010-06-26T04:49:53Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1580#p1580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1578#p1578" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-25T23:26:54Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1578#p1578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1577#p1577" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; can you pack up a quick example (with mesh files) i can play with?</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2010-06-25T23:08:57Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1577#p1577</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1576#p1576" />
			<content type="html"><![CDATA[<p>or better yet simply attach bone from meshA to bone from meshB</p>]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-25T21:18:59Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1576#p1576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1575#p1575" />
			<content type="html"><![CDATA[<p>the goal was to copy the bodypart i load in to a new SkinnedMesh, then i copy all the joints from a different mesh, then copy my bodyparts weights to this new skinnedmesh. more or less.</p>]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-25T20:49:21Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1575#p1575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[need help with skinnedmesh]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1574#p1574" />
			<content type="html"><![CDATA[<p>Ok so basically in my game i have a skeleton i exported via b3d, now i need to swap out clothing and or body parts from this mesh. Simply attaching a scenenode to a bone node won&#039;t suffice as i need all the weights from the mesh to be applied to the base skeleton. </p><p>I have been struggling with this for a few days, but something i am having trouble figuring out is why i cannot append any vertices to a SSkinnedMeshBuffer, seems to work fine with a an SMeshBuffer.</p><p>e.g.</p><div class="codebox"><pre><code>Global bodyp:IAnimatedMesh = device.getSceneManager().getMesh(&quot;media\avatars\male_torso.b3d&quot;)


Global meshy2:ISkinnedMesh = smgr.creatSkinnedMesh()
Global meshy:SSkinMeshBuffer = meshy2.addMeshBuffer()

&#039;just gonna try with the first meshbuffer.. since this mesh only has one
Global bodymeshbuff:IMeshBuffer = bodyp.getMeshBuffer(0)


Global bodyverts:S3DVertex[] = bodymeshbuff.getVertices()
Global bodyindices:Short[] = bodymeshbuff.getIndices()

DebugLog &quot;Vertices to add: &quot;+bodyverts.length+&quot; Indices to add: &quot;+bodyindices.length

meshy.append(bodyverts,bodyindices)
DebugLog &quot;Meshy has: &quot;+meshy.getVertexCount()
&#039;meshy.appendFromOther(bodymeshbuff) &lt;---- didnt work either</code></pre></div><p>I have tried a bunch of other ways to get around this.. like trying to break attach the mesh&#039;s bones to the base skeleton&#039;s bones, but that causes irrlicht to crash. Anyone have any idea how to do this or what i am doing wrong?</p>]]></content>
			<author>
				<name><![CDATA[leondrake]]></name>
				<uri>https://gprogs.com/profile.php?id=291</uri>
			</author>
			<updated>2010-06-25T20:46:35Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1574#p1574</id>
		</entry>
</feed>
