So last month, I did a four part tutorial on getting a bouncing ball working on the HoloLens. Unfortunately, I didn’t give entirely accurate information when in the 3rd video I said that you simply removing the Start method from the MonoBehaviour would make the Enable checkbox in the Unity inspector window disappear for the script.
It is a little more involved than that and I discuss it in this week’s video.
I also announce when I’m going to open up the LearnHoloLens.com premium membership site for new members again, so check out the video below.
Over the past week I’ve gotten an email from one of my Learn HoloLens members about creating a master class on spatial understanding. I also received a couple of comments on my previous spatial understanding videos.
In particular, I was asked if it still worked with the latest versions of Unity and the HoloToolkit for Unity. I did some investigating and the timing couldn’t have worked out any better.
Not only do the latest versions work, they now also work in the Unity Editor itself. The updated code was just merged into the master branch yesterday during the time I was creating the demo.
The demo shows the latest version of Unity and the version of the HoloToolkit as of 2/14/2017 in the morning. Then I grabbed the latest version again in the afternoon which incorporated work by Robert El-Soudani (aka MrBobbyBobberson) from Microsoft.
These changes not only fixed the GUI issue that broke because of the InputManager changes, but also allows the spatial understanding components to work inside of the Unity Editor.
This will allow for much faster iterations when working with spatial understanding.
You can see the journey in this week’s video…
Remember, it isn’t about the destination, it’s about the journey…
The Unity project includes spatial mapping along with a custom spatial mapping shader. It includes speech recognition and storing and retrieving world anchors. The CSharpSynth code has been adapted to work with Unity and UWP apps in particular so that MIDI files can be played. Regular audio clips are played. The Mecanim state machine was used to a great degree to animate the text and the candy boxes.
This simple game has a solid code base that should be beneficial to anyone looking to do Holographic development using Unity. In fact, it should be beneficial to anyone interested in Unity development regardless if it is mixed reality or not.
I hope you grab the code and enjoy using it. If you have questions leave me a comment and I’ll do my best to get you an answer as time allows.
I’m going to work to release my first HoloLens app. Originally, I was going to release a different app as my first app, but I decided I wanted to release something for Valentine’s Day. Fortunately, this is a simple app and I had created it a couple of years ago with a target audience of one – my wife.
At this point, this is just an alpha preview of the app. It may look a lot different by the time it ends up in the store … or it may look exactly the same – it will depend on how much time I can spend on this before submitting it to the store.
In the video I mentioned the shader that is being used to display the spatial mapping data. While it has some really bad shearing in places it is a really nice looking shader. I found out about this shader from James who asked a question in our monthly Live Q&A sessions in the premium membership site over at LearnHoloLens.com. As I worked to answer his question, I looked at both the shader here and the SpatialMappingTap scene in the HoloToolkit to get the shader to only work when I tapped instead of always updating.