deepkolos / three-platformize

一个让 THREE 平台化的项目,目前已适配微信,淘宝,头条小程序,微信小游戏
533 stars 82 forks source link

使用 VideoTexture 有例子吗 #35

Open zongcong opened 2 years ago

632366134 commented 2 years ago

同问,有哪些方案可以渲染视频

deepkolos commented 2 years ago

我晚点补一个吧

632366134 commented 1 year ago

我晚点补一个吧

大佬可以大概说以下方案吗,drawImage然后getImageData加到THREE.DataTexture可行吗 还是Texture或者CanvasTexture

632366134 commented 1 year ago

我晚点补一个吧

今天用wx.VideoDecoder,createImageData,putImageData,toDataURL,textureloader,写在requestAnimationFrame,虽然实现功能,但是视频稍大就会非常的卡帧,10M左右就容易内存不足闪退