so some of you are already playing with the wii remote, so perhaps we should discuss it here instead of in the shoutbox.
I’m also playing around with it, and it was very easy to simple map it to a gamecontroller. You just need JoyPP and the following Glovepie lines:
{CODE(ln=>1)}PPJoy1.Digital0 = Wiimote1.A
PPJoy1.Digital1 = Wiimote1.B
PPJoy1.Digital2 = Wiimote1.One
PPJoy1.Digital3 = Wiimote1.Two
… and the GameController Node should work. But has anyone an idea how to get the Acceleration/Velocity out from the moves? I wasn’t successfull with the RawForce thing, and also not with sending midi from GLovepie to VVVV.
Basically I’d suggest you send the data via OSC.
like so:
var.host = “localhost”
var.Port = 47110
SendOSC(var.host, var.port, “/wiimote”, wiimote.Up,wiimote.Down,wiimote.Left,wiimote.Right,wiimote.A,wiimote.B,wiimote.Minus,wiimote.Home,wiimote.Plus,wiimote.One,Wiimote.Two,wiimote.RawForceX,wiimote.RawForceY,wiimote.RawForceZ,wiimote.dot1size,wiimote.dot1vis,wiimote.dot1x,wiimote.dot1y)
what was your “problem with the rawforce thing” then?
(the source clipping in my previous post is cropped where the word wrap should be. But if you copy+past into an editor, it’s there. That one goes onto the website wishlist…)
thanks, this osc send script helps me a lot!
and i just found out that what i meant RawForce is actually called RelAccX/Y/Z
so I’m currently working with this one:
{CODE(ln=>1)}var.host = “localhost”
var.Port = 47110
SendOSC(var.host, var.port, “/wiimote”, wiimote.roll,wiimote.pitch,wiimote.RelAccX,wiimote.RelAccY,wiimote.RelAccZ)
^
hmm because of some unknown reasons the attached patch crashes in the first minute when glovepie is running. does someone have an idea why? i already tried different queue modes (because i have no idea nor search results what this means).
The attached patch should work with midi. It sends the data to MidiYoke1
But I currently have a strange bug with the GetSlice nodes in the vvvv patch - they are sending a whole spread instead of the slice they should send. No idea where this comes from… yesterday the patch worked fine.
Hi there,
nothing really new, but i did this glovepie script and thought it might be usefull to someone…the cool thing here is you can specify speeds and offsets…now workin on the acceleration feature…
desax! while i am grateful for your contribution, especially since you posted it on the exact same day that i received my wiimote in the mail, i couldn’t help but notice two important details:
your glovepie-script contains syntax errors in lines 39 to 41, missing SPACES in front of the final 1s: {CODE(ln=>0)}…20 m per s per s, 0, 1)^in fact, this stops the code below (buttons to midi) from executing in glovepie 0.3; how did you manage to run it at all?
hardcoding the output to MIDI Device #2 is totally not cool.
anyway, thanks for your code. lets get those wiimotes rocking!
Hi diki,
Weird, everything works fine here. No errors and doesn’t care about the MIDI device…but thank you a lot for reporting those troubles…
I’ve switched A and B inside the camsystem which is more convenient for controls…and added your script. But still needs finetuning for X and Y controls(mapped values isn’t a really smart way)…I’m sure you’ll do it ten times better…
edit: forget the first one, check the second link please.
what about automatic bluetooth-detection? now i have to push some buttons and to approve and i dont know which wii is #1 and which #2
(im using blue soleil)
I was planning to do the same thing but now I don’t need to!
It seems to be much more responsive than the glovepie/OSC setup I was using before. Multiple wiimote support is something I want, I have two and would gladly help with testing.
One problem I’m having is that it only seems to output up to three IR sources instead of the four the wiimote is capable of tracking.