<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "parse class into 3dobject"]]></title>
		<link>http://forum.alternativaplatform.com/posts/list/40.page</link>
		<description><![CDATA[Latest messages posted in the topic "parse class into 3dobject"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>parse class into 3dobject</title>
				<description><![CDATA[ Hello,<br /> <br /> i created a class were i create a 3 object and load its informations<br /> now i want to create an object from this class and add this object to the scene<br /> <br /> but i get the error message: class "wall" is not a object 3d...<br /> how can i parse it into a 3d object?<br /> if i try "wall as object 3D" theres no error before starting, after starting i get the error that he cant add a empty object on scene.<br /> <br /> here are the code snipet<br /> <br /> //Here i want to add the class on scene:<br /> <br /> 	wall1 = new wall(10,10,10,0);<br /> 	scene.root.addChild(wall1);<br /> <br /> //here code from class wall<br /> <br /> public function wall(xPosl:int,yPosl:int,zPosl:int,rotationl:int)<br /> 		{<br /> 			xPos = xPosl;<br /> 			yPos = yPosl;<br /> 			zPos = zPosl;<br /> 			rotation = rotationl;<br /> <br /> <br /> 		        wandLoader = new Loader3DS();<br /> 			wandLoader.smooth = true;<br /> 			wandLoader.precision = TextureMaterialPrecision.HIGH;<br /> 			wandLoader.load("resource/wand/wand2.3DS");<br /> 			wandLoader.scale = 0.2;	// Danou verkleinert<br /> 			wandLoader.addEventListener(Event.COMPLETE, onWandloadingComplete);//parameterübergabe<br /> 							<br /> 							<br /> 		}<br /> 		 private function onWandloadingComplete(e:Event) {<br /> 		<br /> 		 	  <br />     		for (var o:* in wandLoader.content.children) {  <br />         		var object:Object3D = o;  <br />           		weldVerticesAndFaces(object);  			 <br />  				//scene.root.addChild(object);<br />  				//scene vorhanden?<br />  				<br />     		}  <br />     		<br />     		<br />     		<br />     		<br />  		 }<br /> 		<br /> 		 private function weldVerticesAndFaces(object:Object3D):void {  <br /> 	   		if (object is Mesh) { <br />          		MeshUtils.autoWeldVertices(Mesh(object), 0.01);  <br />          		MeshUtils.autoWeldFaces(Mesh(object), 0.01, 0.001); 				<br />     	 	} <br />     	 	<br />     	 	<br />     // Launching procedure for object's children  for wall1<br />      		for (var key:* in object.children) {  <br />         		weldVerticesAndFaces(key);  <br />      		}   <br /> <br />      		object.x = xPos;<br />      		object.y = yPos;<br />      		object.z = zPos;<br />      		object.rotationZ =rotation;<br />      	// funktion on klick<br />        		object.addEventListener(MouseEvent3D.MOUSE_DOWN, onSWF); <br />        		<br />  		}<br /> <br /> any idea how i can solve that problem?<br /> <br /> mfg Benji benji]]></description>
				<guid isPermaLink="true">http://forum.alternativaplatform.com/posts/preList/2824/50295.page</guid>
				<link>http://forum.alternativaplatform.com/posts/preList/2824/50295.page</link>
				<pubDate><![CDATA[Tue, 2 Feb 2010 13:33:06]]> GMT</pubDate>
				<author><![CDATA[ masterben]]></author>
			</item>
			<item>
				<title>parse class into 3dobject</title>
				<description><![CDATA[ [quote=Benji benji]Hello,<br /> <br /> i created a class were i create a 3 object and load its informations<br /> now i want to create an object from this class and add this object to the scene<br /> <br /> but i get the error message: class "wall" is not a object 3d...[/quote][url=http://livedocs.adobe.com/flash/9.0/main/00000068.html#wp129738]here[/url]]]></description>
				<guid isPermaLink="true">http://forum.alternativaplatform.com/posts/preList/2824/50296.page</guid>
				<link>http://forum.alternativaplatform.com/posts/preList/2824/50296.page</link>
				<pubDate><![CDATA[Tue, 2 Feb 2010 13:52:42]]> GMT</pubDate>
				<author><![CDATA[ makc]]></author>
			</item>
			<item>
				<title>Re:parse class into 3dobject</title>
				<description><![CDATA[ can you give me maybe a small codesnipet? i dont understand what to do with this class or how to use it?<br /> how can this help to solve my problem?<br /> <br /> mfg Benji benji]]></description>
				<guid isPermaLink="true">http://forum.alternativaplatform.com/posts/preList/2824/50298.page</guid>
				<link>http://forum.alternativaplatform.com/posts/preList/2824/50298.page</link>
				<pubDate><![CDATA[Tue, 2 Feb 2010 19:20:31]]> GMT</pubDate>
				<author><![CDATA[ masterben]]></author>
			</item>
			<item>
				<title>Re:parse class into 3dobject</title>
				<description><![CDATA[ You can not add an arbitrary class like the Event class to the scene, can you? Only instances of Object3d are supposed to be passes to the addChild() method of a 3d scene<br /> <br /> Your class must extend the same Object3D.<br /> <br /> And if you bother posting a project, we don't need to create everything from scratch to show you what we mean!]]></description>
				<guid isPermaLink="true">http://forum.alternativaplatform.com/posts/preList/2824/50299.page</guid>
				<link>http://forum.alternativaplatform.com/posts/preList/2824/50299.page</link>
				<pubDate><![CDATA[Tue, 2 Feb 2010 19:36:48]]> GMT</pubDate>
				<author><![CDATA[ mehrdadsanjabi]]></author>
			</item>
			<item>
				<title>Re:parse class into 3dobject</title>
				<description><![CDATA[ [quote=Mehrdad Sanjabi (aka Mehdadoo) kolhoz™]You can not add an arbitrary class like the Event class to the scene, can you? Only instances of Object3d are supposed to be passes to the addChild() method of a 3d scene<br /> <br /> Your class must extend the same Object3D.<br /> <br /> And if you bother posting a project, we don't need to create everything from scratch to show you what we mean![/quote]<br /> <br /> yeah youre right. I tought at the wrong way i solved it on other way but thx for help.<br /> I didn´t need to parse it into an object3d<br /> <br /> but thanks anyway <img src="http://forum.alternativaplatform.com//images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" />]]></description>
				<guid isPermaLink="true">http://forum.alternativaplatform.com/posts/preList/2824/50301.page</guid>
				<link>http://forum.alternativaplatform.com/posts/preList/2824/50301.page</link>
				<pubDate><![CDATA[Wed, 3 Feb 2010 16:30:38]]> GMT</pubDate>
				<author><![CDATA[ masterben]]></author>
			</item>
	</channel>
</rss>
