Dear support,
I exported a model (result of Slicer segmentation), using Open Anatomy, and I visualized it in Unity environment. The model seems to be not in correct position in the reference system. More specifically, the visualization box seems to be clearly superior to the model, as if the origin of the two reference systems were different. Any suggestions? Thanks
Unity computes the bounding box. Slicer does not have any influence on how that operation is performed. Therefore, this is a problem in your Unity glTF importer or in how you use it. Check your code and if you are completely sure that you do everything correctly then you can report the problem to the developers of the glTF importer plugin.
I suspect the issue is around the “matrix” property in the file, which specifies how to convert coordinates from LPS coordinate system (in millimeters, this is used for the model point coordinates) to LSA coordinate system (in meters, this is the glTF world coordinate system). It is a complex topic, further complicated by the fact that glTF uses right-handed coordinate system while Unity uses left-handed. Developers and users of the glTF importer plugin in Unity have been struggling with this (see for example here) and maybe not all problems have been fixed or it perhaps it is easy to misuse the imported data.
Note that until recently the only way to use Slicer with HoloLens was to use Unity (or other graphics engine, but Unity has been the most popular). Since about a month ago, this extra layer of complexity is no longer needed. Slicer can directly render the 3D scene (including volume rendering, 4D time sequence data display, GUI widgets, etc.) in the HoloLens, using SlicerVirtualReality extension. See for example this AR project from the last Slicer Project Week: