[WiiFlash] The Wiimote z-Depth?
Merrill, Jason
jason.merrill at bankofamerica.com
Tue Dec 18 18:22:15 PST 2007
OK, but what exactly are the two points? I don't mean to be dense, but I
thought the IR points were the actual lights inside the sensor bar. So
what is the difference between an IR point's x and the sensor x? If
it's actual points in the sensor, then can't you just measure that
distance with a ruler? LOL. This is confusing. You said, "So if one
point is exactly in the middle of the screen" - how is a "point"
(whatever a point is) in the "middle of the screen" (when the screen is
not part of the detection hardware)? What then does Sensor X and Sensor
Y mean?
Jason Merrill
Bank of America
L&LD GT&O
eTools & Multimedia Research & Development
>>-----Original Message-----
>>From: wiiflash-bounces at osflash.org
>>[mailto:wiiflash-bounces at osflash.org] On Behalf Of Patrick
>>Matte | BLITZ
>>Sent: Tuesday, December 18, 2007 6:25 PM
>>To: wiiflash at osflash.org
>>Subject: Re: [WiiFlash] The Wiimote z-Depth?
>>
>>Well it's just the distance between the 2 points... the
>>points x and y values are from 0 to 1. So if one point is
>>exactly in the middle of the screen, it's x is 0.5, and the
>>other point could be at 0.75. so you have a distance of 0.25
>>in the x axis. Do the same for the y axis.
>>
>>And the formula to get the distance between two points is
>>Math.sqrt((x*x)+(y*y)); But the formula is conveniently
>>available in the point class as a static method.
>>flash.geom.Point.distance(point1,point2);
>>
>>
>>BLITZ | Patrick Matte - 310-551-0200 x214
>>
>>-----Original Message-----
>>From: wiiflash-bounces at osflash.org
>>[mailto:wiiflash-bounces at osflash.org] On Behalf Of Merrill, Jason
>>Sent: Tuesday, December 18, 2007 2:17 PM
>>To: wiiflash at osflash.org
>>Subject: Re: [WiiFlash] The Wiimote z-Depth?
>>
>>OK -thanks! So what does:
>>
>>var distance:Number =
>>flash.geom.Point.distance(wiimote.ir.point1,wiimote.ir.point2);
>>
>>...really tell you? That's the distance of what?
>>
>>
>>Jason Merrill
>>Bank of America
>>L&LD GT&O
>>eTools & Multimedia Research & Development
>>
>>
>>
>>
>>
>>
>>>>-----Original Message-----
>>>>From: wiiflash-bounces at osflash.org
>>>>[mailto:wiiflash-bounces at osflash.org] On Behalf Of Patrick Matte |
>>>>BLITZ
>>>>Sent: Tuesday, December 18, 2007 4:53 PM
>>>>To: wiiflash at osflash.org
>>>>Subject: Re: [WiiFlash] The Wiimote z-Depth?
>>>>
>>>>I don't think you can figure out the real distance per se.
>>>>The distance between the two points only gives you a reference.
>>>>
>>>>But what you could do is walk one meter from the ir sensor and save
>>>>that distance value. Then walk 4 meters from the ir emitter
>>and save
>>>>that value. Then you could extrapolate any value in between
>>those two.
>>>>
>>>>
>>>>BLITZ | Patrick Matte - 310-551-0200 x214
>>>>
>>>>-----Original Message-----
>>>>From: wiiflash-bounces at osflash.org
>>>>[mailto:wiiflash-bounces at osflash.org] On Behalf Of Merrill, Jason
>>>>Sent: Tuesday, December 18, 2007 1:47 PM
>>>>To: wiiflash at osflash.org
>>>>Subject: [WiiFlash] The Wiimote z-Depth?
>>>>
>>>>Hey, Fabien's question reminded me of a related question I
>>had. How
>>>>do you all figure out the z-depth of the Wiimote from the
>>Sensor bar?
>>>>Do you use SensorZ somehow or ir1 and
>>>>ir2 with some trig functions? have any sample Actionscript
>>code for
>>>>this? Thanks.
>>>>
>>>>Jason Merrill
>>>>Bank of America
>>>>L&LD GT&O
>>>>eTools & Multimedia Research & Development
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>WiiFlash mailing list
>>>>WiiFlash at osflash.org
>>>>http://osflash.org/mailman/listinfo/wiiflash_osflash.org
>>>>
>>>>_______________________________________________
>>>>WiiFlash mailing list
>>>>WiiFlash at osflash.org
>>>>http://osflash.org/mailman/listinfo/wiiflash_osflash.org
>>>>
>>
>>_______________________________________________
>>WiiFlash mailing list
>>WiiFlash at osflash.org
>>http://osflash.org/mailman/listinfo/wiiflash_osflash.org
>>
>>_______________________________________________
>>WiiFlash mailing list
>>WiiFlash at osflash.org
>>http://osflash.org/mailman/listinfo/wiiflash_osflash.org
>>
More information about the WiiFlash
mailing list