> ## Content Index
> Fetch the complete content index at: https://sudormrf.run/llms.txt
> Use this file to discover other available public pages before exploring further.

# Kinect Tutorial 해보기
- URL: https://sudormrf.run/2016/02/07/kinect-tutorial-practice/
- Published: 2016-02-07T08:13:23.000Z
- Updated: 2022-09-18T06:48:00.000Z
- Author: Junho Cho
- Tags: kinect, media art, #Import 2026-10-24 03:36

[Kinect Physcis Tutorial](http://www.creativeapplications.net/processing/kinect-physics-tutorial-for-processing/?ref=sudormrf.run) 을 해보았다. 아까의 링크를 따라했는데 지금 사용하고 있는 코드 버젼이랑 다른 것 같다.  
예를 들어,

```java
// declare SimpleOpenNI object
SimpleOpenNI context;

```

로 `context`를 정의하고, `context.enableScene()` 같은 함수는 현재 쓰고있는 Processing 2.2.1 버전에서는 다른 API로 제공되는 듯하다.

```
 if (!context.enableScene()) { 
    println("Kinect not connected!"); 
    exit();

```

이 코드가 다음 코드로 변경된다.

```
 if (!context.enableDepth() || !context.enableUser()) { 
    println("Kinect not connected!"); 
    exit();

```

우리가 쓰는 버전을 포팅된 코드는 [여기](https://github.com/msp/CANKinectPhysics?ref=sudormrf.run)의 것을 사용하였다.  
그리고 구현한 데모는 다음과 같다.

다음에는 이 코드의 polygon, particle등의 코드를 읽고 변경해보면서 응용해보고, projector[\[1\]](#fn1)가 있으면 [calibration](https://github.com/genekogan/KinectProjectorToolkit?ref=sudormrf.run)을 해보려한다. 최종 목표가 스크린에 kinect로 인식한 오브젝트를 스크린에 그림자로 정확히 투영시키는 것인데, calibration이란 아래 사진처럼 프로젝터와 스크린 사이에 체크보드를 통해서 정확한 포지션을 잡아두는 과정이다.  
![](https://camo.githubusercontent.com/5225fde8e035dc30d90af81019da58a795a043e3/687474703a2f2f7777772e67656e656b6f67616e2e636f6d2f696d616765732f6b696e6563742d70726f6a6563746f722d746f6f6c6b69742f6b70745f73637265656e5f332e6a7067)

---

1. [UC40](http://brucemoon.net/1198142848?ref=sudormrf.run)이라는 6만원짜리 저렴한 중국산 프로젝터가 가성비가 엄청 좋은데... 소음이 너무 심하다, 고민중이다. [↩︎](#fnref1)