hololens

How to add click action to cursor in hololens

浪尽此生 提交于 2019-12-04 15:03:05
In microsoft hololens ,Added cursor to a button but unable add cursor action ,can anyone help Thanks in advance. To add the ability to "click" you can do this with the Input Manager that is built into the HoloLens Toolkit. See here: https://github.com/Microsoft/HoloToolkit-Unity/tree/master/Assets/HoloToolkit/Input Specifically you should add the InputManager prefab to your scene, then add to a script that is attached to an object an implementation of IInputClickHandler. So something like this: public class DoSomethingOnClick : MonoBehaviour, IInputClickHandler { void IInputClickHandler

HoloLens Draw a graph

放肆的年华 提交于 2019-12-04 15:02:24
What is the best way to draw a graph for the HoloLens in unity? I am new to this platform and have no idea which packages will work and which dont, the graph gets data dynamically. EDIT: I have tried LineRenderer but it seems very limited in version 5.4 of Unity A possible Solution for drawing a 3D-Graph is using a particle system: Simple Example for a Component Script for a particle system: public class Graph: MonoBehaviour { //Particle-Resolution of the Graph [Range(10, 100)] public int resolution = 10; private int currentResolution; private ParticleSystem.Particle[] points; void Start() {

Show device usage consent dialog in Unity app for Hololens

僤鯓⒐⒋嵵緔 提交于 2019-12-04 14:28:14
I'm working on application for Hololens built on Unity. My need is to get some information from phone(android or wp - doesn't really matter) using Bluetooth Service Port Profile . The chosen approach is to make a Hololens act as Bluetooth Host. So I'm using RfcommServiceProvider for this. The simplified sample: _rfcommProvider = await RfcommServiceProvider.CreateAsync(RfcommServiceId.SerialPort); _socketListener = new StreamSocketListener(); _socketListener.ConnectionReceived += OnConnectionReceived; await _socketListener.BindServiceNameAsync(_rfcommProvider.ServiceId.AsString(),

Saving an Image to Photos Folder In hololens App

流过昼夜 提交于 2019-12-04 12:01:43
I'm attempting to capture a photo inside my hololens app. It seems to be working but saving the image to an obscure place that I cant access or view. I want to save it to my pictures library Described here I think . Or where should i save the image so I can see it in my photos on the hololens. filePath = C:/Data/Users/JanikJoe/AppData/Local/Packages/HoloToolkit-Unity_pzq3xp76mxafg/LocalState\CapturedImage10.02831_n.jpg filePath2 = C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/HoloToolkit-UnityVS.Debug_x86.janik/Data\CapturedImage10.02831_n.jpg using UnityEngine; using UnityEngine

Hololens SpectatorView(一)

匿名 (未验证) 提交于 2019-12-03 00:37:01
spv介绍以及spv和mrc的区别 --------------------------------------------------------------------------- 参加过HoloLens体验展的朋友们都曾反馈过一个信息,佩戴HoloLens时,混合现实产生的真实感固然不错。但是其他排队等待体验的人却无法体验到佩戴者所观测的场景,而由于HoloLens的混合现实技术与真实环境存在很多交互设计,所以在其他没有佩戴HoloLens的人们眼里,大家观看这些佩戴者的演示动作未免会显得有些“奇怪”。 在之前的项目分享中,我们试用过HoloLensMixed Reality Capture(直接在pc上访问HoloLens ip打开home)界面,结果发现画面并不是很清晰,而且有一定的延迟,展示效果不是很好。借鉴到微软产品发布时使用的第三人称视角,视角比较好而且可以自由调整画质,所以来尝试下。 我们先来大致熟悉一下什么是Spectator View? MRC系统是以第一人称视角来捕捉混合现实画面并将其投射在屏幕上,而spv是以第三人称微视角录制的。 这是官方给出的示意图,事实上我们在实际运用的时候是这样的 ( 那个摇臂不知道用来干森么,我们没有 ) 顶部支架的HoloLens为混合现实画面提供空间坐标信息,HDMI单反捕捉采集真实环境,再将两者信息传输回PC中

Program Issues Going From Unity To HoloLens - Cannot convert from 'string' to 'System.IO.Stream'

寵の児 提交于 2019-12-02 01:47:49
I have a program written in Unity using C# that initializes a new StreamReader and proceeds to read the text data from a text file I have stored in Unity's resources folder. Everything works fine when I click play in Unity -everything works and the text is read and displayed perfectly. However, when I try to build it in order to run it via the HoloLens emulator (Platform: Windows Store, SDK: Universal 10, Build and Run On: Local Machine), I get the error: error CS1503: Argument 1: cannot convert from 'string' to 'System.IO.Stream'. I don't understand why this error is even showing up in the

Hololens Build Failing - The command AssemblyConverter.exe exited with code 1

℡╲_俬逩灬. 提交于 2019-12-01 18:11:50
After updating to the latest version of VS 2017 (version 15.3.2) my Hololens builds generated from Unity keep failing with this message : The command ""C:\TestFile\HoloBuild\VSApp\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="C:\TestFile\HoloBuild\VSApp\HoloBuild\project.lock.json" -bits=32 -configuration=Debug -removeDebuggableAttribute=False -uwpsdk=10.0.15063.0 -path="." -path="C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\x86\Debug" "C:\TestFile\HoloBuild\VSApp\HoloBuild\Assembly-CSharp.dll" "C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEngine

Hololens Build Failing - The command AssemblyConverter.exe exited with code 1

一世执手 提交于 2019-12-01 17:14:48
问题 After updating to the latest version of VS 2017 (version 15.3.2) my Hololens builds generated from Unity keep failing with this message : The command ""C:\TestFile\HoloBuild\VSApp\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="C:\TestFile\HoloBuild\VSApp\HoloBuild\project.lock.json" -bits=32 -configuration=Debug -removeDebuggableAttribute=False -uwpsdk=10.0.15063.0 -path="." -path="C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\x86\Debug" "C:

MRTK (V2) Need to update Hololens?

孤街浪徒 提交于 2019-12-01 06:25:19
I'm trying to check out the new MRTK (V2) but I had been having troubles making the build, first on Unity which make me download the Windows SDK 18362, now I'm trying to continue the build on Visual Studio 2017 for testing but it brings me this error: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.18362.0 or higher. You currently are running version 10.0.17134.80. Please update your OS, or change your deployment target to a device with the appropriate version. My Windows 10 OS is 10.0.18632.30 but my HoloLens its on 10.0.17763.380

Hololens - Access Camera Frames

我们两清 提交于 2019-12-01 05:29:11
问题 How can I access all frames in a video stream from the hololens camera, when in 3D mode? I'm using C#. The unity VideoCapture class doesn't seem to provide this: http://docs.unity3d.com/550/Documentation/ScriptReference/VR.WSA.WebCam.VideoCapture.html and the microsoft MediaCapture class with method MediaCapture.StartPreviewToCustomSinkAsync is not very well documented. https://msdn.microsoft.com/en-us/library/windows/desktop/ms701626(v=vs.85).aspx 回答1: You can try using the MediaCapture