From 3b84d6d75cf502fcf780d4fe012b03687cc0eb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20B=C3=BCrki?= Date: Thu, 4 Jun 2020 18:23:25 +0200 Subject: [PATCH 1/2] Fix RGB view being tinted green --- src/ofApp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ofApp.cpp b/src/ofApp.cpp index 9b9fe9e..0e68ab1 100644 --- a/src/ofApp.cpp +++ b/src/ofApp.cpp @@ -259,13 +259,15 @@ void ofApp::drawPreview() { //sphere_Y.draw(); //sphere_Z.draw(); + ofPushStyle(); ofSetColor(255, 255, 0); skeletonFinder.drawSensorBox(); glLineWidth(5); ofSetColor(255, 100, 255); skeletonFinder.drawSkeletons(); - + ofPopStyle(); + glDisable(GL_DEPTH_TEST); } -- GitLab From e2d21da64ad2b9309fcfce10dc01d3dc2ff4a208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20B=C3=BCrki?= Date: Thu, 4 Jun 2020 18:29:51 +0200 Subject: [PATCH 2/2] Remove debug messages --- src/PointCloudManager.cpp | 2 -- src/ofApp.cpp | 15 ++------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/PointCloudManager.cpp b/src/PointCloudManager.cpp index ba80aee..9f5b587 100644 --- a/src/PointCloudManager.cpp +++ b/src/PointCloudManager.cpp @@ -65,8 +65,6 @@ void PointCloudManager::updateDepth(DepthFrame::Ptr data) void PointCloudManager::createPointCloudIfNotExist(glm::vec2 dim) { if (pointCloud.getVertices().size() == 0) { - ofLog(OF_LOG_NOTICE) << "YOU ONLY SEE THIS ONCE"; - pointCloud.setMode(OF_PRIMITIVE_POINTS); pointCloud.enableColors(); diff --git a/src/ofApp.cpp b/src/ofApp.cpp index 0e68ab1..d5b3d95 100644 --- a/src/ofApp.cpp +++ b/src/ofApp.cpp @@ -20,16 +20,6 @@ ofMatrix4x4 ofApp::makeNuitrackToRealSenseTransform() { const ofMatrix4x4 ofApp::nuitrackViewportToRealSenseViewportTransform = makeNuitrackToRealSenseTransform(); - -// TODO: remove -void debug_mat(glm::mat4 mat) { - ofLog(OF_LOG_NOTICE) << "MATRIX : \n" - << mat[0][0] << " " << mat[1][0] << " " << mat[2][0] << " " << mat[3][0] << "\n" - << mat[0][1] << " " << mat[1][1] << " " << mat[2][1] << " " << mat[3][1] << "\n" - << mat[0][2] << " " << mat[1][2] << " " << mat[2][2] << " " << mat[3][2] << "\n" - << mat[0][3] << " " << mat[1][3] << " " << mat[2][3] << " " << mat[3][3] << "\n"; -} - //-------------------------------------------------------------- void ofApp::initNuitrack() { tracker = ofxnui::Tracker::create(); @@ -226,10 +216,9 @@ void ofApp::draw() { if(bShowHelp) { ofDrawBitmapString(help, 20 ,VIEWPORT_HEIGHT + 50); } + if (bShowSkeletonData) { - string desc = skeletonFinder.getShortDesc(); - ofLog(OF_LOG_NOTICE) << desc; - ofDrawBitmapString(desc, + ofDrawBitmapString(skeletonFinder.getShortDesc(), 20, VIEWPORT_HEIGHT + 20); } -- GitLab