이 페이지는 카메라가 화면상의 이미지 타겟을 인식하고 추적할 때 게임 오브젝트를 표시하는 방법을 설명합니다.
게임 오브젝트를 이미지 타겟 게임 오브젝트의 자식으로 만드십시오. 이 자식 게임 오브젝트에는 MeshRenderer 및 MeshFilter 컴포넌트가 모두 있어야 합니다.
이미지 타겟 게임 오브젝트에 큐브 프리미티브를 자식으로 추가합니다. 이렇게 하려면 마우스 오른쪽 버튼으로 클릭한 후 팝업 메뉴에서 3D Object > Cube 를 선택해야 합니다.
이제 큐브 게임 오브젝트를 확대/축소하여 이미지 타겟 게임 오브젝트에 가까이 이동시키면 타겟 이미지에 안착한 것처럼 표시됩니다. 씬 뷰 를 사용하여 게임 오브젝트의 포지션을 판단하십시오. 이 가이드의 게임 카드와 동일한 너비 를 사용한 경우 게임 오브젝트의 Transform 컴포넌트에 대한 X, Y 및 Z 스케일이 0.5로 변경되고 Transform Position Y 값이 0.25로 변경되어 이미지 타겟 게임 오브젝트에 잘 안착시킬 수 있습니다.
씬은 다음과 같이 표시됩니다.
Unity 에디터 플레이(Unity Editor Play) 버튼을 클릭하여 AR 기능을 테스트하십시오. 이미지를 웹캠 앞에 배치하면 게임 뷰에서 큐브가 이미지 위에 나타납니다.
ARCamera 의 Camera 컴포넌트는 기본적으로 Far Clipping Planes 값이 2000으로 설정되어 있습니다. AR 또는 MR 글래스처럼 더 먼 거리의 이미지 추적이 필요한 게임 또는 애플리케이션의 경우에는 Unity의 Camera 컴포넌트에 대한 Far Clipping Planes 값을 조정하고, 타겟 크기를 크게 만들어 기기 카메라가 쉽게 추적할 수 있게 해야 합니다.
이제 이미지 타겟을 사용하는 간단한 앱을 성공적으로 만들었으며, 카메라가 추적할 수 있게 되면 기본 3D 모양이 표시됩니다.
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.