How to 3D VR with cached images

How to add 3D VR function?
According to the example:https://github.com/OHIF/react-vtkjs-viewport/blob/6c8bcb76312d5e5d7b0a93386c4b40c927624068/examples/VTKVolumeRenderingExample.js, it would request all the images? But I want to use the cached images

Thank you for your question @shajuta.

The react-vtkjs-viewport library is no longer supported and we shifted our focus to using cornerstone3d. You can find a live example of 3D volume rendering in cornerstone here and its corresponding source code can be found here.

In OHIF, the 3D volume viewport can be added in a hanging protocol and you can see a live example of it here. The hanging protocol that generated that view can be found here

With regards to caching, cornerstone3d will automatically use the cached images if they are there.

I hope this helps.