0

Hey guys im trying to figure out why my Cube isnt showing the video texture that I added... It shows a image, which is pretty simple to implement.. But when trying to map a video texture its not doing it...

video = document.createElement('video');
video.width = 320;
video.height = 240;
video.autoplay = true;
video.src = "my video.....";

var videoTexture = new THREE.Texture( video );

var material = new THREE.MeshBasicMaterial( { vertexColors: THREE.FaceColors,
 map:texture, map: videoTexture} );

// render update....
 if( video.readyState === video.HAVE_ENOUGH_DATA ){ videoTexture.needsUpdate = true; }

but still its not showing my video on the cubes.

Any help is appreciated.

4

1 回答 1

0

您在那里定义了 2 个地图:

map:texture, map: videoTexture

也许第一个覆盖了第二个。

于 2013-01-11T00:11:55.800 回答