I created a small unity app that Shows some meshes / holograms in a Scene (using unity 5.6.1f1).
I want to create a screenshot / snapshot from what I see when I start my app with the hololens: the holograms from my app and also the photo of the real world I just see.
How do I do that?
I started here with the Microsoft / unity sample:
and followed the sample to “Capture a Photo to a File”
It says “Saved photo to disk” but I do not see the photo in the Gallery of the hololens?
Did it really work? Where can I see my photo?
I gave up and tried this one found in the Forums here:
but I cannot get it to work. Or at least it says “Took Picture” and I see some Picture or is it still my tool?
Parts are missing now, like having a cube before it now only see some single triangles, it is half the cube…is that the taken photo?
And it does not seem to store something. How can I?
The easiest way is to connect via the device portal. On your device go to Settings / Updates and For Developers. Scroll down and enable the device portal. You’ll have to set a username and password the first time. Also, go to the Windows Store and download the remote holographic app on your device (you’ll probably need to search). That’ll show you the IP address of your device. Then you can just do: https://192.168.0.xxx or whatever the ip address is and login. You can also download a certifcate and install it into your trusted root certificate authorities store so you won’t need to enter the username / password.
Once you’re in the remote portal you can take mixed reality photos and video. Also, as a bonus, once you have remoting setup you can also deploy to / debug to your device from Visual Studio by selecting “Remote Machine” and entering the IP Address instead of tethering with a USB cable, giving you a little more freedom when deploying.
Press the two buttons on the right and the HoloLens will save a screenshot that you can access from the device portal. You can also use voice commands, try “Cortana, take a picture”
Oh you want the user to be able to do it. I’m not positive what the API is but I think you can access the camera just like on a mobile device. not sure if you can just take a mixed reality snap or not but I don’t see why not.