[WiiFlash] WiiFlash Server 0.4

Merrill, Jason jason.merrill at bankofamerica.com
Mon Mar 10 14:06:46 PDT 2008


Thanks Patrick, I'll try your approach out.  
 
Anyone know about WiiFlash 0.4? It was mentioned in December it would
have z-depth and was coming soon, but nothing since then.
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog
<http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx>  &
subscribe
<http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7D&Source=http%
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
ts%2FPosts%2FArchive%2Easpx> . 




 


________________________________

	From: wiiflash-bounces at osflash.org
[mailto:wiiflash-bounces at osflash.org] On Behalf Of Patrick Matte | BLITZ
	Sent: Monday, March 10, 2008 4:41 PM
	To: wiiflash at osflash.org
	Subject: Re: [WiiFlash] WiiFlash Server 0.4
	
	

	// get close to the IR emitter and calculate the maximum
distance between the two points

	var backDistance:Number =
Math.round(Point.distance(wiimote.ir.point1, wiimote.ir.point2)*10000);

	// get away from the IR emitter and calculate the minimum
distance between the two points

	var frontdistance:Number =
Math.round(Point.distance(wiimote.ir.point1, wiimote.ir.point2)*10000);

	// calculate difference between the two distances

	var totalDistance:Number = backDistance - frontDistance;

	 

	private function enterframeEvent(event:Event):void{

	                // make sure both points are visible, otherwise
you can't calculate the distance between the two points

	                var haveDistance:Boolean;

	                if(!isNaN(wiimote.ir.point1.x) &&
!isNaN(wiimote.ir.point2.x)){

	                                haveDistance = true;

	                }

	                if(haveDistance){

	                                // calculate the current
distance between the 2 points

	                                var distance:Number =
Math.round(Point.distance(wiimote.ir.point1, wiimote.ir.point2)*10000);

	                                // calculate distance between
the current distance and the backdistance

	                                var depthDistance:Number =
backDistance - distance;

	                                // set to 0 if smaller than 0

	                                depthDistance =
Math.max(depthDistance, 0);

	                                // set to totalDistance if
greater than totalDistance

	                                depthDistance =
Math.min(depthDistance, totalDistance);

	                                // calculate the position of the
current distance relative to the totaldistance, outputs a value from 0
to 1;

	                                depthFactor = (totalDistance -
depthDistance)/totalDistance;

	                                // get a z value from 0 to
25000, you can change 25000 for any value that you need...

	                                z = depthFactor * 25000;

	                }

	}

	 

	BLITZ | Patrick Matte 310-551-0200 x214

	From: wiiflash-bounces at osflash.org
[mailto:wiiflash-bounces at osflash.org] On Behalf Of Merrill, Jason
	Sent: Monday, March 10, 2008 12:17 PM
	To: wiiflash at osflash.org
	Subject: Re: [WiiFlash] WiiFlash Server 0.4

	 

	Not in feet, just a percentage change is fine, but the
algorithms we've tried produce data that jumps around a lot.  On the
Wiiflash site, it said z-depth was coming in the next version... no??
Perhaps if you have code that smooths out depth you are caluculating
from the IR points you could post it so we could benefit? Thanks.

	 

	Jason Merrill 
	Bank of America 
	GT&O L&LD Solutions Design & Development 
	eTools & Multimedia 

	Bank of America Flash Platform Developer Community 

	 

	Are you a Bank of America associate interested in innovative
learning ideas and technologies?
	Check out our internal  GT&O Innovative Learning Blog
<http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx>  &
subscribe
<http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7D&Source=http%
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
ts%2FPosts%2FArchive%2Easpx> . 

	
	
	

	 

		 

________________________________

		From: wiiflash-bounces at osflash.org
[mailto:wiiflash-bounces at osflash.org] On Behalf Of Patrick Matte | BLITZ
		Sent: Monday, March 10, 2008 2:57 PM
		To: wiiflash at osflash.org
		Subject: Re: [WiiFlash] WiiFlash Server 0.4

		You need the depth in feets ? I wish I could give you
the right equation but I don't know it...

		 

		But maybe you could hardcode some values. Put yourself
at 1 foot from the sensor, take note of the distance between the two
points, then do it at 2 feets, 3 feets, 4 feets, 5 feets, etc... Then,
when you're application is running, compare the distance between the two
points with the hardcoded values, find the nearest distance and
extrapolate the value. If you do it for each foot, it should be pretty
close.

		 

		You may also try with only two values, like 1 foot from
the IR and then 12 feets from it and extrapolate that. I think that's
what I've been using for an installation we did last year. It worked
great, but then again, we didn't really need exact values..

		 

		 

		BLITZ | Patrick Matte 310-551-0200 x214

		From: wiiflash-bounces at osflash.org
[mailto:wiiflash-bounces at osflash.org] On Behalf Of Merrill, Jason
		Sent: Monday, March 10, 2008 9:09 AM
		To: wiiflash at osflash.org
		Subject: [WiiFlash] WiiFlash Server 0.4

		 

		Any news on when WiiFlash Server 0.4 will be released
(which is supposed to have z-depth)?  

		 

		z-depth is an extremely important feature for us and the
IR data is still extremely rough and unreliable - hard to get good
smooth z-depth using distance between IR points.  

		 

		If the developers are listening, thanks and keep up the
good work.

		 

		Jason Merrill 
		Bank of America 
		GT&O L&LD Solutions Design & Development 
		eTools & Multimedia 

		Bank of America Flash Platform Developer Community 

		 

		Are you a Bank of America associate interested in
innovative learning ideas and technologies?
		Check out our internal  GT&O Innovative Learning Blog
<http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx>  &
subscribe
<http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7D&Source=http%
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
ts%2FPosts%2FArchive%2Easpx> . 

		 

		 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/wiiflash_osflash.org/attachments/20080310/630c6793/attachment-0001.html 


More information about the WiiFlash mailing list