发布于 2018-02-13 19:42:11
是。您可以使用带有VideoTexture的CylinderGeometry (开放式,带有调整后的thetaLength-value)来完成此操作。使用视频纹理的Here is an example。
如下所示:
function getVideoTexture() {
// this is assuming you have the video-element somewhere in your dom
var video = document.querySelector('video');
return new THREE.VideoTexture(video);
}
scene.add(new THREE.Mesh(
new THREE.CylinderGeometry(10, 10, 3, 6, 1, true, -Math.PI/4, Math.PI/2),
new THREE.MeshBasicMaterial({map: getVideoTexture()})
));https://stackoverflow.com/questions/48765623
复制相似问题