-
Notifications
You must be signed in to change notification settings - Fork 156
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
ComputeOnDevice object location #10
Comments
I presume you are referring to the ComputeOnDevice sample. It should be place at the distance of 2 meters from your current location in the gaze direction. Is tracking working consistently ? |
I haven't had any issues with tracking previously but this is the first time I'm running OpenCV or a UWP app (rather than Unity). |
@sshiv Is there another place I should be asking questions about these examples? Is the HL forums better? |
@shllybkwrm, just to make sure we're looking at the same repro steps, the ComputeOnDevice sample does not show anything when first launched. Only when you air-tap, the sample positions a live preview of the color camera 2 meters in front of you. The next air-tap will freeze the image. The next air-tap will create another live preview window, etc. If this doesn't work, we'll have to narrow the possibilities down. A good starting point would be to set a breakpoint at AppMain::OnSpatialInput (in Samples\ComputeOnDevice\AppMain.cpp). From there, you should be able to step into the SlateRenderer::PositionHologram call and observe the headPosition, headDirection, gazeAtTwoMeters and _rotationInRadians calculations. |
@polszta When I run the ComputeOnDevice sample, it doesn't react at all to air-taps, either in front of me or on the blue screen I mentioned previously. (By the way, it would be great if there was documentation about the air-tap functionality for the sample. I wasn't able to find more than one line about what ComputeOnDevice does.) I set the breakpoint as you suggested but when I debug I'm getting an error before I even get there. However I'm not sure this is related to the specific project so I'll look into it some more and report back.
|
Point taken on sample documentation, filed issue #12 to track the work here. The error you're hitting is coming from Media Foundation and most likely explains the rest of the symptoms... Perhaps the camera permissions in case they got somehow revoked? Could you please double-check that from by launching the Settings app, choosing the Privacy tab then Camera and making sure the toggle next to the app name is in the "On" position. If this doesn't help, we'll have to ask you to share some more information about your setup so that we can try reproducing this problem locally: Windows version of the PC you're building the samples on (obtained by running "ver.exe" in a command prompt) and Visual Studio version (Help -> About Microsoft Visual Studio). |
The camera permissions still look good. Here's my info:
I do have different versions of VS installed on this machine as well, any reason that would be an issue? |
I've set up a computer from scratch, trying to closely match your configuration (we have seen some people over here run into issues when building the samples on older version of Windows, etc., so I wanted to take this out of the equation). I could not reproduce the issue you are hitting (for reference, see the attached log file showing the application working correctly). Enabling all C++ exceptions to break into debugger would be a good start to diagnose this further (in VS: Debug -> Windows -> Exception Settings, then toggle the "C++ exceptions"). Please do share the call stack of the failure and the full debugger output log. |
Sorry for the delay, I was away from my HL. I changed the setting you mentioned and I've attached the output. Exception: Call Stack:
|
I think this particular exception is a first-chance exception, if you hit F5 (Run) it will be handled by the input host component. |
For this sample, how does the program or HL choose where to locate the slate object? For me, it's initializing fairly far away, in an area of the room where I haven't been since turning on the HL. I didn't even notice it the first few times I deployed - I thought the app wasn't working because I didn't see anything.
The text was updated successfully, but these errors were encountered: