Unity

    에러 : Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform.

    🔷 에러메세지 패키지를 임포트하니 아래의 에러가 생겼다. 🔶 에러메세지 1 Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform. 🔶 에러메세지 2 PrecompiledAssemblyException: Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allo..

    02. Photon 연결, 기본 메서드

    🔷 Photon 연결 - 빈 게임 오브젝트 생성 : PhotonManager - 스크립트 생성 : PhotonManager - PhotonManager 스크립트 추가 🔶 PhotonManage.cs 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; using Photon.Pun; using Photon.Realtime; public class PhotonManager : MonoBehaviourPunCallbacks { private readonly string gameVersion = "v1.0"; private string userId = "Ojui"; private void Awake() { // 게임 ..

    07. ML-Agents - Soccer (2)

    🔷 실습 6 (2) - 축구 - 이산값 🔷 트레이닝 환경 구축 - 태그 추가 - 각 오브젝트에 태그 부여 - 컴포넌트 추가 : Ray Perception Sensor 3D - Sensor Name : RayFront : 센서를 여러개 사용할 경우 이름이 중복되면 안됨 - Detectable Tags : 인식할 오브젝트의 태그 추가 - Ray per Director : 4 : 레이의 개수 : 4 * 2 + 1 = 9개 - Max Ray Degrees : 80 : 레이의 간격 - Ray Length : 40 : Agent가 경기장 끝에 있을때도 반대편까지 레이가 닿도록, 사각지대가 없도록 조절 - 컴포넌트 copy - Agent 아래에 빈 게임오브젝트 추가 : BackRay - 컴포넌트 paste : Ray..

    06. ML-Agents - Soccer (1)

    🔷 실습 6 (1) - 축구 - 이산값 🔶 프로젝트 세팅 - 프로젝트 생성 : MLSoccer - 패키지 다운로드 및 임포트 : Soccer Field - 폴더 정리 - Add package from disk - mlagents, mlagents extentions 패키지 설치 - 경로 - ml-agents\com.unity.ml-agents\package.json - ml-agents\com.unity.ml-agents.extensions\package.json - 패키지 2개가 설치된 것을 확인 - Regenerate project files - Ctrl + Shift + P - OmniSharp : Restart OmniSharp 🔷 트레이닝 환경 구축 🔶 씬 세팅 - SoccerFieldTwos ..

    05. ML-Agents - Imitation Learning

    🔷 실습 5 - 모방학습 - 강화학습만을 사용하면 효율이 안나오는 경우 - 사람이 시범보이는 것을 레코딩을 떠서, 녹화파일을 줌 - 컴포넌트 : Demonstration Recorder - Hint의 색상과 같은 색상의 큐브로 이동 🔷 트레이닝 환경 구축 - 씬 생성 : MummyIL - 빈게임오브젝트 : Stage - 큐브 : Floor - Scale : 10, 0.1, 10 - 빈게임오브젝트 : Walls - 큐브 : Wall - Scale : 10, 1, 1 - 벽세우기 - Tag 부여 : WALL - agent 추가 - position : 0, 0.05, 0 - cube 생성 : Hint - position : 0, 0.55, 0 - cube : Black, Red, Green, Blue - Sc..

    04. ML-Agents - Camera Sensor

    🔷 실습 4 - 실습 3과 동일하게 good item, bad item으로 스테이지 구성 - Camera로 분석 🔷 트레이닝 환경 구축 🔶 씬 기본 세팅 - 씬 생성 : MummyCamera - Stage 프리팹 복사 -> StageCamera로 이름 변경 - 씬 안에 있던 Stage프리팹 전부 삭제 - StageCamera 하나 올리기 🔶 Agent 세팅 - 컴포넌트 삭제 : Ray Perception Sensor 3D - Behavior Name : MummyCamera - 연결되어있던 모델 해제 🔶 분석할 Camera 세팅 - Agent 아래에 Camera오브젝트 생성 - 컴포넌트 삭제 : Audio Listener - position : 0, 0.8, 0카메라 위치를 머미의 눈 쪽으로 이동 - N..

    03. ML-Agents - Ray Perception Sensor 3D

    🔷 실습 3 - bad item에 부딪히면 -1, good item에 부딪히면 +1 - Raycast 발사하여 관측 - good item / bad item - 이산값 DiscreteActions 🔷 트레이닝 환경 구축 🔶 기본세팅 - 씬 생성(MummyRay) - 빈 게임오브젝트 (Stage) - Cube (Floor) - Scale : 50, 0.1, 50 - 빈게임오브젝트(Walls) - Cube (Wall) - Scale : 50, 3, 1 - Agent 추가 - Position : 0, 0.05, 0 https://assetstore.unity.com/packages/3d/characters/creatures/rpg-monster-duo-pbr-polyart-157762 - RPG Monster..

    02. ML-Agents - position,rigidbody 관측

    🔷 실습2 - Agent가 Target을 향해 이동 - position, rigidbody 값 관측 - 연속 : actions.ContinuousActions 🔶 기본 세팅 - 폴더 정리 https://assetstore.unity.com/packages/3d/characters/free-mummy-monster-134212 Free Mummy Monster | 3D 캐릭터 | Unity Asset Store Elevate your workflow with the Free Mummy Monster asset from amusedART. Find this & other 캐릭터 options on the Unity Asset Store. assetstore.unity.com - 패키지 다운로드 후 임포트 🔶..