LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-28-2013, 02:37 AM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 206

Rep: Reputation: 2
Motion Controlled Gaming System


Hi,
Can somebody plz guide me how to create motion controlled Softwares in Linux? I want some examples using C language. What hardware is required in this regard?

Zulfi.
 
Old 04-03-2013, 08:47 AM   #2
thelinuxist
Member
 
Registered: Nov 2012
Location: Munich, Germany
Distribution: CentOS, Debian, Fedora, Ubuntu, DSL (Whatever neccessary)
Posts: 61

Rep: Reputation: Disabled
What exactly do you mean with that? Do you want "motion control" as in "Microsoft XBox Kinect" or "Sony PlayStation EyeToy" - So a camera detecting movements - or do you mean sensors, taped to a players body or placed on his clothing, detecting movement.
In fact, if you mean using a camera, you will need a function comparing two pictures (possibly several milliseconds away from each other) to each other, considering any difference between them as movements. After that, you can compare the coordinates of this movement to some coordinates of your UI/Game Control elements, activating them as it is needed.
I can't provide you with C Code, but that'd be the logical procedure (or one of the approaches).
To do it using the camera way, you'll need a web cam with a good input quality (You'd have guessed that, I suspect), sufficient lighting where you want to use the system, and of course, a good CPU, some RAM and a decent Graphics Card never hurt.
For the second way (More complicated to what I know) you'll need several accelerometres (like the ones used in smartphones) plus hardware to access them. Then, you tie them to the key points of human body mechanics (Like Wrists, Elbows, Knees, Feed, Head, Chest...) as needed, and "calibrate" them to a certain position (Like you would do with a 3D Model) and then record every movement, adjusting the model every time.
You certainly need stronger hardware, plus a way to read all the values. Maybe somebody with more experience has more info on this way.
That's two ways, and if I were you, I'd stick to the camera for what I know. If you want *seriously* high performance though, you'll need to go with the sensors.
 
Old 04-04-2013, 12:58 PM   #3
zak100
Member
 
Registered: Jul 2009
Posts: 206

Original Poster
Rep: Reputation: 2
Hi,
thamnks for your reply. I want some thing like playstation 3
http://www.reuters.com/.../us-sony-g...62A07W20100311

I dont know what is the technique used in these games (camera or sensors??) and can we implement them on linux platform. Do the linux OSs provide any support for this ??
Kindly guide me.

Zulfi.
 
Old 04-04-2013, 01:01 PM   #4
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,908

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
Here's something I googled up:

http://libwiimote.sourceforge.net/
 
Old 04-04-2013, 04:18 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,063

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
Depends on the game / controller but I believe that the PS3 sixaxis uses both accelerometers and gyros for motion sensing. There are several sites that detail how to connect the sixaxis controller (via bluetooth) to linux.
 
Old 04-05-2013, 03:03 AM   #6
thelinuxist
Member
 
Registered: Nov 2012
Location: Munich, Germany
Distribution: CentOS, Debian, Fedora, Ubuntu, DSL (Whatever neccessary)
Posts: 61

Rep: Reputation: Disabled
Well, I'm out on that one. Sorry, but with that sort of thing, I'd say there's other experts - I usually stick with keys and mouse or the "good old gamepad", but if you need testers for your project (I just simply take it you have an idea already), then I'll be certainly ready.
BTW, your link to Reuters about the Playstation is not working.
 
Old 04-05-2013, 01:02 PM   #7
zak100
Member
 
Registered: Jul 2009
Posts: 206

Original Poster
Rep: Reputation: 2
Hi,
Thanks for providing this link. But i think i need wii remote plus hardware. Kindly guide me about the hardware which i would need to start this project?

Zulfi.
 
Old 04-05-2013, 01:14 PM   #8
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,908

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
"Hardware"?

Wiimotes are bluetooth. If you're ready to start a project like this, you should have been able to find this out.

Last edited by dugan; 04-05-2013 at 01:15 PM.
 
Old 04-09-2013, 03:33 AM   #9
thelinuxist
Member
 
Registered: Nov 2012
Location: Munich, Germany
Distribution: CentOS, Debian, Fedora, Ubuntu, DSL (Whatever neccessary)
Posts: 61

Rep: Reputation: Disabled
Well, it'd be a bluetooth receiver (some notebooks have one installed already) and the wiimote (I think it's available seperately, but if you want to get a "feeling" for it, maybe you'll want the system as well). In Germany, the complete system including one game are sold for about 150 Euros (= about 200 $), the motes are about 40 Euros (If I remember it right) (= about 55 $).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Motion help please (Motion only supports mmap) ?? RaeMarvin Linux - Software 4 09-06-2012 01:25 PM
LXer: Setting Up Motion webcam security system with your Webcam with Email & FTP. LXer Syndicated Linux News 0 06-24-2009 10:42 PM
Error with "SDL_MouseMotionEvent *motion = event->motion;" aatwell Programming 3 11-30-2007 02:46 PM
Console based legacy gaming system: feasible? MACSRULE Linux - General 2 05-06-2007 06:16 AM
Motion Detection System for Linux??? lemay_jeff Linux - Security 2 07-17-2004 02:27 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration