Trying to extend the sample application for Scene Perception in Unity with a feature to save and load state of the ScenePerception module. I can successfully save state using SaveCurrentState(), but when I try to load the state in the next session the function reports success but it doesn't seem to do anything.
What are the prerequisites for loading state? I have set up a SenseManager instance and call LoadState before i do Init(). Do I need to do anything else to load the mesh into Unity before I can start meshing in DepthFusion?
Tried to read up in the SDK documentation but it was quite terse on the subject. Any pointers much appreciated!
So I figured this out. Turns out I need to call LoadState before Init but after QueryScenePerception and EnableScenePerception.
Now, I can save and load the state of the ScenePerception module, but some interesting things pop up.
Is there a way to overcome this limitation of 16384 block meshes, for instance by requesting block meshes in chunks by setting one 2x2x2m area at a time with SetMeshingRegion?