Nicholas Jela
Nicholas Jela

Reputation: 2601

How to using three.js show a video file in 3D scene?

Wanna achieve result something like this:

enter image description here

I already knows how to playing FBX animation in three.js, but how to simply place a video file in 3D scene like this?

Upvotes: 1

Views: 1022

Answers (1)

kitta
kitta

Reputation: 2069

Take a look at the video texture here

https://threejs.org/docs/#api/en/textures/VideoTexture.

By this, You could set the video into a texture and set this texture inside the material.

And you may want to create Video element without getElementId, And this may help you
Dynamically create a HTML5 video element without it being shown in the page

Upvotes: 1

Related Questions