[MotionCapture3D] How to change sphere to image?

22 views
Skip to first unread message

Ricardo Brazileiro

unread,
Jul 22, 2012, 11:38:01 AM7/22/12
to osce...@googlegroups.com
Hi All,

How to change the sphere in:
void draw() {
for (Skeleton s: skels.values()) {
    fill(s.colors[0], s.colors[1], s.colors[2]);
    for (float[] j: s.allCoords) {
       pushMatrix();
        translate(j[0]*width, j[1]*height, -j[2]*300);
        sphere(2 * ballSize/j[2]);
        popMatrix();
       }
    }
}

to associated image in Skeleton parts?

the handCoords in class Skeleton has a x, y, z floats. How to integrate an image item to show in draw().

any suggestions?

best from brazil

rbrz




Reply all
Reply to author
Forward
0 new messages