Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » General Wiimote and Technology » Programmers Den » WiiMoteLib update for 4 IR sources
Pages: [1]
  Print  
Author Topic: WiiMoteLib update for 4 IR sources  (Read 6970 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +3/-0
Posts: 36
Offline Offline
View Profile
« on: January 29, 2008, 02:06:33 AM »

Hi all,

I've modified the WiimoteLib to support up to 4 points instead of the 2 IR dots the original library tracked.
Could be used for doing 6DOF headtracking like http://idav.ucdavis.edu/~okreylos/ResDev/Wiimote/index.html on windows Tongue
I attached the source..

The RawMidX/Y & MidX/Y as now done very ugly, that still needs to be modified.. sorry about that.. you could just delete the first 2 if's which does the 3 and 4 point avarage.. doesn't always work correctly when 1 of the ir leds go out of screen..


« Last Edit: January 29, 2008, 02:18:52 AM by Helza » Logged
Guru
*
Karma: +11/-1
Posts: 137
Offline Offline
View Profile
« Reply #1 on: January 29, 2008, 02:08:31 AM »

wow great, gonna try it first thing tomorrow;)
Logged
*
Karma: +3/-0
Posts: 36
Offline Offline
View Profile
« Reply #2 on: January 30, 2008, 02:23:52 AM »

Lol, Brain Peek just released version 1.2.1 of the WiimoteLib, the change? he added 4 dot support Smiley
http://www.brianpeek.com/forums/t/783.aspx

download from codeplex: http://www.codeplex.com/WiimoteLib
Logged
Administrator
Site Admin
*
Karma: +18/-0
Posts: 441
Offline Offline
View Profile WWW Email
« Reply #3 on: February 01, 2008, 09:31:54 PM »

Lol, Brain Peek just released version 1.2.1 of the WiimoteLib, the change? he added 4 dot support Smiley
http://www.brianpeek.com/forums/t/783.aspx

download from codeplex: http://www.codeplex.com/WiimoteLib


We like your version better Smiley

Dice
Logged

*
Karma: +3/-0
Posts: 36
Offline Offline
View Profile
« Reply #4 on: February 01, 2008, 10:09:55 PM »

 Cheesy

Well its positive that he's working on it, hopefully the next release won't take that long Smiley
Logged
*
Karma: +3/-0
Posts: 36
Offline Offline
View Profile
« Reply #5 on: February 04, 2008, 11:31:59 AM »

I hacked together the wii test application to send TUIO messages.. but still having some problems
http://www.wiimoteproject.com/index.php?topic=288.0

although i suspect the tuio flash application (OSC server) to not follow the tuio specs..

Logged
*
Karma: +1/-0
Posts: 20
Offline Offline
View Profile
« Reply #6 on: February 05, 2008, 06:15:22 AM »

Thats quite nice, but your IR information is backwards either on x or y axis (I think anyway). When I move left it goes to the right, but when up it goes up. Is that supposed to be that way (seems right if were looking in a mirror I guess). Maybe I'm nuts. ramble ramble ramble.
Logged
*
Karma: +3/-0
Posts: 36
Offline Offline
View Profile
« Reply #7 on: February 05, 2008, 11:36:33 AM »

Do you mean the wiimotelib or my test application wiituio? ( Smiley
Because the 4 point should work without any problems. However you'll need to use the wiiwhiteboard software or other program which uses the calibration function to switch the points around.

Unless you place the camera behind the IR source instead of in front the axis will be inverted. Thats the great thing about Johnny lee's software, he has a neet little calibration function which doesn't care at what angle/upside down or whatever the points are Wink
 

Logged
Pages: [1]
  Print  
 
Jump to:  

Clicky Web Analytics