I am developing app which detect face and mask faces.
At a moment, I am able draw mesh and bind texture. But when I draw both it is showing at different location.
-
White color is output for " rightTrackerThread.getImageMesh().draw()"
-
Face is output for
ofVec2f position = rightTrackerThread.getPosition(); float scale = rightTrackerThread.getScale(); ofVec3f orientation = rightTrackerThread.getOrientation(); ofPushMatrix(); ofTranslate(position.x, position.y); ofScale(scale, scale, scale); ofRotateX(orientation.x * 45.0f); ofRotateY(orientation.y * 45.0f); ofRotateZ(orientation.z * 45.0f); ofSetColor(255,255,255,255); leftSideImage.bind(); leftMesh.draw(); leftSideImage.unbind(); ofPopMatrix();