Mixed Reality – Prima app per visore chiuso

  1. Start Unity
    Select New
    Enter a project name (e.g. “MixedRealityIntroduction”)
    Enter a location to save your project
    Ensure the 3D toggle is selected
    Select Create project
    Select File > New Scene
    First, it will be easier to lay out your app if you imagine the starting position of the user as (X: 0, Y: 0, Z: 0). Since the Main Camera is tracking movement of the user’s head, the starting position of the user can be set by setting the starting position of the Main Camera.
    Select Main Camera in the Hierarchy panel
    In the Inspector panel, find the Transform component and change the Position from (X: 0, Y: 1, Z: -10) to (X: 0, Y: 0, Z: 0)
    Select File > New Scene
    First, it will be easier to lay out your app if you imagine the starting position of the user as (X: 0, Y: 0, Z: 0). Since the Main Camera is tracking movement of the user’s head, the starting position of the user can be set by setting the starting position of the Main Camera.
    Select Main Camera in the Hierarchy panel
    In the Inspector panel, find the Transform component and change the Position from (X: 0, Y: 1, Z: -10) to (X: 0, Y: 0, Z: 0)
  2. With the Main Camera still selected in the Hierarchy panel, find the Camera component in the Inspector panel and keep the Clear Flags dropdown to Skybox
  3. With the Main Camera still selected in the Hierarchy panel, find the Camera component in the Inspector panel and keep the Near Clip Plane field to the default 0.3.
  4. Finally, let us save our progress so far. To save the scene changes, select File > Save Scene As, name the scene Main, and select Save.
  5. Select Edit > Project Settings > Player
  6. In the Inspector panel click on the Windows Store tab
  7. Expand the Other Settings group.
  8. In the Rendering section, check the Virtual Reality Supported checkbox to add a new Virtual Reality SDKs list and confirm “Windows Mixed Reality” is listed as a supported SDK.
  9. In the top left corner of the Hierarchy panel, select the Create dropdown and choose 3D Object > Cube.
  10. Select the newly created Cube in the Hierarchy panel
  11. In the Inspector find the Transform component and change Position to (X: 0, Y: 0, Z: 2). This positions the cube 2 meters in front of the user’s starting position.
  12. In the Transform component, change Rotation to (X: 45, Y: 45, Z: 45) and change Scale to (X: 0.25, Y: 0.25, Z: 0.25). This scales the cube to 0.25 meters.
  13. To save the scene changes, select File > Save Scene.
  14. Connect the headset to your development PC using the USB cable and the HDMI or display port cable.
  15. Launch the Mixed Reality Portal and ensure you have completed the first run experience.
  16. From Unity, you can now press the Play button.
  17. Open File > Build Settings window.
  18. Click Add Open Scenes to add the scene.
  19. Change Platform to Windows Store and click Switch Platform.
  20. In Windows Store settings ensure, SDK is Universal 10.
  21. For Target device, leave to Any Device for occluded displays or switch to HoloLens.
  22. UWP Build Type should be D3D.
  23. UWP SDK could be left at Latest installed.
  24. Check Unity C# Projects under Debugging.
  25. Click Build.
  26. In the file explorer, click New Folder and name the folder “App”.
  27. With the App folder selected, click the Select Folder button.
  28. When Unity is done building, a Windows File Explorer window will appear.
  29. Open the App folder in file explorer.
  30. Open the generated Visual Studio solution (MixedRealityIntroduction.sln in this example)
  31. Using the top toolbar in Visual Studio, change the target from Debug to Release and from ARM to X86.
  32. For targeting occluded devices attached to your PC, keep the setting to Local Machine. Ensure you have the Mixed Reality Portal running.
  33. Click Debug > Start without debugging.
Annunci

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...