AR 콘텐츠 기초 7

[AR Foundation] 다중 마커 인식 방식, GPS 기능 사용하기, Firebase를 이용한 Realtime Database 생성하기

다중 마커 인식 방식 라이브러리 애들 이름을 내가 변경한 프리팹의 이름으로 변경 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.ARFoundation; public class MultipleImageTracker : MonoBehaviour { private ARTrackedImageManager aRTrackedImageManager; private void Awake() { Debug.Log("Awake"); this.aRTrackedImageManager = GetComponent(); Debug.LogFormat("ARTrackedImageManager : {0}",..

AR 콘텐츠 기초 2023.11.08

[AR Foundation] ARTrackable, ARFace, ARFaceManager, trackingState, tracking

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.1/api/UnityEngine.XR.ARFoundation.ARTrackable-2.html#UnityEngine_XR_ARFoundation_ARTrackable_2_trackingState Class ARTrackable | AR Foundation | 4.1.13 Class ARTrackable A generic component for trackables. A "trackable" is a feature in the physical environment that can be detected and tracked by an XR device. Inherited Members Assembl..

AR 콘텐츠 기초 2023.11.03

[AR Foundation] 얼굴 인식

Main Camera 지우고 AR Session, XR Origin 생성 XR Origin의 메인카메라의 Facing Direction을 User로 변경 https://github.com/araxrlab/xrlifeunity/blob/master/2%EC%9E%A5%20%EC%82%AC%EC%9A%A9%20%EC%97%90%EC%85%8B/Mask.png Alpha Is Transparenc 체크 Material 생성 후 Rendering Mode Cutout > Albedo에 Mask.png 넣기 https://docs.unity3d.com/Manual/shader-TransparentCutoutFamily.html Unity - Manual: Transparent Cutout Shader Family..

AR 콘텐츠 기초 2023.11.02

[AR Foundation] 자동차 터치 스와이프로 모델링 회전, 스마트폰에서 앱 실행 중에 꺼짐 방지, ScrollView, Content, 자동차 색 변경, 자동차 색 변경 시 위치 안따라오기

Cell은 이미지 Show Mask Graphic 체크 해제하면 옆에 하얀색 없어짐 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(Button))] public class CellButton : MonoBehaviour { public enum eColor { Yellow, Blue, Red, Black, Purple } [SerializeField] private eColor color; [SerializeField] private Button btn; } 알아서 컴포넌트를 추가 using System.Collections; ..

AR 콘텐츠 기초 2023.11.02

[AR Foundation] Car(지면 생성 및 지면 클릭 시 차 생성)

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/api/UnityEngine.XR.ARFoundation.ARPlaneManager.html Class ARPlaneManager | AR Foundation | 5.0.7 Class ARPlaneManager A manager for ARPlanes. Creates, updates, and removes GameObjects in response to detected surfaces in the physical environment. Inherited Members UnityEngine.MonoBehaviour.IsInvoking() UnityEngine.MonoBehaviour.Cance..

AR 콘텐츠 기초 2023.11.01