| | | 
Forum 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. |
| | | | Supreme Being
       
Group: Forum Members Last Login: 9/27/2008 9:08:45 AM Posts: 92, Visits: 234 |
| Good one thats the spirit! |
| | | | 
Forum Member
       
Group: Forum Members Last Login: 8/24/2010 7:59:10 AM Posts: 35, Visits: 535 |
| Thanks!
Someone finally replied |
| | | | Junior Member
       
Group: Forum Members Last Login: 9/18/2008 1:33:20 AM Posts: 24, Visits: 75 |
| | What is Sensorbar?Where can buy it? |
| | | | Forum 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 |
| | | | Forum 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. |
| | | | 
Forum 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. |
| | | | Forum 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 |
| | | | 
Forum 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. |
| | | | Supreme 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. |
| |
|
|