LoginSignup
1
0

More than 5 years have passed since last update.

Skeltonの描画に関して

Posted at

Skelton情報描画の入り口は

void ofxUserGenerator::draw(const int width, const int height)

となっているが、実際の描画はofxTrackedUser.hのなかで宣言されている'struct ofxLimb'で

    void debugDraw() {
        if(!found)
            return;
        glPushMatrix();
        glLineWidth(5);
        //glColor3f(1,0,0);
        glColor3f(0,0,1);
        glBegin(GL_LINES);
        glVertex2i(position[0].X, position[0].Y);
        glVertex2i(position[1].X, position[1].Y);
        glEnd();
        glPopMatrix();
    }

で行われている。描画座標を変更したい場合、もしくは、Skeltonの色を調整したい場合は個々をいじくる必要がある。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0