๐Ÿ“šSTUDY/๐Ÿ‘“hololens&MRTK

[holoLens2 ๊ฐœ๋ฐœ ํŠœํ† ๋ฆฌ์–ผ] HoloLens 2 fundamentals: develop mixed reality applications (2)

ํ•ด๋Š”์„  2022. 3. 2. 20:38

์ด ๊ธ€์€ ๋‹ค์Œ์˜ hololens2 fundamentals ํŠœํ† ๋ฆฌ์–ผ์„ ๋”ฐ๋ผํ•˜๊ณ , ์ด๋ฅผ ์ •๋ฆฌํ•˜์˜€์Šต๋‹ˆ๋‹ค.

https://docs.microsoft.com/en-us/learn/paths/beginner-hololens-2-tutorials/

 

HoloLens 2 fundamentals: develop mixed reality applications - Learn

Explore best practices for developing Azure-enabled mixed reality applications with the Mixed Reality Toolkit.

docs.microsoft.com

2. Place a Mars Rover object in the scene and work with hgrids and intelligent object tracking

1) Introduction

  • MRTK์—์„œ, placement tool์€ ๋ณต์žกํ•œ spatial placement์— ๋™์ ์œผ๋กœ ํ™€๋กœ๊ทธ๋žจ์„ ๋ฐฐ์น˜ํ•  ์ˆ˜ ์žˆ์Œ.

 

<๋ฐฐ์šฐ๋Š” ๊ฒƒ>

  • scene์—์„œ์˜ position objects
  • MRTK's grid object collection feature
  • solver๋ฅผ ์ด์šฉํ•ด object reposition
  • solver๋ฅผ ์ด์šฉํ•ด ์œ ์ €๋ฅผ object๋กœ ์•ˆ๋‚ด?

 

2) Position game objects and set visibility

  • RectTransform feature : 2D object์˜ ์œ„์น˜๋ฅผ ๋ณ€๊ฒฝ (move, rotate, scale tools)

 

<Parent object>

  • unity์—์„œ๋Š”, object๋“ค์€ hierarchy system์„ ์‚ฌ์šฉ
  • game world ๋Œ€์‹ , parent game object์™€ ๊ด€๋ จ๋œ ๋ชจ๋“  transform changes๋ฅผ object๊ฐ€ ์ˆ˜ํ–‰ํ•˜๋ ค๊ณ  ํ•  ๋•Œ,  game object๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค (?) 

 

<Prefab -์กฐ๋ฆฝ์‹->

  • completely configured game object๋ฅผ ํ–ฅํ›„ ์‚ฌ์šฉ์„ ์œ„ํ•ด ํ”„๋กœ์ ํŠธ์— ์œ ์ง€๋  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ๋ณ„๊ฐœ์˜ ์ปดํฌ๋„ŒํŠธ.

 

<Scene Visibility>

  • scene visibility control : in-game visibility์˜ ๋ณ€ํ™” ์—†์ด, game object๋ฅผ ๋ณด์ด๊ฑฐ๋‚˜ ์ˆจ๊ธธ ์ˆ˜ ์žˆ์Œ.
  • ์ˆ˜ ๋งŽ์€ game object๋“ค์„ ๋ณต์žกํ•œ scene์—์„œ ์ž‘์—…ํ•  ๋•Œ ์œ ์šฉํ•จ.
  • hierarchy window์—์„œ eye icon์„ ์„ ํƒํ•ด์„œ game object๋ฅผ ์ˆจ๊ธธ ์ˆ˜ ์žˆ์Œ

 

3) Exercise - Position game objects and set visibility

<Parent object>

  • unity์—์„œ๋Š”, object๋“ค์€ hierarchy system์„ ์‚ฌ์šฉ
  • game world ๋Œ€์‹ , parent game object์™€ ๊ด€๋ จ๋œ ๋ชจ๋“  transform changes๋ฅผ object๊ฐ€ ์ˆ˜ํ–‰ํ•˜๋ ค๊ณ  ํ•  ๋•Œ,  game object๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค (?) 

 

(์ถ”ํ›„ ์ถ”๊ฐ€ ์˜ˆ์ •)