OSCuMote - Wiimote support for the free version

With no native plugin support with the indie license i decided to create a workaround.
It basically consists of OSCulator sending OSC messages to unity over UDP and my little wrapper that parses these OSC messages.

As OSCulator supports multiple wiimotes and Balance Boards so does my little wrapper.
As of version 1.2, Nunchucks, Classic Controllers, Motion plus, vibration, LED and motion plus recalibration support has been added.

Only problem is that with the unregistered version of OSCulator, sending is blocked while “nagging screen” is shown :S (happens around every 10 minutes).

GlovePIE for windows might be a viable alternative for the ones not running OSX.

Edit: The source is uploaded and can be found here: http://itu.dk/people/jzso/OSCuMote/oscumote.html

good~this is my interesting~ Can you share your plugin files or scripts? I hope to enjoy it~ :stuck_out_tongue:

Yes, I am interested. Having the Wiimote work with Indie would be great.

I would be very interested in seeing the code as well - I am trying to do something similar and don’t have too much experience with the OSC protocol. Are you planning to make it public at some point?

I am also using OSCulator - but you can use the DarwiinremoteOSC as well which doesn’t have any popup windows
http://code.google.com/p/darwiinosc/downloads/list

However, I don’t think it supports the balance boards

Oh my… Yeah I’m very interested! larzie is right, DarwiinremoteOSC would be a great replacement - there are some Processing examples that use it.

I would definitely appreciate this as I’ve been working on some interactive music video prototypes and I’ve had the Wii remote in mind this whole time. I was afraid I’d have to wait until I had Unity Pro, but it’d be great to test this out before I can save up for it.

Why not simply build OSC into DarwinRemote, and make DarwinRemote run as a background process?

Here’s the source. I’m terribly sorry for the long response time. I failed to notice that people had replied to my post :slight_smile:

http://www.itu.dk/people/jzso/OSCuMote.zip

I hope it’s still of any use.
Some of the code was inspired by another user from the forum which i unfortunately forgot his name. But thanks to him anyways if he sees this.

Thanks so much for this! Once I get something going using this, I’ll make sure to post it in the showcase.

And if I end up doing any enhancements to this, I’ll post it here, too.

@ bliprob : yes i do agree that it might be a better solution however it would require learning objective C :slight_smile: I’m not sure if darwiin remote supports balance boards either.

@God at play: Sounds great :slight_smile:
Regarding the DarwiinOSC if it sends the same OSC messages as OSCulator does then it should work out of the box.

Again i really wanted balance board support so that’s why i decided to use OSCulator.

@sketchground - that is awesome! Thanks for sharing.

I trawled through the forum a little while back and also found this OSC example
http://forum.unity3d.com/viewtopic.php?t=18824&highlight=udp

cheers,
Lars

Looks great ! Would love to test it too, but the links are no more functional…

@Yann

I have updated the links so they work now. I hope the code is still useful as i haven’t looked at it for quite a while :slight_smile:

@sketchground : this is very kind of you, thank you so much ! :smile:

I haven’t been able to download the link for some reason.

Also, I noticed they are working on a beta version of the wiimote driver with the motion-plus add-on in Osculator.

thanks.

Sorry i had only remembered to update the url in the initial post. But it is all changed now. I just checked it and the updated one still works fine :slight_smile:

Yea i have noticed they are working on a beta for motion plus. Once that is done it should be really easy to extend the script to support it as well.

Good luck with it.

If any of you put it into cool use i would love to see the results :slight_smile:

And if you have any suggestions of improvements of the code please share.

Many thanks for this. Im not going to use it with wii remotes, but rather other osc stuff such as the jazzmutant lemur, monomes, and max4live.

I will post details when I have done something with it, I have a lot to learn about unity so it may take a while.

By the way I think there is a new version of osculator on their website now.

Thanks to the OP for these scripts,

I needed to get data from the Nunchuk and accelerometer x/y/z data so I amended the scripts to display these.

I culled the Balance board though sorry.

The X/Y/Z acceleration for the Wiimote is at the bottom of the Nunchuk section - sorry couldnt be bothered to change all the text positions for a test app.

I’ve attached the amended scripts and the Osculator project file.

233541–8357–$unity_wii_859.zip (8.68 KB)

I have pulled up the project again and added support for a whole range of things. Some of it is listed in my initial post with a deeper explanation on my website linked to in the initial post as well.

This is an awesome update! Thanks.

I think I might prefer this over the plug-in; connecting seems to be a lot more reliable and it doesn’t give me kernel panics. :stuck_out_tongue:

I’ll try to get this integrated into my app and let you know how it goes.

One suggestion: your documentation wasn’t clear that in OSCulator you have to set every item to OSC Routing and localhost:8876. Might want to add that in there for those just starting out.