TextureArray in BalyonLite

Hello,
Since I am missing support for populating texture arrays directly in BabylonJS ( Populate 2D texture array from image asset , Populate 2D texture array from image asset · Issue #13174 · BabylonJS/Babylon.js · GitHub ), I was wondering what is the situation in Babylon Lite and I see no equivalent to RawTextureArray2D.

Do you consider adding support for TextureArrays in BabylonJS? If yes, please consider supporting what the raw WebGL API supports:

  • Loading from a URL, using ImageBitmap?
  • Directly bind to a canvas (BabylonJS can already do it)
  • Binding to a browser video

(BabylonSJ can already do all of them for regular Textures but not for TextureArray).

Currently, within my babylon classic application, I have to first download an image, draw it to an offscreen canvas and then grab the raw pixel data to pass it to the constructor of RawTextureArray2D, which is of course far from optimal,

Best regards and thank you,

Axel

Checking the current state of things in Lite first, let me circle back…

@axeljaeger your original question was about Babylon Lite, and there it is not supported directly either. But, take a look at this potential addition to validate it’s the kind of thing you are looking for. If so, we can see about adding it to Lite, and potentially adding something similar to BJS as well.

feat(texture): add 2D texture array creation and image-source population · BabylonJS/Babylon-Lite@a814e8b

Looks good to me! Looking forward to play around with it.