Skip to content
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

Missing PositionalLocatorState when port to Unity 2022.3.14f using MRTK2.8 #19

Open
thong63 opened this issue Mar 24, 2024 · 11 comments
Open

Comments

@thong63
Copy link

thong63 commented Mar 24, 2024

I get the following error when I try to port this project to Unity 2022.3.14f using MRTK2.8.

Assets\MRTKExtensions\QRCodes\SpatialGraphCoordinateSystemSetter.cs(20,17): error CS0246: The type or namespace name 'PositionalLocatorState' could not be found (are you missing a using directive or an assembly reference?)

Can you please help me fix this issue.

Thank you

Screenshot 2024-03-24 075733

@LocalJoost
Copy link
Owner

I have no idea what branch you have used, but please refer to https://localjoost.github.io/Upgrading-reading-and-positioning-QR-codes-with-HoloLens-2-to-Unity-2020-+-OpenXR-plugin/ for using newer versions of Unity first

@thong63
Copy link
Author

thong63 commented Mar 24, 2024 via email

@LocalJoost
Copy link
Owner

Please try this branch first https://github.com/LocalJoost/QRCodeService/tree/openxr

@thong63
Copy link
Author

thong63 commented Mar 24, 2024 via email

@LocalJoost
Copy link
Owner

;) this QR stuff is a side project, not work, so you actually have a better change of getting an answer from me in the weekend and the (CET) evenings. Anyway, I was just between potting up some seedlings and sowing new flowers and veggies, so I was answering you in a short break between botanical activities

@thong63
Copy link
Author

thong63 commented Mar 24, 2024 via email

@LocalJoost
Copy link
Owner

LocalJoost commented Mar 24, 2024

First of all, I should add that both potting and sowing took place in the attic hobby room, not outside. We don't have snow here, but it's way too cold for sowing outside.
"QR tracking is not supported" you get in the editor only, because the QR tracking only works it in HoloLens. So if you try to run in the editor, you get this warning. Duh ;)
You can deploy in HoloLens, but it does not pick your QR code. What are you using for QR code? It does not recognize just any old QR code, it searches for a specific a QR code. Which you can plainly see in the editor. The sample you have downloaded look for a QR code having "https://localjoost.github.io" as a payload. As it also says so on my blog: https://localjoost.github.io/Positioning-QR-codes-in-space-with-HoloLens-2-building-a-'poor-man's-Vuforia'/#tracker1

Did you read my blog, or did you just pull the code and tried it to get to work?

@thong63
Copy link
Author

thong63 commented Mar 24, 2024 via email

@LocalJoost
Copy link
Owner

Great to to hear that. Yeah, the samples evolved a bit over time and became more elaborate. Of course, you can change the code to respond to any QR code pretty easily, but my idea was that it would do different things for different QR codes. So I checked it to only respond to one single code. My latest sample with QR codes actually shows responses to multiple different QR codes, dunno if that is interesting to you :) https://localjoost.github.io/Showing-multiple-location-based-items-based-on-QR-codes-using-MRTK3-and-HoloLens-2/

@thong63
Copy link
Author

thong63 commented Mar 24, 2024 via email

@LocalJoost
Copy link
Owner

LocalJoost commented Mar 24, 2024

Great to hear it got you going. Interesting you state your reason for sticking with MRTK2.8.x is multi platform support. Did you notice this little side panel left bottom on my blog?
image

I think MRTK3 is even more suited to multi platform support than 2. And since MRTK2 is now in 'maintenance mode', this mean it won't support newer and future Unity versions. While I have already seen announcements of provisionary MRKT3 implementation on Apple Vision Pro by a community member. In addition, you might want to take into consideration the QR tracking and positioning code in my samples uses a library that utilizes a native HoloLens API that works on HoloLens 2 - and HoloLens 2 only.

Thank you. I would love to go out to lunch or dinner with you to learn more of about your work!

You are welcome. This is what MVPs do. About that lunch or dinner - sounds like fun, but there is the minor detail of me living about 4000 miles away from Wisconsin. That distance, as well as the Atlantic Ocean, makes dropping by bit tricky ;). Should you find yourself for some reason near Amersfoort, the Netherlands in the future - please drop by.

Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants