BrianPeek.com
A Compendium of Random Uselessness

Found3 and Found4?

rated by 0 users
This post has 10 Replies | 2 Followers

Posted: Sat, Dec 22 2007 11:56 PM
Hi, I checked the forum for this and couldn't find anything; since there's no search feature, I couldn't be sure. Did Found3 and Found4 (and the other related fields) get removed from the library? These are used by the sample programs at http://www.cs.cmu.edu/~johnny/projects/wii/ , but I can't get those projects to build without commenting out the relevant lines. It was built using version 1.1 I think, and my Wiimote can't seem to connect using the older versions.
Top 10 Contributor
Male
Posts 1,384
Brian Peek replied on Sun, Dec 23 2007 12:00 AM

Looks like something Johnny added on his own.  My lib has only ever tracked 2 IR points.  I'll look into adding it officially for the next version.

replied on Sun, Dec 23 2007 12:04 AM
Thanks for the prompt response. :)
Top 75 Contributor
Posts 2

I've modifed the wiimotelib to support 4 ir dots, its just an dirty hack, but it works :)

Although the midx/y and rawmidx/y could be done a little better, if a ir dot becomes ofscreen its sometimes doesn't calculate right.. but someone who can do a little math can easily fix that :) 

Top 10 Contributor
Male
Posts 1,384
Brian Peek replied on Tue, Jan 29 2008 12:58 PM

I just updated the official distribution with IR3/4.  I was waiting to release with several other things added, but with all of the confusion and questions, I figured it was best to get it up there ASAP.  Head over to CodePlex to get the new version...

 

replied on Sun, May 3 2009 12:08 PM

hello, can somebody please tell me how to track point 3 and 4 / their middlepoint? thank you!

Top 10 Contributor
Male
Posts 1,384

If you have 3 or 4 IR sources, they will automatically be tracked.  There is no automatic midpoint for 3 and 4...just 1 and 2.

replied on Wed, May 6 2009 5:30 PM

thanks for your reply, brian.

wouldn't it be useful, to implement midpoint calculation when using 4 ir sources? you could choose the closest 2 points as one hand / pair.

Top 10 Contributor
Male
Posts 1,384

Strictly my opinion:

I think it gets tricky on how to calculate midpoints with the 4 IRs.

  • Do you do a midpoint between all possible combinations?  Like Mid12, Mid23, Mid34, Mid13, Mid14?
  • Do you do a single global midpoint between all recognized points?
  • What happens when a source drops out or they get rearranged as the Wiimote likes to do occasionally?

I've never come up with a decent solution beyond trying to do all of them, and then I'm not sure it fits within the scope of the library itself, which is why I left it up to the user to do what they need or want with the points.

I'm open to any and all ideas on the matter and will happily implement what people feel is important.  I'm just not sure what that is.  Smile

replied on Fri, May 8 2009 11:29 AM

well i think the most useful case would be when you have 2 gloves with each 2 ir sources.

take always the closest two ir sources as one hand / pair and calculate their midpoint. if one ir source drops i would interpret this as a special action e.g. this could simulate a mouse click (bring the 2 ir sources of one glove close together and they will be seen as one point for the wii controller / one source will be dropped). so you could use two gloves with each 2 infrared lights to play a little bit minority report, like it's already done in some videos on the net.

anyways you could be right that this is out of scope for the library or what the library was ntended for, however it doesn't restrict users in what they do (if they don't want to use this function they shall just not use it) and it should be a realisitic usage case. shouldn't be to hard to implemenet this by one's own though, but if it's alreay included... less work ;)

Top 10 Contributor
Male
Posts 1,384

And that's the next problem.  :)

Your example is for gloves where the two closest points create the midpoint.  That may not work for everyone's needs.  I've always seen my library as being a "hey, here's data from the Wiimote...do something with it" kind of setup.  I think this gives the maximum flexibility for everyone.

<shrug>

Smile

Page 1 of 1 (11 items) | RSS