From 3309a5558e4f977ba6fc3441eb751bcee26978c8 Mon Sep 17 00:00:00 2001 From: danb Date: Thu, 2 Apr 2020 11:58:48 +0200 Subject: [PATCH] update to point cloud drawing routine --- example/src/ofApp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/example/src/ofApp.cpp b/example/src/ofApp.cpp index ea578a2..b9a1a25 100755 --- a/example/src/ofApp.cpp +++ b/example/src/ofApp.cpp @@ -109,12 +109,21 @@ void ofApp::draw() } else { + + ofEnableDepthTest(); cam.begin(); ofPushMatrix(); + glPointSize(3); // choose dot size for our point cloud rendering + ofScale(100, -100, -100); + pointCloud.setMode(OF_PRIMITIVE_POINTS); + //pointCloud.drawVertices(); + pointCloud.draw(); ofPopMatrix(); cam.end(); + ofDisableDepthTest(); + } if( kinects.size() < 1 ) {