Comments (22)
If it is RS4, then the main issue will be the MediaCapture Source Group order has changed. Please modify line 214 of ARUWPVideo.cs to
SourceGroup = allGroups[1],
from hololensartoolkit.
Is the scale of the marker images that you printed off the same as what is listed within Unity? Check the ARUWP Controller asset -> ARUWP Marker and size in mm field. Also, depending on which test scene you are running, you want to make sure that you have printed off the correct marker script, as in the one that is listed under the File Name field in the ARUWP Marker script (for the HoloLensARToolKitSingle scene, there are marker images - Hiro, and Kanji - found here https://github.com/artoolkit/artoolkit5/tree/master/doc/patterns).
from hololensartoolkit.
@Derekioh , did you import the ARToolKitUWP.unitypackage into your project?
from hololensartoolkit.
I have the same issues. Just to make sure that I did things correctly, here are some questions:
- I wanted to run the "single marker" sample. Which sample exactly should I use? I assumed it was HoloLensARToolKitSingle.unity. However, there were only Hiro and Kanji.
- which maker and what size exactly should I use? I found the marker in ARUMP Controller that are "hiro.patt" and "kanji.patt" and the sizes were "80mm" (I assumed that means they are 80x80mm). However, it was not working.
Please respond here at your earlier convenience. Your help will be greatly appreciated. Thanks very much!
from hololensartoolkit.
- Yes. It only has Hiro and Kanji
- Yes it is 80x80mm. Is the white light on that indicates the camera is running? Do you see the video preview plane?
from hololensartoolkit.
Thanks for your response!
Yes I see the light and the preview plane. However, the video preview is just a white box.
Pretty much I think its a thing related to the camera. I tested the camera on my Hololens and it works well. However when I run your sample there is nothing on the preview box. Any tips for troubleshooting? Thanks!
from hololensartoolkit.
White light that is visible outside, indicating the camera is running. In your case, the camera is not running. It may be because the "Webcam" capability is not switched on.
from hololensartoolkit.
Thanks! BTW, where did you run the app? From unity or visual studio?
from hololensartoolkit.
Deploy to HoloLens and run on HoloLens
from hololensartoolkit.
deploy from what? unity or visual studio?
from hololensartoolkit.
I deploy it from Visual Studio.
from hololensartoolkit.
I second this issue. I see the preview pane showing pure white. The white light on the exterior of the device is not lit, indicating the camera is not running, however I do have "webcam" capability enabled in unity settings. Also "Video" and "Track" both display 0 frames per second on the UI.
Using Unity 2017.4 LTS, and Visual Studio 2017. Trying to track the Hiro marker, printed at the correct size (I measured).
from hololensartoolkit.
@McCulloughRT Is your HoloLens using RS4 software build?
from hololensartoolkit.
Yes, it is. If it helps, I get a console message in the VS debugger:
Error (2): unable to open camera parameters file "Data/StreamingAssets/hololens1344x756.dat" for reading.
Maybe because the param file is "hololens896x504.dat"?
Looks like the message is coming from the native code, which I'm less familiar with, but I'll keep digging...
from hololensartoolkit.
Also, I noticed that with RS4, the performance of tracking is a little unstable compared to previous build. But I haven't got time to look into it.
from hololensartoolkit.
Update: Changing the name of the camera parameters file (the actual file name, the public variable on the ARUWP Controller script did nothing) did fix the camera not turning on issue. I tried changing to allGroups[1] as you recommended but that broke the camera again.
The application is functioning now, but tracking is off by about 3 inches in each axis and is very unstable.
from hololensartoolkit.
What is frame rate of tracking, and the video?
from hololensartoolkit.
right at 30fps, rotational tracking is almost perfect, its just positioning thats off
from hololensartoolkit.
Then the system is already running at the fastest. The issue is the lack of calibration. HoloLens don't how the relative pose between your eye and the camera. You should tune the magicMatrix in ARUWPMarker to manually offset it. It is a systematic and consistent offset.
from hololensartoolkit.
Since rotation is fine and translation fixes need to be applied, I think I need a 4th row in the magic matrix to encode translation, is that correct? Or am I not understanding how the magic matrix is being used?
from hololensartoolkit.
@McCulloughRT Hi, I have a the same problem you had, that only the white box is showing but in my debugging console theres is no such error as
Error (2): unable to open camera parameters file "Data/StreamingAssets/hololens1344x756.dat" for reading.
it throws some exceptions and also errors that it could not open sensor information and access denied.
ERROR FindDefaultInterface:CM_Get_Device_Interface_List_Size failed:0x00000000, InterfaceListSize = 1
ERROR SensorOpenByType:Failed to open sensor error:0x00000490
I made sure that
allow unsafe code
is checked in Unity Player Settings. But @qian256 metioned in the How To section, that we have to set the Assembly C sharp to allow unsafe code, how can I do that, because in my visual studio there is no possibility to set 'allow unsafe code' only in the Unity Player Settings. Also tried to change the hololens dat files like @McCulloughRT but didnt help. Do you have any ideas where the bug lies? Were there anything else you have to set or configure?
Another strange thing is that in the debugging console many of these lines appear, if i give the permission to use the cam afer the app ask for permission:
onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!712D2F3E: (caller: 712D5E27) ReturnHr(1) tid(1108) 8685C003 Access is denied.
Hope for your help and thanks!
EDIT : now it works! After some research, I had to turn the Scripting Backend to .NET. You can find it in Unity under File-->Build Settings-->Configuration-->Scripting Backend set to .NET instead of IL2CPP.
After that build the project and open it in visual studio. Go to Project-->Properties-->Build and make sure allow unsafe code is checked. No run and the cam should get on.
from hololensartoolkit.
@qian256 Thanks very much for the advice to set
SourceGroup = allGroups[1],
This also has to be set because the MediaCpature order in RS4 has changed and elsewise Visual Studio would give you a access denied error!
from hololensartoolkit.
Related Issues (20)
- Got NullReferenceException error with XR Plugin Management HOT 3
- Any method to get RGB video stream in HL2? HOT 8
- 获取相机固有属性和投影矩阵 HOT 1
- HL2: Is the marker tracking working from the play editor of Unity (in holographic remoting)? HOT 3
- About 180 rotation display of target object HOT 1
- Android version HOT 1
- Display the images shot by the camera in HL2?
- Imperfect alignment registration & the cube's pose changes following the head movement HOT 3
- Unity 2020LTS does not build project HOT 6
- Is HoloLensCamCalib enough to calibrate and align the HL2? Do we also need to do display calibration using 20 alignment described in the paper?
- Can't get multi marker to work
- Has anyone succeeded in unity 2020? HOT 3
- how can i get the marker postion
- Get video preview as RGB instead of grayscale
- Add Camera resolution for Hololens 2
- spiel für kinder
- Cube sample is not detected after calibration HoloLens2 HOT 1
- Has anyone succeed in unity2018?
- help me
- Has anyone managed to make it work with openxr?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hololensartoolkit.