본문 바로가기

분류 전체보기81

07. AR Foundation - 설치 🔷 AR Foundation - 설치 🔶 Document https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.1/manual/index.html About AR Foundation | AR Foundation | 4.1.7 About AR Foundation AR Foundation allows you to work with augmented reality platforms in a multi-platform way within Unity. This package presents an interface for Unity developers to use, but doesn't implement any AR features itself. To use.. 2021. 9. 16.
06. ARCore - 자 만들기 🔷 자 만들기 - 새 씬 생성 https://assetstore.unity.com/packages/2d/gui/icons/crosshairs-plus-139902 Crosshairs Plus | 2D 아이콘 | Unity Asset Store Elevate your workflow with the Crosshairs Plus asset from AssetBag. Browse more 2D GUI on the Unity Asset Store. assetstore.unity.com - Crosshairs 모델 임포트 - MainCamera 삭제 - 프리팹 2개 추가 - Sprite 타입 이미지 추가 - 이름 변경 : Point - Scale 조절 후 프리팹화 - 하이어라키 창에서 삭제 - - UI 구성 - .. 2021. 9. 15.
05. ARCore - Face Tracking 🔷 Face Tracking - 얼굴을 디텍팅해서 이미지를 씌우기 - 스노우 필터같은 것 🔶 unity - 새 씬 생성 - Main Camera 삭제 - 프리팹 2개 추가 - DefaultSessionConfig 복제 : FaceSessionConfig - - - - 빈 게임 오브젝트 생성 : FaceController - 컴포넌트 추가 - Augmented Faces Example Controller - 빈 게임 오브젝트 생성 : FaceAttatch - child로 fox_sample 프리팹 넣기 - fox_sample에 머티리얼 입히기 - 컴포넌트 추가 - AR Core Augmented Face Rig - Auto Bind 체크 - 연결 - 빈 게임오브젝트 생성 : FaceTexture - 컴포넌.. 2021. 9. 14.
06. 은근히 자주 쓰는 Git 명령어 모음 🔷 Git 명령어 모음 - add, commit, push, merge처럼 자주 쓰이는 명령어는 아니지만, 잊을만할 때쯤 쓰이는 명령어 모음 🔶 CRLF 개행 문자 차이로 인한 문제 해결 // 설정 git config --global core.eol native // 설정 확인 git config --global --list|grep core.eol 🔶 원격 레포지토리에 브랜치 생성 git push --set-upstream origin 브랜치명 git remote update 🔶 원격저장소에서 브랜치 가져오기 git checkout -t origin/브랜치명 🔶 원격저장소 커밋 삭제하기 // 원하는 커밋으로 reset한 후 git push -f origin 브랜치명 🔶 원격저장소 브랜치 삭제 git p.. 2021. 9. 13.
04. ARCore - 로그캣 🔷 ARCore - 로그캣 - monster가 camera를 따라오도록 처리 - 로그캣 🔶 monster가 camera를 따라오도록 처리 - 스크립트 생성 : MonsterMove - monster 프리팹에 추가 using System.Collections; using System.Collections.Generic; using UnityEngine; public class MonsterMove : MonoBehaviour { private Transform camTr; public float moveSpeed = 0.2f; void Start() { camTr = Camera.main.transform; } void Update() { Debug.Log($"transform = {transform.po.. 2021. 9. 12.
03. ARCore - 바닥 인식, 오브젝트 생성 🔶 바닥 인식 - 빈 게임 오브젝트 생성 : PlaneVisualizer - 컴포넌트 추가 - Detected Plane Generator - DetectedPlaneVisualizer 연결 - build & run - 바닥으로 인식한 곳에 흰색으로 폴리곤이 생기는 것을 볼 수 있음 🔶 터치 시 오브젝트 생성 - 빈 게임 오브젝트 생성 : TouchMgr - 스크립트 생성 : TouchMgr - 스크립트 넣기 using System.Collections; using System.Collections.Generic; using UnityEngine; using GoogleARCore; public class TouchMgr : MonoBehaviour { private Camera arCamera; // .. 2021. 9. 11.
반응형