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

Got through Holograms 100 but no cube

I finally got everything to work and deploy and I see the unity logo in the Hololens but the scene is not displayed. There is no cube. Any ideas?

Best Answers

Answers

  • Options
    HoloSheepHoloSheep mod
    edited July 2016

    @BlinkPop the first thing I would double check is both the position of your camera and your cube.

    Camera should be 0,0,0

    Cube should be 0,0,2

    Is that what you have when you check those objects in the Inspector in Unity?

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options

    Yup and yup

  • Options

    Its completely black.

  • Options

    oh ok if i change the background color to not black i can see the cube.

  • Options

    Double check the Chapter 3 steps and make sure that your cube is not a child of some other gameobject in your Hierachy.

    If it is a child of something else delete it and recreate it once you have click on the open space of the Hierachy to unselect any active gameobject selection.

    also check that you got the scale values correct.

    You should be able to see the cube in your Game tab view.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options
    HoloSheepHoloSheep mod
    edited July 2016

    @BlinkPop the cube material typically defaults to white.
    Did you set it to black originally?

    Just for reference from the docs:

    Black renders as transparent in HoloLens.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options

    This also happens if you launched Unity from the installer itself (last page on the installer wizard that has a checkbox "Launch Unity") and created the project. There was no "Main Camera" object in the scene.

    If you simply close & reopen the Unity and freshly create the project all over again by following the "Holograms 100" article, this error doesn't happen; and the Main Camera and the Directional Light was available by default.

    This happened to me with Unity 5.4.0f3-HTP version and VS 2015 Update 3.

  • Options

    For other folks who dont see a main camera. You can add a camera from GameObject->Camera and then set it to be main camera by selecting the new camera and tagging it as "Main Camera" in the inspector window.

    I also had to set the cube to be a different colour as the default material has its emssion set to black and did not show up in the hololens. In order to change the colour I had to go Assets->Create->Material and set its emission in the inspector to be something visible. You then select the cube in the hierarchy and drag the new material you created onto Mesh Renderer item in the Inpector window. You may also have to delete the default material to get the new material colour to display correctly.

    These instructions are for Unity 5.4.0f3-HTP.

  • Options

    I am having this same problem in that when I run the application in the emulator, I do not see the cube. All I see is a very small white dot in the middle of the view. The dot seems to move as I press the arrow keys on my keyboard and then it snaps back to the middle.

    I am using VS 2017 version 15.3. I have the Windows 10 SDK v10.0.14393.795 and WIndows 10 SDK v10.0.15063.468 installed along with their respective Mobile Emulator for Windows 10. I have the HoloLens Holographic Emulator and templates v10.0.14393.1358 installed.

    I am using Unity 2017.2.0b7 because of issues with 2017.1 and VS 2017.

    I have followed the Holograms 100 process and I can see the cube in the Game view. I even added a material to the project and placed it on the cube to color it red. The cube Transform is as follows;

    Position: x:0, Y:0, Z:2
    Rotation: X:45, Y:45, Z:45
    Scale: X:.25, Y:.25, Z:.25

    I even tried setting scale back to 1 for x, y and z.

    The solution builds in VS2017 with no errors or warnings. The project loads in the emulator with no errors or warnings.

    Any ideas?

  • Options

    @dcadlereii check your build settings - first time I didn't 'add open scenes' and thought the main scene was displayed and checked by default but what was shown was from another project. So I guess it could be about including 'Main' scene in the build

Sign In or Register to comment.