Is it possible to develop "dance training"-like game with real-time motion tracking using iOS/Android camera?

Godot Version

4.4.1

Question

Is it possible to develop “dance training”-like game with real-time motion tracking using iOS/Android camera? I wanna create simple dance training game that does the following

  1. The game will have animated dance coach for each level. Player will learn dancing by following the move shown by the coach.

  2. The phone will be placed on a tripod so that the camera will be able to do live motion capture of the player’s dance move using the built-in iPhone/Android camera. The game could be displayed on TV (via HDMI, AirPlay, etc) for best viewing. The game will display both the animated coach and the live motion-captured avatar of the player side by side on screen.

Are there any existing GoDot games that does live motion capture retargeting to avatar? I would like to take a look.

TIA.

1 Like

I think it might be possible to do this; it would be an interesting challenge. I don’t know of anyone who’s tried it with Godot, but there have been attempts at purely camera-based motion capture (by which I mean, just a single camera visual spectrum camera with no special lighting and no special gear for the target) before.

I think this is a research project if you want to tackle it; you’ll probably find more useful info in SIGGRAPH papers than Godot stuff, though.

Unity could do this with Live Capture https://youtu.be/Iy5m3jFo-EM

What do you think about below?

PipeDoll: A Motion Capture Addon for the Godot Game Engine

PipeDoll: A Motion Capture Addon for the Godot Game Engine

1 Like

Godot can.but we gotta brain storm!

Give it a try and see? I’ve never tried it myself.

Are there any existing GoDot games that uses full body tracking as controller? I’m trying to decide if I should spend time learning Unity or GoDot for this not-so-simple game.

I’m not sure, but if there are they’re probably using that plugin you posted.

I’m not sure about Android , the Apple published few Swift snippets and demo project to keep track of motion thanks to CoreML / CreateMLComponents - example of counting exercise repeats .

I know you can build app using Godot + Swift with something like : GitHub - migueldeicaza/SwiftGodot: New Godot bindings for Swift ( downside is for iOS it seem to be little bit outdated at the minute )

Also it comes to permission to camera, and how you embed it in Xcode project .
Apple sample from WWDC22 -What's new in Create ML - WWDC22 - Videos - Apple Developer around 14minute ,

That looks amazing for iOS. Now, Android is a big ?

Looks like someone use MediaPipe/Pipedoll and ask for $500 for Unity.
https://ko-fi.com/s/709e6d6f6f

Here is a demo. Godot4_MediaPipe by Luk Lev