2017년 6월 22일 목요일

유니티 기반 3차원 포인트 클라우드 뷰어

이 글은 Unity(유니티) 게임엔진에서 3차원 포인트 클라우드(point cloud)를 확인할수 있는 Point Cloud Free Viewer를 간단히 소개한다.

Point Cloud Free Viewer는 Unity 기반 앱으로 unity3d assetstore에서 다운로드 및 설치할 수 있다.

1. 설치하기 전에 우선 Unity(4.3.2 이상) 프로젝트를 하나 만든다.
2. Viewer 링크를 클릭하고, 다음 '유니티에서 열기' 버튼을 클릭해, Unity에 설치한다. 


3. Viewer를 설치하면, 다음과 같이 asset이 설치된다. 

4. 다음과 같은 순서로 빈 객체를 만들고, 관련 파라메터를 설정한다. 
Add an empty Game Object in the Scene.
Add the script "PointCloudManager.cs" to this object.
Write the path of your PointCloud file without the extension (e.g. "/PointCloud/xyzrgb_manuscript")
Assign the material 'VertexColor' to 'Mat Vertex'
Choose other parameters such as scale, invert YZ and force reload.

5. Play 한다. 그럼 다음과 같이 지정된 xyzrgb_manuscript.off 파일의 점군을 읽어, 메쉬로 자동 구성한 후, 이를 가시화해 준다. 



댓글 없음:

댓글 쓰기