<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Papervision 3D Examples Added With Source Code</title>
	<atom:link href="http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/</link>
	<description>Flash Flex Air OS and web related content</description>
	<lastBuildDate>Tue, 16 Aug 2011 19:34:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nabil</title>
		<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/comment-page-1/#comment-28245</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Tue, 16 Aug 2011 19:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dehash.com/?p=152#comment-28245</guid>
		<description>Hi, i need a help. Where can I put a loader for a 3D.dae object in this script.

package
{
	import flash.display.BitmapData;
	import flash.display.BlendMode;
	import flash.events.Event;
	import flash.filters.BlurFilter;
	import flash.filters.GlowFilter;
	
	import org.papervision3d.core.proto.MaterialObject3D;
	import org.papervision3d.events.FileLoadEvent;
	import org.papervision3d.lights.PointLight3D;
	import org.papervision3d.materials.BitmapMaterial;
	import org.papervision3d.materials.shadematerials.EnvMapMaterial;
	import org.papervision3d.objects.parsers.DAE;
	import org.papervision3d.objects.primitives.Plane;
	
	[SWF (width=&quot;640&quot;, height=&quot;480&quot;, backgroundColor=&quot;0x000000&quot;,frameRate=&quot;30&quot;)]	
	
	public class GRINGO extends AR_AlchemyBase
	{
		public var dae : DAE; 
		public var shadowPlane : Plane;
		
		[Embed (source=&quot;/../assets/envmap-livingroom.jpg&quot;)]
		private var EnvMap : Class; 
		
		[Embed (source=&quot;/../assets/torusshadow.jpg&quot;)]
		private var ShadowBitmap : Class; 
		
		override public function addSceneObjects():void
		{
			dae = new DAE(); 
			dae.load(&quot;assets/toro.dae&quot;); 
			dae.z -=0;
			dae.rotationX = 270; 
			dae.scale=0.7;
			
			dae.addEventListener(FileLoadEvent.LOAD_COMPLETE, daeLoadComplete); 
			
			shadowPlane = new Plane(new BitmapMaterial(new ShadowBitmap().bitmapData),100,100,4,4);
			//shadowPlane.rotationZ= 45;
			
			onImageFound = fadeIn; 
			onImageLost = fadeOut;
			
		}
		
		override public function enterFrame(e:Event):void
		{
			dae.yaw(0); 
			//shadowPlane.roll(3); 
						super.enterFrame(e); 
		}
		
		public function daeLoadComplete(e:FileLoadEvent) : void
		{
			trace(&quot;DAE LOADED!&quot;);  
			trace(dae.materials); 
			
			var newmaterial : MaterialObject3D; 
			
			var envmap : BitmapData = new EnvMap().bitmapData; 
			var light : PointLight3D = new PointLight3D(); 
			newmaterial = new EnvMapMaterial(light, envmap, envmap,0); 			
			dae.replaceMaterialByName(newmaterial, &quot;torus_texture&quot;); 
			dae.useOwnContainer = true; 
			dae.filters = [new BlurFilter(1.2,1.2,4)];
			
			container.addChild(dae); 
			
			shadowPlane.useOwnContainer = true; 
			shadowPlane.blendMode = BlendMode.MULTIPLY;
			shadowPlane.alpha = 0.4; 
			shadowPlane.scale = 1.5;
			container.addChild(shadowPlane); 
			
			
		}
		
		public function fadeIn() : void
		{
			if(dae.alpha0) dae.alpha-=0.1; 
			shadowPlane.alpha = dae.alpha * 0.4; 
		}
		
	}
}</description>
		<content:encoded><![CDATA[<p>Hi, i need a help. Where can I put a loader for a 3D.dae object in this script.</p>
<p>package<br />
{<br />
	import flash.display.BitmapData;<br />
	import flash.display.BlendMode;<br />
	import flash.events.Event;<br />
	import flash.filters.BlurFilter;<br />
	import flash.filters.GlowFilter;</p>
<p>	import org.papervision3d.core.proto.MaterialObject3D;<br />
	import org.papervision3d.events.FileLoadEvent;<br />
	import org.papervision3d.lights.PointLight3D;<br />
	import org.papervision3d.materials.BitmapMaterial;<br />
	import org.papervision3d.materials.shadematerials.EnvMapMaterial;<br />
	import org.papervision3d.objects.parsers.DAE;<br />
	import org.papervision3d.objects.primitives.Plane;</p>
<p>	[SWF (width="640", height="480", backgroundColor="0x000000",frameRate="30")]	</p>
<p>	public class GRINGO extends AR_AlchemyBase<br />
	{<br />
		public var dae : DAE;<br />
		public var shadowPlane : Plane;</p>
<p>		[Embed (source="/../assets/envmap-livingroom.jpg")]<br />
		private var EnvMap : Class; </p>
<p>		[Embed (source="/../assets/torusshadow.jpg")]<br />
		private var ShadowBitmap : Class; </p>
<p>		override public function addSceneObjects():void<br />
		{<br />
			dae = new DAE();<br />
			dae.load(&#8220;assets/toro.dae&#8221;);<br />
			dae.z -=0;<br />
			dae.rotationX = 270;<br />
			dae.scale=0.7;</p>
<p>			dae.addEventListener(FileLoadEvent.LOAD_COMPLETE, daeLoadComplete); </p>
<p>			shadowPlane = new Plane(new BitmapMaterial(new ShadowBitmap().bitmapData),100,100,4,4);<br />
			//shadowPlane.rotationZ= 45;</p>
<p>			onImageFound = fadeIn;<br />
			onImageLost = fadeOut;</p>
<p>		}</p>
<p>		override public function enterFrame(e:Event):void<br />
		{<br />
			dae.yaw(0);<br />
			//shadowPlane.roll(3);<br />
						super.enterFrame(e);<br />
		}</p>
<p>		public function daeLoadComplete(e:FileLoadEvent) : void<br />
		{<br />
			trace(&#8220;DAE LOADED!&#8221;);<br />
			trace(dae.materials); </p>
<p>			var newmaterial : MaterialObject3D; </p>
<p>			var envmap : BitmapData = new EnvMap().bitmapData;<br />
			var light : PointLight3D = new PointLight3D();<br />
			newmaterial = new EnvMapMaterial(light, envmap, envmap,0);<br />
			dae.replaceMaterialByName(newmaterial, &#8220;torus_texture&#8221;);<br />
			dae.useOwnContainer = true;<br />
			dae.filters = [new BlurFilter(1.2,1.2,4)];</p>
<p>			container.addChild(dae); </p>
<p>			shadowPlane.useOwnContainer = true;<br />
			shadowPlane.blendMode = BlendMode.MULTIPLY;<br />
			shadowPlane.alpha = 0.4;<br />
			shadowPlane.scale = 1.5;<br />
			container.addChild(shadowPlane); </p>
<p>		}</p>
<p>		public function fadeIn() : void<br />
		{<br />
			if(dae.alpha0) dae.alpha-=0.1;<br />
			shadowPlane.alpha = dae.alpha * 0.4;<br />
		}</p>
<p>	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/comment-page-1/#comment-28157</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Mon, 11 Oct 2010 07:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dehash.com/?p=152#comment-28157</guid>
		<description>Hi,
These samples are so cool...
Do you have any examples that depict collision detection between collada ( DAE ) models. 
Or share any links that depict them..

Thanks,
Ram</description>
		<content:encoded><![CDATA[<p>Hi,<br />
These samples are so cool&#8230;<br />
Do you have any examples that depict collision detection between collada ( DAE ) models.<br />
Or share any links that depict them..</p>
<p>Thanks,<br />
Ram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dehash</title>
		<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/comment-page-1/#comment-28147</link>
		<dc:creator>dehash</dc:creator>
		<pubDate>Wed, 21 Jul 2010 12:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dehash.com/?p=152#comment-28147</guid>
		<description>@galih 
No it is a regular collada dae file that is being rotated using PV3D.
@Gunning 
Sounds possible some way but I have not done that myself.</description>
		<content:encoded><![CDATA[<p>@galih<br />
No it is a regular collada dae file that is being rotated using PV3D.<br />
@Gunning<br />
Sounds possible some way but I have not done that myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: galih</title>
		<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/comment-page-1/#comment-28146</link>
		<dc:creator>galih</dc:creator>
		<pubDate>Mon, 19 Jul 2010 03:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.dehash.com/?p=152#comment-28146</guid>
		<description>hi, is the collada file (.dae) that is exported from blender, an animation? and when it&#039;s imported by papervision3d, can it move on (animated) automatically while executed by papervision3d?</description>
		<content:encoded><![CDATA[<p>hi, is the collada file (.dae) that is exported from blender, an animation? and when it&#8217;s imported by papervision3d, can it move on (animated) automatically while executed by papervision3d?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunning</title>
		<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/comment-page-1/#comment-28104</link>
		<dc:creator>Gunning</dc:creator>
		<pubDate>Tue, 02 Mar 2010 12:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dehash.com/?p=152#comment-28104</guid>
		<description>Hi All,

Hope someone can help me, I am trying to wrap an flv around a cube (Excluding the top and bottom) but I am unsuccessful so far. I have searched everywhere on the net and all I can manage is to display the entire video on each side of the cube.

Code:
video = new VideoStreamMaterial(videoFile, ncStream, true);        
var materialsList:MaterialsList = new MaterialsList();     materialsList.addMaterial(video, &quot;all&quot;);
//Apply the VideoStreamMaterial to object
cube = new Cube(materialsList,1024, 1024,1024,30,30,30, 0, Cube.TOP + Cube.BOTTOM);

Is there a way I can tell it to wrap the videoStreamMaterial around all 4 faces or if there isn&#039;t can I map the videoStreamMaterial onto a plane and then warp this plane to form a cube?

I hope someone can help as I&#039;m stuck on this find no information how to do this. Every example I&#039;ve seen so far lets you map the material to every individual face.

Thanks in advance,
Gunning</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>Hope someone can help me, I am trying to wrap an flv around a cube (Excluding the top and bottom) but I am unsuccessful so far. I have searched everywhere on the net and all I can manage is to display the entire video on each side of the cube.</p>
<p>Code:<br />
video = new VideoStreamMaterial(videoFile, ncStream, true);<br />
var materialsList:MaterialsList = new MaterialsList();     materialsList.addMaterial(video, &#8220;all&#8221;);<br />
//Apply the VideoStreamMaterial to object<br />
cube = new Cube(materialsList,1024, 1024,1024,30,30,30, 0, Cube.TOP + Cube.BOTTOM);</p>
<p>Is there a way I can tell it to wrap the videoStreamMaterial around all 4 faces or if there isn&#8217;t can I map the videoStreamMaterial onto a plane and then warp this plane to form a cube?</p>
<p>I hope someone can help as I&#8217;m stuck on this find no information how to do this. Every example I&#8217;ve seen so far lets you map the material to every individual face.</p>
<p>Thanks in advance,<br />
Gunning</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dehash</title>
		<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/comment-page-1/#comment-28085</link>
		<dc:creator>dehash</dc:creator>
		<pubDate>Sun, 11 Oct 2009 12:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dehash.com/?p=152#comment-28085</guid>
		<description>@Harish - Looks like your problem is with paths so first thing I would try is to move everything  (html/swf/png/dae) into the same folder and make sure the files are not edited and have their original names.</description>
		<content:encoded><![CDATA[<p>@Harish &#8211; Looks like your problem is with paths so first thing I would try is to move everything  (html/swf/png/dae) into the same folder and make sure the files are not edited and have their original names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harish</title>
		<link>http://www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/comment-page-1/#comment-28084</link>
		<dc:creator>Harish</dc:creator>
		<pubDate>Tue, 06 Oct 2009 07:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dehash.com/?p=152#comment-28084</guid>
		<description>I have downloaded your .dae file and png file and using the above class with flash CS4. Im getting an error of WARNING: Collada material daecube_cube_png not found. What will be the reason?

One more doubt I have downloaded few more .dae files and tested for eg http://papervision2.com/loading-complex-models/ this one I&#039;m not able to see the objects but i get a wire frame alone even though the png and the dae files are int the same folder this is not working what will be the problem?

Thanks
Hari.</description>
		<content:encoded><![CDATA[<p>I have downloaded your .dae file and png file and using the above class with flash CS4. Im getting an error of WARNING: Collada material daecube_cube_png not found. What will be the reason?</p>
<p>One more doubt I have downloaded few more .dae files and tested for eg <a href="http://papervision2.com/loading-complex-models/" rel="nofollow">http://papervision2.com/loading-complex-models/</a> this one I&#8217;m not able to see the objects but i get a wire frame alone even though the png and the dae files are int the same folder this is not working what will be the problem?</p>
<p>Thanks<br />
Hari.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.dehash.com/2008/08/06/papervision-3d-examples-added-with-source-code/feed/ ) in 0.32741 seconds, on Feb 23rd, 2012 at 4:32 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 23rd, 2012 at 5:32 am UTC -->
