-
Notifications
You must be signed in to change notification settings - Fork 59
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
Getting the WorldOriginPtr with unity > 2021.2 #52
Comments
var unityWorldOrigin = Microsoft.MixedReality.OpenXR.PerceptionInterop.GetSceneCoordinateSystem(UnityEngine.Pose.identity) as Windows.Perception.Spatial.SpatialCoordinateSystem; |
Thank you @petergu684 very, very much for your quick answer! |
Hello again @petergu684, I've tested now the application with that line and unfortunately the same problem still persists: The pointcloud is smaller and looks more away from the real scene and also fades away when your move your head. |
Are you by any chance using WLT or similar packages that changes the camera transformation? |
No, nothing like that or similar was installed by me. Could that be maybe the reason why the point cloud visualization gets distorted? Thank you very, very much in advance for your answer. BR, Birkenpapier |
Sorry but I have no idea. One suggestion is to open a clean project in the newer version rather than porting from the old one, although I did not have any issue porting mine from 2019 to 2021 but who knows. The Unity version I am using is 2021.3.11 with OpenXR backend and everything works fine. I am not sure what OpenXR settings you are looking for, but it should be the standard way. In Project Settings - XR Plugin-in Management, under UWP tab, I have "Initialize XR on Startup" ticked and "OpenXR" and "Microsoft HoloLens feature group" ticked as well beneath. In Project Settings - XR Plugin-in Management - OpenXR, I have Single Pass Instanced, Depth 16 Bit, tick only on "Microsoft Hololens" in OpenXR Feature Groups and selected all the three options (Hand Tracking, Mixed Reality Features and Motion Controller Model) on the right-hand side. |
I see. Thank you very much for answering. May I ask you for sharing your ported and working unity version? That would be very helpful. Thank you very, very much in advance for your answer. BR, Birkenpapier From: Wenhao ***@***.***>Sent: Friday, March 24, 2023 21:25To: petergu684/HoloLens2-ResearchMode-Unity ***@***.***>Cc: Birkenpapier ***@***.***>; Author ***@***.***>Subject: Re: [petergu684/HoloLens2-ResearchMode-Unity] Getting the WorldOriginPtr with unity > 2021.2 (Issue #52)
Sorry but I have no idea. One suggestion is to open a clean project in the newer version rather than porting from the old one, although I did not have any issue porting mine from 2019 to 2021 but who knows. The Unity version I am using is 2021.3.11 with OpenXR backend and everything works fine.
I am not sure what OpenXR settings you are looking for, but it should be the standard way. In Project Settings - XR Plugin-in Management, under UWP tab, I have "Initialize XR on Startup" ticked and "OpenXR" and "Microsoft HoloLens feature group" ticked as well beneath. In Project Settings - XR Plugin-in Management - OpenXR, I have Single Pass Instanced, Depth 16 Bit, tick only on "Microsoft Hololens" in OpenXR Feature Groups and selected all the three options (Hand Tracking, Mixed Reality Features and Motion Controller Model) on the right-hand side.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
As you may find, I don't have much time to maintain this repo regularly, so I don't have updated version of this sample project. I am using it on a different project that I cannot share here, but I will update with you once I got time to update the sample here. |
Thank you very much! Looking forward to hear from you. Thank you very much an BR, Kevin From: Wenhao ***@***.***>Sent: Friday, March 24, 2023 21:55To: petergu684/HoloLens2-ResearchMode-Unity ***@***.***>Cc: Birkenpapier ***@***.***>; Author ***@***.***>Subject: Re: [petergu684/HoloLens2-ResearchMode-Unity] Getting the WorldOriginPtr with unity > 2021.2 (Issue #52)
As you may find, I don't have much time to maintain this repo regularly, so I don't have updated version of this sample project. I am using it on a different project that I cannot share here, but I will update with you once I got time to update the sample here.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hello again @petergu684, thank you very much for your suggestions. 20230329_053359_HoloLens_compressed.mp4This offset is also visible when you export the PC directly from the C++ application into Open3D ans send it back to the unity scene. Do you maybe have any clue what is happening here? BR, Birkenpapier EDIT: |
Hello, @Birkenpapier , @petergu684 Actually UWP app which runs on Hololens2 , is running well but it doesn't recognize my hand. so I can't click the button of pannel like a "Toggle Preview" , "Toggle Point Cloud" , "Connect to server" , and etc... I saw your reply on this post, I checked your porject don't recognize your hand at first your photo , but at last photo, your app is recognizing your hand. This is my issue. Can you tell me how fix it? |
Hi everyone and thanks for the super useful project! I have been stuck for three days pretty much at the same point as @Birkenpapier : I can use the project with OpenXR and Unity 2021.3.21f, and everything works with no warnings, including pressing buttons and displaying the pointcloud. But I have an offset of the pointcloud to the real world (and to the scene understanding mesh, which interestingly is correct) that corresponds more or less to the offset between sensor and head center (similar to the video above). I have tried:
But nothing seems to even change then offset in the slightest. So I assume there is a transformation happening somewhere, which bypasses all of these different settings, and that transformation probably has a slight difference between Windows MR and OpenXR. I have seen that for hl2ss there seems to have been a fix, but I cannot figure out how to apply that fix here... Has anyone had any luck with this? Thanks a lot! P.S. I have dependencies on newer Unity versions, so 2021.3.21f is unfortunately as low as I can go... |
Hello petergu684,
thank you very, very much for such a nice project!
Unfortunately I need to continue my development with the unity version 2021.2 and the problem is that the methods for getting the unityWorldOrigin are discontinued from that version.
Are there any replacements I can implement to keep the same functionality that the pointcloud is visualized directly where they got recorded or is it simply not possible from that version to get the alignment process of both done?
Thank you very, very much for your or anyones help!
BR,
Birkenpapier
The text was updated successfully, but these errors were encountered: