본문 바로가기

전체 글150

Visual studio 2017에서 OpenCV 4.0 사용하기 1. OpenCV 다운로드 아래 링크에서 opencv-***.exe를 다운받는다. 다운받은 실행파일을 실행시켜 압축을 풀고, 원하는 곳에 위치시킨다.https://github.com/opencv/opencv/releases 2. Visual studio 프로젝트 생성 아래 사진처럼 Windows 데스크톱 마법사 > 빈프로젝트를 생성한다. 솔루션 플랫폼은 64비트용으로 변경하고 소스파일을 생성한다. 3. '속성>모든구성' 설정 아래와 같이 총 3가지 path를 설정해준다. 1) DLL path 설정 2) 헤더 path 설정 3) 라이브러리 path 설정 4. 추가 종속성 설정 아래 위치에 있는 라이브러리 이름을 각각 디버그 속성, 릴리즈 속성에 입력해야 한다. 1) 활성(Debug) 속성 설정 2) Rel.. 2019. 1. 6.
유니티 - 레이캐스팅 이용하기 Vector3 incomingVec = hit.point - transform.position;hit.point: the impact point in world space where the ray hit the collider.Debug.DrawLine(transform.position, hit.point, Color.red); //rayhit.normal: the normal of the surface the ray hit.Debug.DrawRay(hit.point, hit.normal, Color.green); //wall surface normalhit.distance //The distance from the ray's origin to the impact point.Debug.DrawRay (t.. 2018. 10. 14.
Unity - Raycast로 앞의 가까운 object 찾기 using System.Collections;using System.Collections.Generic;using UnityEngine; public class raycast_hand : MonoBehaviour {public Transform target_wall; // Use this for initializationvoid Start () { } // Update is called once per framevoid Update () {RaycastHit hit;Debug.DrawRay(transform.position, transform.forward * 2.0f, Color.red); if(Physics.Raycast(transform.position, transform.forward, out h.. 2018. 9. 30.
Unity - 여러개의 태그로 가장 가까운 물체 찾기 using System.Collections;using System.Collections.Generic;using UnityEngine; public class haptic : MonoBehaviour {public Transform target;private float dist;private string[] tags = {"static_wall", "dynamic_wall"};GameObject[] taggedWalls = {};// Use this for initializationvoid Start () {Debug.Log("start haptic");} // Update is called once per framevoid Update () {if(target != null){Debug.DrawLin.. 2018. 9. 30.
3D 프린터의 종류 1. 3D Printer의 종류• FDM (Fused Deposition Modeling)맨 밑의 층부터 필라멘트(열가소성 수지)를 고온으로 녹여, 노즐로 분사하여 한 층씩 적층 하는 방식 • SLS (Selective Laser Sintering)분말재료(플라스틱, 세라믹금속 유리 등)를 레이저로 선택한 부분만 녹여 굳히는 것을 반복하여 적층 하는 방식 • SLA (Stereo Lithography Apparatus)레이저를 쏘았을 때 액체에서 고체로 변하는 광경화성 수지를 사용하며, 광경화성 액체 수지가 담긴 수조에 레이저를 투사해 경화시키는 방법으로 적층 하는 방식 • DLP (Digital Light Projector)액체 상태의 광경화성 수지에 조형하고자 하는 모양의 빛을 DLP에 투사하여 적층.. 2018. 9. 29.
Unity + Oculus Rift 1. 아래와 같이 립모션 코어에셋 패키지와 오큘러스 패키지 3개를 다운로드받고 유니티에서 임포트한다. 2. 오큘러스 인풋 받기 2018. 8. 16.
반응형