New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SpatialMeshExporter] OBJ file format exported not opening #8475
Comments
What were you trying to open the obj with? I haven't been able to get something to refuse to import/open it (I generated my file from the Unity editor, so maybe it's something about on-device? or I wonder if this is a globalization culture difference, where we're assuming
I do repro the incorrect coordinate system though. Looks like we get both the coordinate system and the winding order wrong. |
@thibaultgrad I opened #10208 to try to fix the coordinate space, winding order, and culture-specific formatting issues. I wasn't able to repro any issues with |
Thanks @keveleigh, i tested the culture specific issue and it did the trick. The coordinate space is also correct. The only problem i still have is the one with the "/". When I replace "/" by "//" in the obj file with NotePad++, the OBJ file opens in 3D Viewer. |
Huh! For whatever reason, I'm not having the same problem opening in the Windows tools :/ We shouldn't need the |
Here are the 2 files the modified is the one that opens with 3D Viewer the other one is the raw file exported by the unity app on Hololens 2. |
My project is using mrtk 2.7.2. what is the best/most smooth solution to benefit the invariant culture formatting while waiting for the next mrtk release ? |
We appreciate your feedback and thank you for reporting this issue. Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important. Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2. Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org. Thank you for your continued support of the Mixed Reality Toolkit! |
Describe the bug
The SpatialMeshExporter.Save method export a non openable obj file.
After solving the file formatting by replacing the decimalseparator by "." and replacing "/" by "//" , the obj file opens up. The problem is that the objwriterutility doesn't transform the left handed coordinate system so the resulting obj file is a mirror of the actual mapping of the room.
To reproduce
Steps to reproduce the behavior:
savepath can be application.persistentDataPath
Expected behavior
The obj file should open correctly and should be mirrored to get the right mapping (not the mirrored one).
Screenshots
If applicable, add screenshots to help explain your problem.
Your setup (please complete the following information)
Target platform (please complete the following information)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: