[WiiFlash] The Wiimote z-Depth?
Brad
brad at rustpunk.co.za
Fri Dec 21 01:16:17 PST 2007
Patrick, I'd be very keen to take a look at this! Any ideas when it
might be available?
Thanks,
Brad.
Patrick Matte | BLITZ wrote:
> I made a swf that shows exactly how the ir works. I'll clean it up a bit and send it the Joa and Thibault so they can include it the docs.
>
> BLITZ | Patrick Matte - 310-551-0200 x214
>
> -----Original Message-----
> From: wiiflash-bounces at osflash.org [mailto:wiiflash-bounces at osflash.org] On Behalf Of alex mitchell
> Sent: Tuesday, December 18, 2007 6:42 PM
> To: wiiflash at osflash.org
> Subject: Re: [WiiFlash] The Wiimote z-Depth?
>
> Hi Jason,
>
> As I understand it, the IR points are actually the positions at which the IR
> sensor in the front of the wiimote "sees" the two LEDs. So "one point is
> exactly in the middle of the screen" would mean that one of the LEDs is in
> the center of the IR sensor's image of the world. So yes, they are the
> actual lights.
>
> The Sensor X and Sensor Y refer to the data from the accelerometer inside
> the wiimote.
>
> Alex
>
>
> On 12/19/07 10:22 AM, "Merrill, Jason" <jason.merrill at bankofamerica.com>
> wrote:
>
>
>> 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
>>>>
>>>>
>> _______________________________________________
>> 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