HoloLens Magic Window Demo


This is a demo of the Magic Window for HoloLens. In order to obtain this effect you simply need to utilize the HoloToolkit-Unity package found at:


Under the Utilities folder is a Tests folder and inside of that is a WindowOcclusion.unity scene. The actual window object is made up of the 4 cubes that make the frame you see and then 4 more cubes that are large and one each side of the frame. There is one on top, one on bottom, one on the left and one on the right. These cubes have a material that have the WindowOcclusion shader applied. This occludes any item that is behind it. So the window can be seen through but the “walls” around the window are transparent to the user, but are really keeping the main scene from view.

This demo is a quick response to the #hololens_challenge found at

You should try it out. You could definitely create more complex meshes to surround the window, but the premise is the same. This is the same type of effect used in RoboRaid when you shoot your walls to expose pipes and cables, etc.

Enjoy the video!

One thought on “HoloLens Magic Window Demo

Tell me what you think!