이 섹션에서는 간단한 이미지 타겟을 설정한 후 기본 추적 이벤트에 응답하도록 만드는 방법을 살펴보겠습니다.
애플리케이션이 이미지를 인식하고, 인식한 이미지를 사용하여 게임플레이를 실행하고 그래픽스 또는 정보를 표시하도록 허용하려면 Target database 를 생성해야 합니다. 이 섹션의 단계에 설명된 대로 Vuforia 개발자 포털 타겟 관리자 페이지에서 타겟 데이터베이스를 직접 생성할 수 있습니다.
Vuforia 개발자 계정에 로그인합니다. 그런 다음 타겟 관리자 페이지로 이동한 후 Add Database 버튼을 클릭합니다.
Create Database 페이지에서 데이터베이스의 이름을 입력하고 Type 옵션에서 Device 를 선택한 후 Create 버튼을 클릭합니다.
이렇게 하면 Target Manager 리스트에 새 타겟 데이터베이스가 추가됩니다. 리스트에서 Database name 을 클릭하여 Device Database list 를 여십시오.
그러면 해당 데이터베이스의 Target list 페이지로 이동합니다. 여기에서 새 타겟을 추가하고 여러 플랫폼에서 사용할 특정 포맷으로 데이터베이스를 다운로드할 수 있습니다. Add Target 버튼을 클릭하여 Add Target 팝업 창을 여십시오.
Add Target 창에 표시되는 옵션을 통해 추가하려는 타겟에 대한 세부 사항을 지정할 수 있습니다. 추가할 수 있는 네 가지 타입의 타겟으로는 Single Image, Cuboid/Box, Cylinder, 3D Object가 있습니다. Type 에서 Single Image 를 선택하고 하드 드라이브로 이동하여 이미지 타겟으로 사용할 이미지를 찾으십시오.
이 예제에서는 게임 카드를 사용하여 Unity의 이미지 타겟 인식 기능을 보여줍니다.
어느 이미지를 사용해도 괜찮지만, 이미지 디테일이 최소 별 5개 등급의 타겟으로 평가되어야 카메라가 쉽게 추적할 수 있습니다.
Width 값은 Unity 씬에 표시할 이미지의 크기(실제 단위)를 설정하는 데 필요한 스케일 값입니다. Unity는 타겟 이미지의 크기와 관련하여 씬의 모든 요소를 측정합니다. 이 예제에서 게임 카드의 너비는 5.5cm입니다. 따라서 Width 값으로 5.5cm 를 사용해야 합니다. 더 큰 크기의 타겟이 필요하면 이 Width 를 늘리십시오.
타겟 이미지의 이름을 입력하고 Add 버튼을 클릭하여 데이터베이스에 이미지 타겟을 업로드합니다.
이미지가 별로 표시되는 Rating 값과 함께 타겟 리스트에 표시됩니다. Rating 이 별 5개 미만이면 카메라가 추적하기 더 어렵습니다. 이미지 타겟의 등급이 미치는 영향에 대한 자세한 내용은 타겟 감지 및 추적 안정성 최적화에 대한 Vuforia 문서를 참조하십시오.
이미지 등급이 만족스럽다면 Image Target 이름 왼쪽의 체크박스를 선택하고 Download Database 버튼을 클릭합니다.
Download Database 창의 Select a development platform 에서 Unity Editor 를 선택한 후 Download 버튼을 클릭합니다. 그러면 타겟 데이터베이스의 Unity 패키지를 다운로드하여 하드 드라이브에 저장할 수 있습니다.
Unity 프로젝트로 다시 전환한 후 사용할 Unity 패키지를 애플리케이션에 임포트합니다.
2018–03–28 편집 리뷰를 거쳐 페이지 게시됨
2017.3 Unity XR API에서 Vuforia 문서 업데이트됨
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.