I am using Windows and my output will go into OSC and then to Touch
Designer software. The focus of my project is on the Touch Designer
side so that is why I am not really good in editing this code and I am
aslo a high school student that is trying to learn how to code. I
looked at the part that you said I have to edit for example that is
the first callback that I have to change:
void XN_CALLBACK_TYPE LostUserCB(xn::UserGenerator& generator,
XnUserID user, void* pCookie)
{
/* If we lose a user that's not a problem, if we lose a player then
reset the software */
if (XnPlayer != user)
{
printf("Lost: User %d\n", user);
}
else
{
printf("Lost: Player (User %d)\n", user);
XnPlayer = 0;
statusCheck(XN_STATUS_ERROR,"Player lost off screen, restart
sotware");
}
}
can you tell me how can I change this so I can get an idea of how to
change the other callbacks on my own?
thank you
On Aug 5, 4:25 am, Alistair Clarkson
<
alistair_de_b_clark...@yahoo.co.uk> wrote:
> Ah, if you are only interested in tracking multiple users then you will need to edit all the OpenNI callbacks at the top of the code, the functions starting void XN_CALLBACK_TYPE to allow multiple players, definitely you will want to edit LostUserCB to remove the player lost off screen bits, and you will want to edit PoseStartCB to remove the assertion style check at the top. Also in the skeleton draw function there is a line that gets the current players joints positions, you will need to edit that so that it gets all players joint positions, prob best to call the method in a loop. This is all assuming you are using the latest version.
>
> You will also need to think about what you are outputting and where. Do you want to output to a midi device or OSC? What platform are you on, Windows or Mac?
>
> ________________________________
> From: ghazaleh p <
ghazaleh...@gmail.com>
> > - Show quoted text -- Hide quoted text -