Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Windows 10 Microsoft UWP (Universal Windows Programming) Community Toolkit

HoloLens needs to use UWP based on the .NET Foundation to quote from the Toolkit

The UWP Community Toolkit is a collection of helper functions, custom controls, and app services. It simplifies and demonstrates common developer tasks building UWP apps for Windows 10. The toolkit is part of the .NET Foundation.

The toolkit is available UWP Community Toolkit the Documentation for UWP Community Toolkit

This is a great resource for those developers who want to develop in Visual Studio 2015 for HoloLens and there are samples in Windows UWP Samples

and this was Introduced in "Kickstart UWP app creation with Windows App Studio’s open source UWP libraries and Samples App"

Comments

  • Options

    Is there a sample app that can be downloaded to a HoloLens device? I can't find the following app when searching the store on the HoloLens device.
    https://www.microsoft.com/en-us/store/p/uwp-community-toolkit-sample-app/9nblggh4tlcq

  • Options

    @EMebane said:
    Is there a sample app that can be downloaded to a HoloLens device?

    Windows App store does not have a version for HoloLens

    ANSWER: Is to build a download from GitHub source UWPCommunityToolkit

    First of all make sure you have Installed the HoloLens Tools
    in the sequence given on the web page.

    If you want to use the HoloLens Emulator you need to be Running Windows 10 Professional Edition Anniversary Update (build 14393 at least). Using the HoloLens device direct does not need the Pro version.

    Unpack the source to build directory
    %user%\Downloads\UWPCommunityToolkit-dev\UWPCommunityToolkit-dev

    Double click on UWP Community Toolkit.sln and Visual Studio 2015 will open and create a new Solution and projects.

    On the right hand Solution pane, scroll down to the project "Microsoft.Toolkit.Uwp.SampleApp" right click on this and click "Set as Startup Project"

    In the Top build menu bar select "Debug", "x86", "HoloLens Emulator 10.0.14393.x" or "Device", making sure you have enabled remote debugging on HoloLens Device first.

    Click the green right pointing triangle next to "HoloLens Emulator 10.0.14393.x" to build and deploy to the Emulator.

    In the HoloLens Emulator, the Xbox wired USB controller works well to control the app. Air tap (Xbox A button, or Enter on Keyboard) the top left menu to open the display. Tap on Notifications to display as in picture.


     

    The only problem is the URL paths used in the call to GitHub aren't the right ones for the new updated source.

    Summary

    Building this app we have proven that the "UWP Community Toolkit" is a valuable tool for HoloLens developers and we have built a substantial app capable to testing many UWP functions, entirely in .Net UWP
    and Visual C# with NuGet libraries.

    This app has not used Unity 5 in its development.

  • Options
    utekaiutekai ✭✭✭

    If you want to run a 2D app on hololens, then this shows code to do that.

    But why not open up the ability to use these components inside a 3D virtual space?

    Then it would be useful for those who want to run 3D apps on the HoloLens and take advantage of toolkits like this.

  • Options
    Jimbohalo10Jimbohalo10 ✭✭✭
    edited December 2016

    @utekai said:
    If you want to run a 2D app on hololens, then this shows code to do that.

    But why not open up the ability to use these components inside a 3D virtual space?

    The problem with 3D is the graphics assets and conversion from 2D to 3D.
    The 2D assets don't have any depth, basically its flat to explain.
    This picture is the 2D original


    Now look at my 3D version made with Paint 3D preview

    The problem you can see is there is no Z axis depth, effectively all 2D squares must be 3D cubes to have depth.

    So the problems in the picture assets not the code. The animation "Blur" works fine inside the HoloLens Emulator as a 2D object
    It seems what you are saying that you want the support of 3D .FBX, which is already   Solved and supported in Unity 5 UI

    There seems little point in replicating this in pure UWP IMHO

  • Options
    utekaiutekai ✭✭✭

    Well, I'd like to use the UWP toolkit in 3D apps that aren't based on Unity. That problem isn't solved.

    It's not an issue of making a 2D component have depth, as flat is fine.

    The issue is the ability to take advantage of components that are more or less data-ready and easy to insert and use, inside holographic space. How to run a xaml component in holographic space?

  • Options
    Jimbohalo10Jimbohalo10 ✭✭✭
    edited December 2016

    There is a similar discussion about this How can I pin multiple XAML objects from a UWP app?

    Getting a HolographicSpace

    There is an interesting UWP Scroll Bar for data columns How to make in a chart a horizontal scroll when there are many columns and maintain static the Y-Axe (UWP) 

    In the UWP Samples there is Windows-universal-samples/Samples XAML ListView in  C#

    I have built a whole set of samples and the favourite is Create a simple weather app by using XAML runs in HoloLens Emulator.

    In this case select C++ so that you can connect it to the C++ Holographic template and use the code given in Getting a HolographicSpace to set up your own holographic space. 

  • Options
    utekaiutekai ✭✭✭

    These XAML samples don't address the key issue.

    When already inside a Holographic Space, and not wanting to leave it even for a second, how to display a XAML component inside that Holographic Space?

  • Options

    @utekai
    This is IMHO off topic now and probably worth a new thread in the Questions and answers section like

      How to display a XAML component inside that Holographic Space, When already inside a Holographic Space?

  • Options
    utekaiutekai ✭✭✭

    Yes, that is off topic, but just back to my point that the UWP toolkit would be more useful if you could use xaml components freely, without having to leave holographic space

Sign In or Register to comment.