Create one 3d texture for multi- volume rendering windows?

I am developing a medical 3d application, For medical 3d application, there is a very common layout which includes one 3D(Volume rendering) window and three MPR windows(please refer to the image). I found that for four windows vtk-js will create four ‘scalarTexture’ texture ,this means four 3d texture(by code: context.texSubImage3D in Texture.js) will be created. But usually there is not enough graphics memory on the client computer.

Is it possible to create one 3d texture for four or more windows which display the same volume data?

Hi @jackzzz Support for shared graphics resources across viewports in a common context is in the works for vtk-js. That would allow you to use the same 3D texture across the four views. I anticipate this to be available late next month.

2 Likes

Great. This improvement is very necessary, especially for Big data. It can not only reduce video memory, but also improve image loading speed!

1 Like

You can look at our sharedMapper here which is exactly what you want. I don’t have time to push it back to vtk but feel free to do so