-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce VideoFrameTexture
.
#30270
Introduce VideoFrameTexture
.
#30270
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
@mrdoob Regarding the API: Do you prefer a separate class |
No I like your solution actually. Will test later or tomorrow |
hmm, seems you didnt update the build in repo. how am I supposed to test this via npm? |
I've updated the builds so you can test with |
I think |
setFrame()
.VideoFrameTexture
.
works fine! |
Related issue: #30269
Description
This PR introduces
VideoFrameTexture
as an alternative way to define video data. Instead of using a video element, instances ofVideoFrame
can now be assigned to a texture. Every time this is done, the texture gets updated so the new data can be used for rendering. Tested withWebGPURenderer
andWebGLRenderer
.This should hopefully improve workflows with the WebCodecs API.
@maddanio Can you please verify if this change set works for you?