1

I'm exploring using 3d textures for video playback in three.js.

Three.js has a good example of this – https://threejs.org/examples/webgl2_rendertarget_texture2darray.html, but the data format isn't documented. I'm guessing each video frame is packed into the binary file in order as Uint8ClampedArray, but am looking for documentation on the format before trying that.

1 Answer 1

1

Your assumption is correct. The asset is no real texture format. It's just raw data which are loaded and packed into an array of data textures. Unfortunately, there is no documentation that explain how you produces such an asset. But essentially, the loaded array buffer is just a sequence of frames. So if you have a video, you can extract the data frame by frame and save the data in an array buffer. You just have to make sure to figure out the dimensions of each frame as well as the format/type of the texels (e.g. RGBA and unsigned byte).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.