<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Flash: How to add Video texture in Papervision 3D</title>
	<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/</link>
	<description>Lessrain Blog</description>
	<pubDate>Wed, 08 Feb 2012 22:32:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Eduardo</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-140423</link>
		<dc:creator>Eduardo</dc:creator>
		<pubDate>Mon, 05 Apr 2010 22:22:21 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-140423</guid>
		<description>&lt;p&gt;Hello.
I`m noob on flex and still cannot configure a project runing this AS file.
Any help please?.&lt;/p&gt;

&lt;p&gt;I try also this example http://www.adobe.com/devnet/flash/articles/flash&lt;em&gt;video&lt;/em&gt;3d_print.html and with this the problem is the object just with gray, no video texture (audio is running)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello.<br />
I`m noob on flex and still cannot configure a project runing this AS file.<br />
Any help please?.</p>
<p>I try also this example <a href="http://www.adobe.com/devnet/flash/articles/flash" rel="nofollow">http://www.adobe.com/devnet/flash/articles/flash</a><em>video</em>3d_print.html and with this the problem is the object just with gray, no video texture (audio is running)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikew909</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-138869</link>
		<dc:creator>mikew909</dc:creator>
		<pubDate>Wed, 15 Jul 2009 04:28:24 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-138869</guid>
		<description>&lt;p&gt;great post! anyone able to get the video to stop (including audio?) when i try stop the video the audio keeps going - anyone have an idea there?&lt;/p&gt;

&lt;p&gt;cheers! :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>great post! anyone able to get the video to stop (including audio?) when i try stop the video the audio keeps going - anyone have an idea there?</p>
<p>cheers! <img src='http://www.blog.lessrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-137469</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Tue, 26 Aug 2008 20:29:40 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-137469</guid>
		<description>&lt;p&gt;@itch: try searching for MovieMaterial. you'll have to load the swf first though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@itch: try searching for MovieMaterial. you&#8217;ll have to load the swf first though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: itch</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-137466</link>
		<dc:creator>itch</dc:creator>
		<pubDate>Tue, 26 Aug 2008 09:48:58 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-137466</guid>
		<description>&lt;p&gt;What about loading a swf as texture for a plane ? Do you know if this is possible ? I searched on google, but google's not my friend today with this requests... ;)&lt;/p&gt;

&lt;p&gt;Thx !&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What about loading a swf as texture for a plane ? Do you know if this is possible ? I searched on google, but google&#8217;s not my friend today with this requests&#8230; <img src='http://www.blog.lessrain.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thx !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xero / fontvir.us</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-136966</link>
		<dc:creator>xero / fontvir.us</dc:creator>
		<pubDate>Wed, 28 May 2008 17:25:46 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-136966</guid>
		<description>&lt;p&gt;thanx for updating this for 2.0/GW compatability!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>thanx for updating this for 2.0/GW compatability!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ohm</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-135797</link>
		<dc:creator>Ohm</dc:creator>
		<pubDate>Wed, 12 Mar 2008 11:22:36 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-135797</guid>
		<description>&lt;p&gt;Hi, nice example !&lt;/p&gt;

&lt;p&gt;But like in some other tuts I found around, there’s always a problem with the “renderCamera” function…???
Would you have an idea why ?&lt;/p&gt;

&lt;p&gt;Thx&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, nice example !</p>
<p>But like in some other tuts I found around, there’s always a problem with the “renderCamera” function…???<br />
Would you have an idea why ?</p>
<p>Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-124487</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 12 Jan 2008 15:38:23 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-124487</guid>
		<description>&lt;p&gt;just done a small demo ( http://www.rootop.de/?p=128 ) inspired by your bitmap.draw example... your blog saved me hours of unnecessary headaches, thanks a lot... 
mentioned you in my blog - if you don't mind.&lt;/p&gt;

&lt;p&gt;kind regards, peter&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>just done a small demo ( <a href="http://www.rootop.de/?p=128" rel="nofollow">http://www.rootop.de/?p=128</a> ) inspired by your bitmap.draw example&#8230; your blog saved me hours of unnecessary headaches, thanks a lot&#8230;<br />
mentioned you in my blog - if you don&#8217;t mind.</p>
<p>kind regards, peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: root.op  &#187; Blog Archive   &#187; Papervision3D / VideoCubes</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-124480</link>
		<dc:creator>root.op  &#187; Blog Archive   &#187; Papervision3D / VideoCubes</dc:creator>
		<pubDate>Sat, 12 Jan 2008 15:08:42 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-124480</guid>
		<description>&lt;p&gt;[...] 17; and source after the click. heavly inspired by Robots w/Lasers and the lessrain log. the video footage is taken from the excellent documentary &#8220;Good Copy Bad Copy&#8221;, see [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] 17; and source after the click. heavly inspired by Robots w/Lasers and the lessrain log. the video footage is taken from the excellent documentary &#8220;Good Copy Bad Copy&#8221;, see [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-109950</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sat, 17 Nov 2007 07:46:53 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-109950</guid>
		<description>&lt;p&gt;As of this time, it will not work with the release candidate Flash player (version 64 with hardware acceleration), but it does work with version 47.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>As of this time, it will not work with the release candidate Flash player (version 64 with hardware acceleration), but it does work with version 47.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bilety lotnicze</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-104563</link>
		<dc:creator>bilety lotnicze</dc:creator>
		<pubDate>Fri, 02 Nov 2007 13:52:54 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-104563</guid>
		<description>&lt;p&gt;"Flash: How to add Video texture in Papervision 3D" -  Good work. Cogratulations&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;Flash: How to add Video texture in Papervision 3D&#8221; -  Good work. Cogratulations</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Video wall mark 1 at  all that flash</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-101848</link>
		<dc:creator>Video wall mark 1 at  all that flash</dc:creator>
		<pubDate>Mon, 22 Oct 2007 19:23:48 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-101848</guid>
		<description>&lt;p&gt;[...]                                           This is not something which I made from scratch, however during reading this guys stuff I have now made myself familiar with:  Loading video into Flex. Strea [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;]                                           This is not something which I made from scratch, however during reading this guys stuff I have now made myself familiar with:  Loading video into Flex. Strea [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-101831</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 22 Oct 2007 17:27:25 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-101831</guid>
		<description>&lt;p&gt;I like, it is very nice :) I can see almost endless possibilities with this tool.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I like, it is very nice <img src='http://www.blog.lessrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I can see almost endless possibilities with this tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ed</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-99923</link>
		<dc:creator>ed</dc:creator>
		<pubDate>Sat, 13 Oct 2007 14:24:53 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-99923</guid>
		<description>&lt;p&gt;Working fine but how would you make the planes clickable? Any ideas?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Working fine but how would you make the planes clickable? Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chichilatte</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-88575</link>
		<dc:creator>chichilatte</dc:creator>
		<pubDate>Thu, 23 Aug 2007 12:35:02 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-88575</guid>
		<description>&lt;p&gt;Thank you rick, that works perfectly for me. impressive!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you rick, that works perfectly for me. impressive!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rowery</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-86912</link>
		<dc:creator>rowery</dc:creator>
		<pubDate>Tue, 14 Aug 2007 04:07:51 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-86912</guid>
		<description>&lt;p&gt;I just tried building and running your example. I can hear the sound but the video is just a white (bent) box.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I just tried building and running your example. I can hear the sound but the video is just a white (bent) box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82972</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Mon, 23 Jul 2007 16:41:50 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82972</guid>
		<description>&lt;p&gt;That worked -- thanks.&lt;/p&gt;

&lt;p&gt;I made some other simplifications -- see the 'loop3D' function, below.&lt;/p&gt;

&lt;p&gt;Here's my final code:
package
{
    import flash.display.&lt;em&gt;;
    import flash.events.&lt;/em&gt;;
    import flash.media.Video;
    import flash.net.&lt;em&gt;;
    import flash.geom.&lt;/em&gt;;
    //You need papervision 3D framework
    import org.papervision3d.scenes.&lt;em&gt;;
    import org.papervision3d.cameras.&lt;/em&gt;;
    import org.papervision3d.objects.&lt;em&gt;;
    import org.papervision3d.materials.&lt;/em&gt;;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[SWF(width="800", height="600", frameRate="31", backgroundColor="#292929")]
public class MainVideoSample extends Sprite
{
    private var _container : Sprite;
    private var _scene3D : Scene3D;
    private var _camera: Camera3D;
    private var _rootNode: DisplayObject3D;
    private var _connection : NetConnection;
    private var _stream : NetStream;
    private var _video : Video;
    private var _videoSprite : Sprite;
    private var _videoWidth : Number;
    private var _videoHeight : Number;
    private var _videoTexture: BitmapData;
    private var _planeTexture1 : BitmapData;
    private var _planeTexture2 : BitmapData;
    private var _srcRect1 : Rectangle;
    private var _srcRect2 : Rectangle;
    private var _basePoint : Point;
    private var _material1          :BitmapMaterial;
    private var _material2          :BitmapMaterial;

    public function MainVideoSample()
    {
        stage.quality = "MEDIUM";
        stage.scaleMode = "noScale";
        _videoWidth=320;
        _videoHeight=240;
        _basePoint = new Point (0, 0);
        _srcRect1 = new Rectangle( 0, 0, _videoWidth/2, _videoHeight); 
        _srcRect2 = new Rectangle(_videoWidth/2, 0, _videoWidth/2, _videoHeight);
        _videoTexture= new BitmapData (_videoWidth,_videoHeight);
        _planeTexture1 = new BitmapData (_videoWidth/2,_videoHeight);
        _planeTexture2 = new BitmapData (_videoWidth/2,_videoHeight);
        init3D();
        loadVideo();
        createPlanes();
        addEventListener( Event.ENTER_FRAME, loop3D ); 
    }
    private function init3D():void
    {
        _container = new Sprite();
        addChild( _container );
        _container.x = 400;
        _container.y = 300;
        _scene3D = new Scene3D( _container );
        _camera = new Camera3D();
        _camera.zoom = 10;
        _camera.focus = 200;
        _rootNode = _scene3D.addChild( new DisplayObject3D( "_rootNode" ) );
    }
    private function loadVideo():void
    {
        _connection = new NetConnection();
        _connection.connect(null);
        _stream = new NetStream(_connection);
        _stream.client = new Object();  //prevents error message about not catching onMetaData, which we don't need.
        _video = new Video(_videoWidth, _videoHeight);
        _stream.play('assets/myvideo.flv');
        _video.attachNetStream(_stream);
    }
    private function createPlanes():void
    {
        _material1 = new BitmapMaterial( _planeTexture1);
        _material1.oneSide=false;
        var plane1:DisplayObject3D = _rootNode.addChild( new Plane( _material1, _videoWidth/2, _videoHeight, 4, 4 ), "plane1" );
        plane1.x = -_videoWidth/4;
        _material2 = new BitmapMaterial(_planeTexture2);
        _material2.oneSide=false;
        var plane2:DisplayObject3D = _rootNode.addChild( new Plane( _material2, _videoWidth/2, _videoHeight, 4, 4 ), "plane2" );
        plane2.z = _videoWidth/4;
        plane2.rotationY = -90;
    }
    private function loop3D(event:Event):void
    {
        _camera.x += ( ( -_container.mouseX * 5 ) - _camera.x ) / 10;
        _camera.y += ( ( -_container.mouseY * 5 ) - _camera.y ) / 10;
        _videoTexture.draw(_video);
        _planeTexture1.copyPixels(_videoTexture, _srcRect1, _basePoint);
        _planeTexture2.copyPixels(_videoTexture, _srcRect2, _basePoint);
        _material1.bitmap = _planeTexture1;
        _material2.bitmap = _planeTexture2;
        _scene3D.renderCamera(_camera );
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That worked &#8212; thanks.</p>
<p>I made some other simplifications &#8212; see the &#8216;loop3D&#8217; function, below.</p>
<p>Here&#8217;s my final code:<br />
package<br />
{<br />
    import flash.display.<em>;<br />
    import flash.events.</em>;<br />
    import flash.media.Video;<br />
    import flash.net.<em>;<br />
    import flash.geom.</em>;<br />
    //You need papervision 3D framework<br />
    import org.papervision3d.scenes.<em>;<br />
    import org.papervision3d.cameras.</em>;<br />
    import org.papervision3d.objects.<em>;<br />
    import org.papervision3d.materials.</em>;</p>
<pre><code>[SWF(width="800", height="600", frameRate="31", backgroundColor="#292929")]
public class MainVideoSample extends Sprite
{
    private var _container : Sprite;
    private var _scene3D : Scene3D;
    private var _camera: Camera3D;
    private var _rootNode: DisplayObject3D;
    private var _connection : NetConnection;
    private var _stream : NetStream;
    private var _video : Video;
    private var _videoSprite : Sprite;
    private var _videoWidth : Number;
    private var _videoHeight : Number;
    private var _videoTexture: BitmapData;
    private var _planeTexture1 : BitmapData;
    private var _planeTexture2 : BitmapData;
    private var _srcRect1 : Rectangle;
    private var _srcRect2 : Rectangle;
    private var _basePoint : Point;
    private var _material1          :BitmapMaterial;
    private var _material2          :BitmapMaterial;

    public function MainVideoSample()
    {
        stage.quality = "MEDIUM";
        stage.scaleMode = "noScale";
        _videoWidth=320;
        _videoHeight=240;
        _basePoint = new Point (0, 0);
        _srcRect1 = new Rectangle( 0, 0, _videoWidth/2, _videoHeight);
        _srcRect2 = new Rectangle(_videoWidth/2, 0, _videoWidth/2, _videoHeight);
        _videoTexture= new BitmapData (_videoWidth,_videoHeight);
        _planeTexture1 = new BitmapData (_videoWidth/2,_videoHeight);
        _planeTexture2 = new BitmapData (_videoWidth/2,_videoHeight);
        init3D();
        loadVideo();
        createPlanes();
        addEventListener( Event.ENTER_FRAME, loop3D );
    }
    private function init3D():void
    {
        _container = new Sprite();
        addChild( _container );
        _container.x = 400;
        _container.y = 300;
        _scene3D = new Scene3D( _container );
        _camera = new Camera3D();
        _camera.zoom = 10;
        _camera.focus = 200;
        _rootNode = _scene3D.addChild( new DisplayObject3D( "_rootNode" ) );
    }
    private function loadVideo():void
    {
        _connection = new NetConnection();
        _connection.connect(null);
        _stream = new NetStream(_connection);
        _stream.client = new Object();  //prevents error message about not catching onMetaData, which we don't need.
        _video = new Video(_videoWidth, _videoHeight);
        _stream.play('assets/myvideo.flv');
        _video.attachNetStream(_stream);
    }
    private function createPlanes():void
    {
        _material1 = new BitmapMaterial( _planeTexture1);
        _material1.oneSide=false;
        var plane1:DisplayObject3D = _rootNode.addChild( new Plane( _material1, _videoWidth/2, _videoHeight, 4, 4 ), "plane1" );
        plane1.x = -_videoWidth/4;
        _material2 = new BitmapMaterial(_planeTexture2);
        _material2.oneSide=false;
        var plane2:DisplayObject3D = _rootNode.addChild( new Plane( _material2, _videoWidth/2, _videoHeight, 4, 4 ), "plane2" );
        plane2.z = _videoWidth/4;
        plane2.rotationY = -90;
    }
    private function loop3D(event:Event):void
    {
        _camera.x += ( ( -_container.mouseX * 5 ) - _camera.x ) / 10;
        _camera.y += ( ( -_container.mouseY * 5 ) - _camera.y ) / 10;
        _videoTexture.draw(_video);
        _planeTexture1.copyPixels(_videoTexture, _srcRect1, _basePoint);
        _planeTexture2.copyPixels(_videoTexture, _srcRect2, _basePoint);
        _material1.bitmap = _planeTexture1;
        _material2.bitmap = _planeTexture2;
        _scene3D.renderCamera(_camera );
    }
}
</code></pre>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drissou</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82929</link>
		<dc:creator>Drissou</dc:creator>
		<pubDate>Mon, 23 Jul 2007 11:22:54 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82929</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I had the same problem as Rick and irie. After some struggling (i.e. a lot), I was able to solve this by setting material1 and material2 as global variables, and setting their bitmap property to _planeTexture1 and _planeTexture2 in the loop3D function just before the scene rendering as follows:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;        _planeTexture1.copyPixels(_videoTexture, _srcRect1,_basePoint);
        _planeTexture2.copyPixels(_videoTexture, _srcRect2,_basePoint);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;//added code
            material1.bitmap=&lt;em&gt;planeTexture1;
            material2.bitmap=&lt;/em&gt;planeTexture2;
//end added code&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;        _scene3D.renderCamera(_camera );
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let me know if that helps.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had the same problem as Rick and irie. After some struggling (i.e. a lot), I was able to solve this by setting material1 and material2 as global variables, and setting their bitmap property to _planeTexture1 and _planeTexture2 in the loop3D function just before the scene rendering as follows:</p>
<pre><code>        _planeTexture1.copyPixels(_videoTexture, _srcRect1,_basePoint);
        _planeTexture2.copyPixels(_videoTexture, _srcRect2,_basePoint);
</code></pre>
<p>//added code<br />
            material1.bitmap=<em>planeTexture1;<br />
            material2.bitmap=</em>planeTexture2;<br />
//end added code</p>
<pre><code>        _scene3D.renderCamera(_camera );
</code></pre>
<p>Let me know if that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irie</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82583</link>
		<dc:creator>irie</dc:creator>
		<pubDate>Fri, 20 Jul 2007 22:19:26 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82583</guid>
		<description>&lt;p&gt;Hi I have the same prob as B... The video texture is not visible but the sound is working... Anyone an idea??? &lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi I have the same prob as B&#8230; The video texture is not visible but the sound is working&#8230; Anyone an idea??? </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82558</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Fri, 20 Jul 2007 17:39:35 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82558</guid>
		<description>&lt;p&gt;I just tried building and running your example.  I can hear the sound but the video is just a white (bent) box.  I'm using the latest Flash Player 9.0.47 and the 1.5 version of PaperVision and I've tried it on both Mac and Windows.  Any ideas?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I just tried building and running your example.  I can hear the sound but the video is just a white (bent) box.  I&#8217;m using the latest Flash Player 9.0.47 and the 1.5 version of PaperVision and I&#8217;ve tried it on both Mac and Windows.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82506</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Fri, 20 Jul 2007 07:36:52 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-how-to-add-video-to-papervision-3d-as-a-texture/#comment-82506</guid>
		<description>&lt;p&gt;Another option if you don't want to get the error and you want to read the metadata or the cuepoints is to add something like this:&lt;/p&gt;

&lt;p&gt;var customClient:Object = new Object();&lt;/p&gt;

&lt;p&gt;customClient.onCuePoint = cuePointHandler;&lt;/p&gt;

&lt;p&gt;customClient.onMetaData = metaDataHandler;&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;_stream.client = customClient;&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;private function cuePointHandler(infoObject&lt;em&gt;:Object):void 
{
    trace("cuePoint");
}
private function metaDataHandler(infoObject&lt;/em&gt;:Object):void 
{
    trace("metaData");
}&lt;/p&gt;

&lt;p&gt;Is up to you...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Another option if you don&#8217;t want to get the error and you want to read the metadata or the cuepoints is to add something like this:</p>
<p>var customClient:Object = new Object();</p>
<p>customClient.onCuePoint = cuePointHandler;</p>
<p>customClient.onMetaData = metaDataHandler;</p>
<p>&#8230;</p>
<p>_stream.client = customClient;</p>
<p>&#8230;</p>
<p>private function cuePointHandler(infoObject<em>:Object):void<br />
{<br />
    trace(&#8221;cuePoint&#8221;);<br />
}<br />
private function metaDataHandler(infoObject</em>:Object):void<br />
{<br />
    trace(&#8221;metaData&#8221;);<br />
}</p>
<p>Is up to you&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

