We are utilizing three.js to display 3D representations of stomach contents based on MRI data. The colors represent approximate concentrations, with each bubble representing a voxel in the 3D space. Use the menu on the left to load different views.
(Feel free to use this link as sample code)
The flat surface at the top (adjust the image rotation) simulates the liquid level of the meal due to gravity.
We are interested in saving the current view in a cookie so that users can return to the same perspective later on. However, I am unsure which matrix to store in the cookie.
I have reviewed https://github.com/mrdoob/three.js/issues/1188#issuecomment-3666286
but I have yet to pinpoint the specific matrix to store in the cookie. The ones I have identified do not update during rotation. Please note that while I am familiar with using cookies, this is more of a THREE.js-specific inquiry rather than a general JavaScript programming question.