Add support for loading texture from buffer in photodome

I’m currently tinkering with different image loading techniques for 360 viewers and wanted to try leveraging the approach described here Faster Image Loading With Embedded Image Previews — Smashing Magazine using http range requests and progressive jpegs. I started with using the photodome, but it appears that this only loads texture from URL and I want to load them from a buffer. Is there any possibility for adding this support? I’d be more than happy to add it if there is interest. From other searches it seems that DynamicTexture may be more suited to this task than a regular Texture, but PhotoDome doesn’t seem to expose anything I can leverage to bypass the loading of Texture from url.

Hello and welcome!

you can convert your buffer to an URL:

 var blob = new Blob([data], { type: "octet/stream" });
            var url = URL.createObjectURL(blob);