Trackmania + Kinect RRS feed

  • General discussion

  • Hi,

    I love playing racing games.

    I developed a program which you can use as game controller.

    This program gets the coordinates of your l/r hand and l/r feet. It calculates by your hands a steering wheel and your feet the speed. If your right foot is at the ground you will give maximum of speed. When you lift it for some centimeters it will reduce speed or moving backwards.

    After calculating the program send keys with SendInput() to the game and release them after a short time. This time will be calculated by using speed and direction. Maximum of time is 33ms (Because kinect has 30fps (1000ms / 30fps = 33ms per frame)).

    I recorded a short movie you can see here. Normally it runs a more smoothly but my pc isn't the best one. I already recorded the webcam with my notebook. ;)

    Later this evening I will upload the project files so you can try it on your own or take parts of the code.

    Forward: a
    Backward: y (on German layout)
    Left: ,
    Right: .

    Kind regards


    Monday, July 25, 2011 3:46 PM

All replies

  • Here is the download link of the (c++)-project.
    • Edited by duWichtel Saturday, January 26, 2013 7:44 PM fixed broken link
    Monday, July 25, 2011 5:45 PM
  • Here is the download link of the (c++)-project.
    Nice job, looks good!
    Monday, July 25, 2011 6:40 PM
  • Here is a second video. Better framerate because of recording trackmania after the race. So you will see the replay.
    Monday, July 25, 2011 10:07 PM
  • You did an awesome work!!!  congratulations!!!.


    please how I can use the demo with my hacked kinect?


    thanks and regards

    Sunday, August 21, 2011 3:45 PM
  • You did an awesome work!!!  congratulations!!!.


    please how I can use the demo with my hacked kinect?


    thanks and regards


    • download & extract the zip
    • copy all ms .h files ("...\Microsoft Research KinectSDK\inc") and scancodes.h to your include directory of visual studio c++
    • start and setup trackmania control
    • run kinecttracmania.exe from Debug


    Thursday, August 25, 2011 4:24 PM
  • Hello,

    I am a foreign users.

    Due to visit download is very difficult, and address the code can send my email a copy.

    Thank you very much!

    email: yangtao6399@126.com
    • Edited by m349797447 Thursday, September 15, 2011 3:11 AM
    Thursday, September 15, 2011 3:10 AM
  • Hi,

    I am new at visual studio and c++. I have coding experience before in java.

    I would like to begin develop applications with c++ and kinect. I search for tutorials but all of them in C# or .Net.

    Can someone help me how and where to start?

    I also download trackmania but it doesn't work. How can I run trackmania in my computer?



    Tuesday, December 27, 2011 11:40 AM
  • Hi, 
    nice job!! I want download your code, but its already gone. Can you send me to E-mail: koznar.franta@seznam.cz ?
    Tuesday, July 11, 2017 12:54 PM