Skip to content

Commit

Permalink
fixed bug in sequence of transforms causing skeletons to misalign wit…
Browse files Browse the repository at this point in the history
…h RGB in cases where scale != 1 and x,y != 0
  • Loading branch information
vertgo committed Jan 25, 2013
1 parent eb8a75e commit 97c6c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ofxKinectNui.cpp
Expand Up @@ -560,8 +560,9 @@ void ofxKinectNui::drawSkeleton(){
*/
void ofxKinectNui::drawSkeleton(float x, float y, float w, float h){
ofPushMatrix();
ofScale(1.0f/(float)depthWidth * w, 1.0f/(float)depthHeight * h);
ofTranslate(x, y);
ofScale(1.0f/(float)depthWidth * w, 1.0f/(float)depthHeight * h);

drawSkeleton();
ofPopMatrix();
}
Expand Down

0 comments on commit 97c6c0b

Please sign in to comment.