본문 바로가기

전체 글

(115)
Marching Cube Tutorial 2 (1화 16분 9초부터) 앞에서 시작한 영상에서 이어서 작업된다. 앞에서는 마칭큐브로 나올 수 있는 케이스를 활용하여 메시를 생성하는 것을 알아 보았다면, 이번 섹션은 해당 기능들을 활용해서 실제 맵을 생성하는 부분이다. 영상 설명중에는 비트 연산도 있고 다소 복잡한 부분도 존재한다. 역시 최대한 이해되는 부분은 주석을 달았으나 이해를 위해서는 해당 섹션을 많이 해보는 수 밖에 없을 것 같다. * 소스코드는 작업중 일부 함수명 변경하여 튜토리얼과 조금 다릅니다. * 주석은 현재 이해 되는한 최대한 많이 달았습니다. youtu.be/dTdn3CC64sc?t=964 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ma..
Marching Cube Tutorial 1 (1화 16분까지) 해당 영상의 시작부터 16분까지의 구간은 마칭큐브를 활용한 메시를 생성하는 과정이다. 본 글은 딱 거기 까지만 잘라서 하나의 파트로 만들었다. 이해 되는한 최대한 주석을 달았다. youtu.be/dTdn3CC64sc?t=192 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Marching : MonoBehaviour { //하나의 큐브에 존재하는 Point Vector3Int[] CornerTable = new Vector3Int[8] { Vector3Int.zero, Vector3Int.right, new Vector3Int(1,1,0), Vector3Int.up, new Vector3..
VFX Graph Properties 코드 접근 예제 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.VFX; public class ButterfilesPoint : MonoBehaviour { public VisualEffect visualEffect; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { visualEffect.SetFloat("Alpha", 1.0f); } }
VFX Graph Master Sample Poject github.com/Unity-Technologies/VisualEffectGraph-Samples
후디니 설치파일 아카이브 www.sidefx.com/download/daily-builds/?daily=true&python3=true Login | SideFX www.sidefx.com 로그인 해야 함
Azure Kinect SDK for Unity3D ModeResolutionFoIFPSOperating rangeExposure time NFOV unbinned 640×576 75°x65° 0, 5, 15, 30 0.5 – 3.86 m 12.8 ms NFOV 2×2 binned 320×288 75°x65° 0, 5, 15, 30 0.5 – 5.46 m 12.8 ms WFOV 2×2 binned 512×512 120°x120° 0, 5, 15, 30 0.25 – 2.88 m 12.8 ms WFOV unbinned 1024×1024 120°x120° 0, 5, 15 0.25 – 2.21 m 20.3 ms Passive IR 1024×1024 N/A 0, 5, 15, 30 N/A 1.6 ms
VFX Graph TimeScale using UnityEngine; using UnityEngine.VFX; public class AdjustVFXSpeed : MonoBehaviour { [SerializeField] float timeScale = 1.0f; [SerializeField] VisualEffect VFX; void Start() { VFX = GetComponent(); } void Update() { VFX.playRate = timeScale; } }
Unity RP에서 Volum 접근 코드 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; public class environmentHandler : MonoBehaviour { public Volume Volume; public float LF_Instensity; VolumeProfile volumeProfile; // Start is called before the first frame update void Start() { volumeProfile = Volume.profile; } // Update is called once per frame void Update() { if (volumePr..