You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported as a bug, but added a header with details on possible paths for fix this
Module and/or Feature
Immutable Textures - The support for video textures was lost during the big luma.gl texture refactor. A key part of this refactor was to make the basic @luma.gl/coreTexture class immutable. There were strong reasons for this.
Resource immutability aligns with WebGPU,
It avoids having to add lots of logic in the core, webgpu and webgl libraries.
AsyncTexture - To still allow for valuable features such as texture resize, async loading of textures etc, a new class AsyncTexture was created in @luma.gl/engine (it creates and destroys immutable textures under the hood when resizing etc). It may be possible to add back the special handling that was removed from the webgl texture implementation to the AsyncTexture class
ExternalTexture - However, a complication is that video textures are handled very differently in WebGPU, where special transient/throw away class called GPUExternalTexture must be created each frame.
It is not yet clear how a unified implementation would look.
Bug Description
When trying to use a video element for a texture, deck.gl is failing. The update() method has been removed and the deprecation notice references ExternalTexture, however this appears to unimplemented also
@chrisgervang it would probably speed things up if we had an example with a video texture in luma.gl. Perhaps we can just find a small open source video and add it to the textured-cube example?
We could add the video texture to the example on 9.0-release branch, make sure it is working, and cherry-pick it into 9.1-release or master from there.
Reported as a bug, but added a header with details on possible paths for fix this
Module and/or Feature
Immutable Textures - The support for video textures was lost during the big luma.gl texture refactor. A key part of this refactor was to make the basic
@luma.gl/core
Texture
class immutable. There were strong reasons for this.AsyncTexture
- To still allow for valuable features such as texture resize, async loading of textures etc, a new classAsyncTexture
was created in@luma.gl/engine
(it creates and destroys immutable textures under the hood when resizing etc). It may be possible to add back the special handling that was removed from the webgl texture implementation to theAsyncTexture
classExternalTexture
- However, a complication is that video textures are handled very differently in WebGPU, where special transient/throw away class calledGPUExternalTexture
must be created each frame.It is not yet clear how a unified implementation would look.
Bug Description
When trying to use a video element for a texture, deck.gl is failing. The update() method has been removed and the deprecation notice references
ExternalTexture
, however this appears to unimplemented alsoExpected Behavior
No response
Steps to Reproduce
https://felixpalmer.github.io/deck.gl/examples/first-person-view
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: