This site requires JavaScript, please enable it in your browser!
Greenfoot back
judemartin
judemartin wrote ...

2014/11/20

Kinect Greenfoot Integration

judemartin judemartin

2014/11/20

#
Hi , I'm working on a game and now would want to add the functionality with kinect ** I'm able to use the exiting projects with the kinect and it works fine i.e. the kinect server is installed and working fine I have a few questions to be cleared: 1. How do we integrate an already working game on greenfoot with kinect 2. What are the various steps that are needed to be considered Thanks
danpost danpost

2014/11/20

#
There is a link to instructions, an example, and a downloadable video on using connect with Greenfoot at the bottom of the 'Documentation' page in the section 'Going Further'.
judemartin judemartin

2014/11/20

#
Hi DanPost, By looking code belonging to some of the existing kinect project's i was able to connect to the kinect Server using a Socket , and i was receiving some constant-continuous data but couldn't figure out how to decode the received data and how to send the request to the kinect server. Any inputs or guidance will be much appreciated Thanks in advance :)
judemartin judemartin

2014/11/20

#
Hi danpost, By looking at the code belonging to some of the existing kinect project's i was able to connect to the kinect Server using a Socket , and i was receiving some constant-continuous data but couldn't figure out how to decode the received data and how to send the request to the kinect server. Any inputs or guidance will be much appreciated Thanks
danpost danpost

2014/11/20

#
I have not guidance to give in this regard as I have not dealt with Kinect personally. However, you should review the instructions given to make sure you have done everything properly. I find step 5 a bit unclear in the instructions. I do not know if that is actually an 'install' step or an added step meaning to start using your installed set-up from steps 1 through 4.
davmac davmac

2014/11/20

#
Danpost: I didn't write those instructions but I believe step 5 means you should download the Greenfoot kinect examples (the link is provided just below the instructions), as these example scenarios contain classes which communicate with the Greenfoot Kinect server (from step 4). judemartin: I believe you could use the example scenarios as a starting point. There's no real need to write code to communicate with the Kinect server using a socket as you can use the code in the example scenarios which does that for you. It sounds like you have this code and are essentially trying to re-create it. So to answer your question:
How do we integrate an already working game on greenfoot with kinect
I think the answer is that you should copy the KinectClient class, and any classes it depends upon (i'm not clear which those are, sorry) from one of the example projects into your existing working game, and then use the KinectClient class methods to access the Kinect. You must call the 'update' method periodically (eg from the world's 'act' method).
You need to login to post a reply.