Hello ,
I’m currently working on a project that involves a tile-based 3D map with elevation and normal textures. To initialize the texture, I’m using gl.texImage3D, which has been working well. However, I’m facing a challenge when it comes to updating specific parts of the texture using texSubImage3D.
In the Babylon.js framework, I’m utilizing the RawTexture3D class, but it doesn’t provide direct access to texSubImage3D, which is necessary for updating only a portion of the texture at a time.
Before I reinvent the wheel and write my own code (which is basically not rocket science :-)), I wanted to reach out here for advice.
Has anyone worked on a similar use case and successfully implemented a solution for updating specific parts of a 3D texture in Babylon.js?
gl.bindTexture(gl.TEXTURE_3D, texture);
gl.texSubImage3D(gl.TEXTURE_3D, 0, xoffset, yoffset, zoffset, width, height, depth, ...);
gl.bindTexture(gl.TEXTURE_3D, null);
If you have any insights, suggestions, or code snippets, I would greatly appreciate your input.
G.