Quantcast
Channel: Recent Discussions — Mixed Reality Developer Forum
Viewing all 10543 articles
Browse latest View live

Is it possible to make Hololens left and right cameras display different images in 2D

$
0
0

Hi,
I want to pick some 2D picture from Hololens, So I use UI module to achieve 2D display in Unity3d. I build two camera mapping Hololens left and right cameras, but it doesn't work. Can give a hand to achieve "split screen display"
Any suggestion would be greatly appreciated.


Building a Unity App using httpclient and ignoring certificates

$
0
0

Hey everyone,
I'm trying to build a Unity App to HoloLens which should request a JSON from a Webservice via Rest. The thing is, I want to allow unknown and incorrect certificates. For building in Unity, I therefore us this code:

ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
The code works fine in Mono, but for .Net 4.5 it doesn't compile. So in that case I use this code instead:

handler = new HttpClientHandler(); handler.ClientCertificateOptions = ClientCertificateOption.Manual; handler.ServerCertificateCustomValidationCallback = (httpRequestMessage, cert, cetChain, policyErrors) => { return true; };
Which should do the same, based on various forum posts. But everytime I try to build for HoloLens I get the following error:

'HttpClientHandler' does not contain a definition for 'ServerCertificateCustomValidationCallback' and no extension method 'ServerCertificateCustomValidationCallback' accepting a first argument of type 'HttpClientHandler' could be found (are you missing a using directive or an assembly reference?)

Is it simply not possible at the moment to turn off the validation on HoloLens or is there another method?

Thanks!

How do I develop MR application without Unity

$
0
0

I am Android/iOS developer. I would like to know, how I should develop MR application using Android/iOS core api and windows MR SDK.

Please try our PowerPoint for Hololens

$
0
0

Hey, everyone, we've just finished an app that is completely free to use. The main idea is that you can create holographic presentations, kind of what you do in PowerPoint but with holograms. We'd like you to try it out, here's the link to MS Store https://goo.gl/96cyDM

Nothing was happening

$
0
0

Hi all,
Once again I need your help. I clone this project https://github.com/gdfonda/Terminator-Vision and when I launch it on Hololens nothing was happening. I have this in console error :
GetCurrentHolographicCameraState: No culling frustum available. Culling data may be stale.

(Filename: C:\buildslave\unity\build\Runtime/VR/HoloLens/VRDeviceHoloLens.cpp Line: 388)

Holographic Tracking State Lost. New State: 2

(Filename: C:\buildslave\unity\build\Runtime/VR/HoloLens/HoloLensWorldManager.cpp Line: 350)

Holographic Tracking State Lost. New State: 1

(Filename: C:\buildslave\unity\build\Runtime/VR/HoloLens/HoloLensWorldManager.cpp Line: 350)

Exception thrown: 'System.NullReferenceException' in Assembly-CSharp.dll
NullReferenceException: Object reference not set to an instance of an object.
at Hud.d__18.MoveNext()
at UnityEngine.SetupCoroutine.InvokeMoveNext(IEnumerator enumerator, IntPtr returnValueAddress)
at UnityEngine.SetupCoroutine.$Invoke1InvokeMoveNext(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)

Any hints ?
Thank you

Can I develop MR App with D3D11On12?

$
0
0

Hello,
I am ready to build MR App on D3D12. But it is not support.
Can I build on D3D11On12?

Thanks for your help.

How to check Garbage Collection on unity profiler remotely

$
0
0

Hi dear community.
I am having some power consuption issues with an app I am developing with Vuforia and Unity. The problem is that since the progress in the game is highly dependant on the Vuforia Tracking event through the Hololens camera, I can´t check the performance on unity play mode. Even trying in play mode with the laptop camera, the dimentions of my targets and scene are just impossible to manage with the laptop.

I would really like to know how can I get the Unity profiler or something similar to help me monitor the garbage collection and memory allocation in Runtime of the Hololens (besides the developer portal). Preferably by USB

Thank you!

Change Motion Controller Model after it has been loaded.

$
0
0

Ran through all of the tutorials and have been using the motion controllers successfully utilizing the MotionControllerVisualizer. I have loaded the alternate Right and Left Controller models but now I would like to have the ability to move between my alternate and default controller models in the middle of the game but have not been able to figure that out. Any help would be appreciated.


How can I communicate smartphone with Hololens?

$
0
0

Hi everyone,

I have to do a project where I have to send data from an Android application to a Hololens application. Firstly, I have to detect a smartphone with Hololens and later I have to send data from an Android app to Hololens app. I want the best way to do it!

I hope your help, thanks everyone!!!

Unable to launch or install Windows Mixed Reality after installing KB4090913 (OS Build 16299.251)

$
0
0
  • Existing Installs: If Windows Mixed Reality was previously installed and you attempt to launch the Mixed Reality Portal you may see a Something Went Wrong error.
  • New/Reinstalls: If installing or reinstalling Windows Mixed Reality you may see a message that says “We couldn’t download Windows Mixed Reality.

hololens emulator - not connecting

$
0
0

Hi,
Running Windows 10 1709 with Hololens emulator with unity and Visual Studio 2017. This was a clean install and everything worked fine until i applied Windows updates... now I cannot connect to the hololens vhds. I've tried uninstalling hyper-v and hololens emulator but no joy. The only thing that seems to work is to do a clean install of everything and block windows updates. this machine is on a network so I don't particularly want to do this. Any suggestions to what i can try to identify the exact issue
William

HoloLens - unable to login (no PW nor user name changes)

$
0
0
Hi guys,
Since two days I cannot log into my HoloLens anymore. Didn’t change the user name nor the password. It always says incorrect password. Any recommendations?
Using the HoloLens for almost a year without any broblems.

Issues with socket sending/receiving data with Python code

$
0
0

I'm currently using Unity 5.6 to create a Holographic app on Hololens.
The app involves face detection and we decide to put the face detection code (written in Python) on a laptop and use socket to connect it with Hololens, since we want to create a better version of face detection and Python is the best language to do it.

I set Python code as a "server" and uses C# in Hololens as "client" to connect to Python code. Currently I'm having issue to keep the socket connected/open throughout the process. I have to open and close the socket on client side in every Update(). This approach takes much longer time in connecting/disconnecting. I would like to seek a way to keep the socket connected throughout the whole app process.

Now my code looks like this:
Server side (Python): It first takes the data size as data_length and then receive bytes with this length in order to receive any length of data.

host = socket.gethostbyname('IP_ADDRESS')
port = 80
s.bind((host, port))

print('Waiting for a connection...')
while (True):
    s.listen(1)
    c, addr = s.accept()
    print('Connection from: ' + str(addr))

    data_length = 0
    while True:
        data = c.recv(1024)
        if not data:
            break
        buffer += data

        if data_length == 0 and b':' in buffer:
            # retrieve data_length
            data_length, ignored, buffer = buffer.partition(b':')
            data_length = int(data_length.decode())

        if data_length == 0:
            continue

        if len(buffer) < data_length:
            print('message not long enough')
            continue
        message = buffer[:data_length]
        buffer = buffer[data_length:]
        data_length = 0

        # DO SOMETHING WITH MESSAGE

        # returned_message is the message I want to send back to client
        c.send(returned_message.encode())  # echo
        # close connection 
        c.close()
        break
# close socket
s.close()

Client Side (C# using UWP): Update() first connects to Python. It sends the data size, and then send the data to Python. Next, it waits for returned result. Finally it closes the connection.

    public class PythonConnector : MonoBehaviour
    {
        private Task exchangeTask;
        private Windows.Networking.Sockets.StreamSocket socket;
        private void connectPython()
        {
            string PORT_NO = "80";
            string SERVER_IP = "SERVER_IP";
            ConnectUWP(SERVER_IP, PORT_NO).Wait();
        }

        private async Task ConnectUWP(string host, string port)
        {

                Debug.Log("ConnectUWP");
                if (exchangeTask != null) StopExchange();
                socket = new Windows.Networking.Sockets.StreamSocket();
                Windows.Networking.HostName serverHost = new Windows.Networking.HostName(host);
                try {
                    await socket.ConnectAsync(serverHost, port);
                    byteWriter = socket.OutputStream.AsStreamForWrite();
                    writer = new StreamWriter(byteWriter) { AutoFlush = true };
                } catch (Exception e) {
                    errorStatus = e.ToString();
                    Debug.Log("connection error:" +errorStatus);
                }

        }

        public void StopExchange()
        {
            if (exchangeTask != null)
            {
                exchangeTask.Wait();
                socket.Dispose();
                writer.Dispose();
                socket = null;
                exchangeTask = null;
                writer = null;
            }

        }

        void Update()
        {

            connectPython();

            byte[] data_to_send;
            // send data size to Python
            writer.Write(data_to_send.Length + ":");

            // send data over
            try {
                byteWriter.Write(data_to_send, 0, data_to_send.Length);
                byteWriter.Flush();
            }
            catch (Exception e)
            {
                Debug.Log("write error:" + e.ToString());
            }

            // read result from Python
            Stream readStream = socket.InputStream.AsStreamForRead();
            int bytesReceived = 0;

            byte[] readBuffer = new byte[1000];
            int numBytesRead;
            try
            {
                using (MemoryStream ms = new MemoryStream())
                while ((numBytesRead = readStream.Read(readBuffer, 0, readBuffer.Length)) > 0)
                {
                    ms.Write(readBuffer, 0, numBytesRead);
                    string res = bytesReceived.ToString();
                }
                received = Encoding.ASCII.GetString(ms.ToArray(), 0, (int)ms.Length);
            }
            catch (Exception ex)
            {
                Debug.Log(ex.Message);
            }

            // stop socket connection
            StopExchange();

        }
    }

I tried removing StopExchange() and connectPython() from Update() and connect the socket at the beginning of the app, but the code would stuck at reading session after finishing sending the data over.
Does anyone has an idea why it is stuck?

Offline Installation

$
0
0

How do we Install mixed reality offline? I believe I saw an installer for it but I cannot find it. Our company just bought 10 Samsung Odyssey headsets, but we work in an air-gapped environment. We can update our computers fine with disks, but the mixed reality thing is a serious pain. Is there a directory I can copy and paste onto these computers? That's how we use steam. Update steam on one computer that's not air-gapped, and copy and paste the whole steam directory and it works great, but unfortunately, I cannot find the mixed reality directory.

Is there a way to use Power BI within a hololens UWP D3D app?

$
0
0

Can I have the scene and Power BI displayed at the same time? Is there any way to do this? Are there any resources I can use?


Fail to pass certification on UnityPlayer.dll

$
0
0

Hi team,

We are developing Windows Power BI App.
In our recent package, we have added support to Holographic device family.
Unfortunately, during publishing the package to store, it failed to pass the ‘Certification process’.

Report info:

Name: Microsoft Power BI for Windows
App ID: 9NBLGGGZLXN1
Publisher Name: Microsoft Corporation
Test ID: 6c2d246a-646e-4a9e-aac2-9e7e14e87367
Review Completed: 03/08/2018 16:26

Supported API test

FAILED
Supported APIs
· Error Found: The supported APIs test detected the following errors:
· API D3D12GetDebugInterface in d3d12.dll is not supported for this application type. UnityPlayer.dll calls this API.
· Impact if not fixed: Using an API that is not part of the Windows SDK for Microsoft Store apps violates the Microsoft Store certification requirements.
· How to fix: Review the error messages to identify the API that is not part of the Windows SDK for Microsoft Store apps. Please note, apps that are built in a debug configuration or without .NET Native enabled (where applicable) can fail this test as these environments may pull in unsupported APIs. Retest your app in a release configuration, and with .NET Native enabled if applicable.

We have tried different solutions that are suggested over the internet but it did not worked for us. (e.g. Build project as master)
Have you any idea why it fails and what we are doing wrong?

Thanks,
Pavel

Anyone know the critera for the free motion controllers from Microsoft?

$
0
0

I preordered an HP Developer MR headset from the Microsoft store and have seen several people get the motion controllers sent to them for free in December, do we need to do anything to get these?

Question for SUPPORT

$
0
0

Hello, I have this problem: I've ordered Mixed Reality headset (HP) in developer's edition. Problem is, I have ordered them to a friend's house in the US and had them shipped to Europe. Later on I found that you sent motion controllers for those who bought Developer's edition. But my friend does not reside in the house headset was sent to. Adn I would like to ask, if you are able to send me these controllers to EU? Hopefully I can provide all the details you need.
EDIT: Or maybe just point me in the direction where I can buy these controllers separately. (For HP headset)

Simple Solution Made Complicated/failure to give Crucial information

$
0
0

I see why Microsoft's tech support doesn't have a complaint department because it would be too much to handle, didn't Know where to put this conversation, but thought it needed to be brought up because there is very little information on the subject and I was on the phone with Microsoft and several other places for hours and they gave me no solution to my problem.. I bought a brand new Samsung Oddysey from a Microsoft store 2000 miles away from where I live. (Big mistake) I went to set it up 2 days later, everything checked out fine, desktop specs all checked off, and I know they where going to be because I bought it specifically for VR, but then I got this message telling me my HDMI wasn't connected right or something. I called Microsoft and they gave me a bunch of complicated troubleshooting option for a half hour they eventually told me to call Samsung and they did the Same thing but longer, and they concluded that my brand new 500$ mixed reality headset was defective. So I drove 2 hours to my nearest store, which wasn't even a full store, just a specialty store, and swapped it for the right, guess what? SAME PROBLEM, but under the message was the most helpful thing that nobody could tell me, not the "professionals" nobody but the Oculus message. "Please make sure your HDMI is connected to the port that had your graphics card" and it worked, so I could have got the same thing with the headset that I actually wanted in the first place. No one could tell me such simple information, so I suggest you guys at Microsoft do something about that, cause it's not convenient for first time users.

Lenovo explorer WMR black screen

$
0
0

Howdy,

So, I'm having a issue where i go trough all the config of my HDM but after setting it up, my HDM shows no image at all, just a black screen and my HDM keeps flickering(gray then black) but no images(monitor and HDM).

My configs:
-Operating System: Windows 10 Pro 64-bit (10.0, Build 16299) (16299.rs3_release.170928-1534)
-Processor: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (4 CPUs), ~3.4GHz
-Memory: 8192MB RAM
-DirectX Version: DirectX 12
-Card name: NVIDIA GeForce GTX 1060 6GB

Also:
-GPU has a HDMI 2.0 plug.
-USB 3.0 SS.
-GPU driver lastest version
-Windows 10 lastest version
- Since my gpu has only one hdmi port, i have to config WMR with a teamviewer.

What i have tried to fix it:
-Windows 10 fresh install
-Update GPU driver and windows 10
-Install n re install WMR software.
-Followed (docs.microsoft.com/en-us/windows/mixed-reality/enthusiast-guide/troubleshooting-windows-mixed-reality) instructions.
-Searched internet for solutions, but nothing found.

Any help is very appreciated.
If i don't find any fix soon, i'll have to return the product.

Viewing all 10543 articles
Browse latest View live