Main > Lightguns
GUNS: Mayflash DolphinBar Wii controller interface
<< < (6/9) > >>
thet0ast3r:
I think it`s not possible to get a plane simply with 2 points and their size, I recently looked at the points output of the wiimote, and the point size is pretty jaggy.
if you get near the edge, the points become smaller, because the camera just sees a part of it (I don`t think wiimote cameras are "focused" that well). I noticed this behavior on the outside 5-10 % of the wiimotes field of view. I`d love to try to write an algorithm with which the wiimote becomes more accurate and the need for calibration for every viewpoint is eliminated.
However, I had to work with glovepie & ppjoy until now, as I`m not that familiar with hooking up the native wiimote protocol. But glovepie scripting is pretty exhausting for me (it`s some sort of ?basic, but not that well documented, no support for arrays, functions etc..).
Additionally, ppJoy requires a driver signature enforcement overrider.
Howard_Casto:
Remember you also have the x,y,z of the wiimote, so an angle is also present.  In addition the distance between dots is a fixed point so a increase or decrease in the default value would mean a distance change and we can assume the dot that looks smaller is the one further away.  It would take some hardcore trig I'm guessing. 

There's lots of info about the wiimote protocol here 

http://wiibrew.org/wiki/Wiimote

Some of it is written in a confusing manner or is outdated, so that along with my eye is what's taking so long. 
Howard_Casto:
Ugh... I coded too long... the world is a blurry mess. 

I thought I was going to have to make a wrapper for vjoyinterface.dll but I searched GitHub and SailorSat had already written one.  Nice!


So all that's left is to finish implementing all the wiimote junk and hook everything up. 
thet0ast3r:
Don`t strain your eye too much  ;)
I think the aim wouldn`t be too precise if we used the brightness values.
It should be possible if we use 4 ir points, it should be way more accurate than using 2, as (I think it should work ;D) with 4 we could track the exact location of the wiimote, hence eliminating the player`s position almost completely out of the equation.

EDIT: I don`t think its a good idea to use the size of the points, because its technically not the size, but the strength, and this is dependent on the angle and the type of led so I guess using it the system would be more prone to errors.
Howard_Casto:
4 points is good in theory but I don't know how well it would work in practice.  I have to stand 3ft+ away from my cab in order to display both dots on the screen reliably and still be able to move to all 4 corners of the screen.  I can only imagine how much further back one would have to stand to keep 4 on screen at all times.  I intend to add a 4 point mode anyway, I just don't know if anyone will find a practical use for it. 
Navigation
Message Index
Next page
Previous page

Go to full version