6-DOF using the VR920 and a Wiimote
Vuzix Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


12»»

6-DOF using the VR920 and a WiimoteExpand / Collapse
Author
Message
Posted 8/30/2008 9:30:55 AM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/24/2010 7:59:10 AM
Posts: 35, Visits: 535
Howdy, I'm new here, and I thought of an idea to get 6-DOF using a Wii Remote and the VR920.

Okay, so here's what you need.
-A Wii Remote
-A Sensorbar (or any other kind of infrared-light source)
-An iWear VR920 (durr)
-A Bluetooth dongle

Kay, assuming you have all this junk, let's get started.
First of all, connect your Wiimote to your computer. (A lot of people use BlueSoleil, but I don't care for it)

Second, find a way to attach your sensorbar to the VR920.
I just used tape to make it stick to it, see.


My VR920 with a Wii Sensorbar on top.

Okay, now, put your Wii Remote on top of your monitor, like I did.


Don't ask me how I got it to balance on there...

Okay... so using this set up, you can get 6 degrees of freedom
Now, the Wiiremote can sense your motions.
You can now move up, down, left, right, backward, and forward.
Combine that with the 3 degrees the VR920 has, and voila, 6-DOF!!

And the last step, download GlovePIE and make it run this script.
FakeTrackIR.yaw = (vr920.Yaw - var.offset)
FakeTrackIR.pitch = vr920.Pitch
FakeTrackIR.roll = -vr920.Roll
FakeTrackIR.x = -(Wiimote.dot1x-500)/1024
FakeTrackIR.y = (Wiimote.dot1y-500)/1024
FakeTrackIR.z = smooth((Wiimote.dot1size/5)-0.5)
debug = 'X: '+FakeTrackIR.x+', Y: '+FakeTrackIR.y+', Z: '+FakeTrackIR.z

//Written by Steffan Mitrovic!


Please note, I've only tested the script in Live For Speed, but it worked great, so it'll probably work fine for other TrackIR games as well. (You might need to tweak the sensitivity, though)

Hope you'll enjoy my cheap method of being able to get 6-DOF using just a VR920 and a Wiimote.
Post #3261
Posted 9/7/2008 2:14:10 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 9/27/2008 9:08:45 AM
Posts: 92, Visits: 234
Good one thats the spirit!
Post #3283
Posted 9/8/2008 5:06:11 PM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/24/2010 7:59:10 AM
Posts: 35, Visits: 535
Thanks!
Someone finally replied
Post #3286
Posted 9/18/2008 1:36:52 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 9/18/2008 1:33:20 AM
Posts: 24, Visits: 75
What is Sensorbar?Where can buy it?
Post #3321
Posted 9/21/2008 12:51:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/13/2008 9:40:56 PM
Posts: 3, Visits: 11
The sensorbar is the IF sensor the Wii uses to track the Wiimote. It usually sits up next to your TV. They're easy to get and pretty inexpensive.

I found a bunch here:

http://www.amazon.com/s/?ie=UTF8&keywords=wii+sensor+bars&tag=googhydr-20&index=aps&hvadid=1097485421&ref=pd_sl_6yajk7y3jl_b
Post #3338
Posted 9/21/2008 12:53:54 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/13/2008 9:40:56 PM
Posts: 3, Visits: 11
BTW, Steffen, this post was FANTASTIC! I'd be curious for someone to try this with ElderScrolls: Oblivion and tell me how it plays out.
Post #3339
Posted 9/21/2008 8:06:31 AM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/24/2010 7:59:10 AM
Posts: 35, Visits: 535
JonnyTheWop (9/21/2008)
BTW, Steffen, this post was FANTASTIC! I'd be curious for someone to try this with ElderScrolls: Oblivion and tell me how it plays out.

Thanks
I'd try it myself, but I don't have Oblivion.
Post #3340
Posted 9/24/2008 2:06:42 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 9/7/2009 9:53:58 AM
Posts: 25, Visits: 131
Congradulations Steffan,

Instead of the sensor bar, can one use a bar with 4 IR led next to each other? In this case, how your code should be changed? Thank you

Post #3346
Posted 9/25/2008 9:31:42 AM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 8/24/2010 7:59:10 AM
Posts: 35, Visits: 535
Why would you want to use 4 IR leds?

You can actually just use only 1 led, and place it on your VR920.
I don't know how well it would work if you use a 4-LED bar, but you can just try, maybe it works fine.
Post #3350
Posted 9/26/2008 3:24:33 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderated Users
Last Login: 12/4/2008 1:36:50 PM
Posts: 539, Visits: 1,120
Great work!

There is a better way of coding it, using Wiimote.X, Wiimote.Y, and Wiimote.Z, although you may have to use manual Wiimote calibration due to a bug in GlovePIE 0.30.

You can also use Wiimote.PointerX and Wiimote.PointerY.

That still won't work ideally, since Wiimote.X, Y and Z assume that the yaw is zero. But with a VR920 we can actually measure the real yaw, so we should account for that in the algorithm.

I'll see if I can come up with a more precise script later (I have to prepare for an exam tomorrow).

Also many people have 2-4 Wiimotes. You could set up the two or more Wiimotes on opposite sides of the room, so you can turn 180 degrees and still not lose position tracking.

By the way, you need to connect your wiimotes to the PC before you turn on the Wii.

If you have a Wiimote but not a Wii, you can buy a wireless sensor bar.
Post #3364
« Prev Topic | Next Topic »

12»»

Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: TechSupport, Daddo, Tech_Support

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 7:41am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.047. 10 queries. Compression Enabled.