mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:36:49 +02:00
Removed debug logging.
This commit is contained in:
parent
f9f2c66115
commit
357ac05d35
1 changed files with 0 additions and 5 deletions
|
@ -108,16 +108,11 @@ void Webcam::renderPreview(int screenWidth, int screenHeight) {
|
||||||
glPointSize(4.0f);
|
glPointSize(4.0f);
|
||||||
glBegin(GL_POINTS);
|
glBegin(GL_POINTS);
|
||||||
float projectedScale = PREVIEW_HEIGHT / (float)_depthHeight;
|
float projectedScale = PREVIEW_HEIGHT / (float)_depthHeight;
|
||||||
int idx = 0;
|
|
||||||
foreach (const Joint& joint, _joints) {
|
foreach (const Joint& joint, _joints) {
|
||||||
if (joint.isValid) {
|
if (joint.isValid) {
|
||||||
if (joint.projected.x == 0.0f && joint.projected.y == 0.0f) {
|
|
||||||
printLog("%d\n", idx);
|
|
||||||
}
|
|
||||||
glVertex2f(depthLeft + joint.projected.x * projectedScale,
|
glVertex2f(depthLeft + joint.projected.x * projectedScale,
|
||||||
top - PREVIEW_HEIGHT + joint.projected.y * projectedScale);
|
top - PREVIEW_HEIGHT + joint.projected.y * projectedScale);
|
||||||
}
|
}
|
||||||
idx++;
|
|
||||||
}
|
}
|
||||||
glEnd();
|
glEnd();
|
||||||
glPointSize(1.0f);
|
glPointSize(1.0f);
|
||||||
|
|
Loading…
Reference in a new issue