WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

depth measurement with sensorbar?

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
sonderformat



Joined: 17 Dec 2006
Posts: 4

Digg It
PostPosted: Thu Mar 29, 2007 10:36 am    Post subject: depth measurement with sensorbar?

hi everyone,

is there the possibility to measure the depth (with the sensorbar)?
i mean the distance between the wiimote and the sensorbar to get
some 3d informations. is there a way to do this with triangulation?

Perhaps it is possible to use IR-Receptor instead of IR-Sender.
What does "dot1size" do?

For a drawing tool in the programm vvvv from meso
i would like to measure the distances/track the movements in front of the screen.

As example:
When i press the A-Button i get the current XYZ-Position of the Wiimote
named Point "A". I move the wiimote around. When i release the "A-Button" i get Point "B" to draw the lines between the points.

looking forward to discuss the possiblities.
_________________
*********************
user: sonderformat
task: wiimote to VVVV using glovepie

*********************
Back to top
View user's profile Send private message
TiagoTiago



Joined: 20 Jan 2007
Posts: 710
Location: Brasil

Digg It
PostPosted: Thu Mar 29, 2007 7:05 pm    Post subject:

check Carl's 5dof script, I believe it does that (and I once made a code to do that as well...)
_________________
please put the scripts on the wiki so they dont get lost as new stuff is posted!
phpBB doesnt like me,somtimes it will forget to warn me about new replies to threads I asked it to,if you see a thread I should have responded, could please email me?
Back to top
View user's profile Send private message Send e-mail
SwedishFrog
Site Admin


Joined: 25 Jan 2007
Posts: 273
Location: New York

Digg It
PostPosted: Thu Mar 29, 2007 7:57 pm    Post subject:

There's a couple of ways to go about doing this.

What you need to know is this:

As you get closer to the Sensor Bar, The IR dots grow in size. As you move back, they shrink.

However, the values for dot size have limited precision, which brings me to the second method:
As you get closer to the Sensor Bar, the two IR dots you track appear to be further apart. They get closer as you move back. This allows for a much nicer estimation of distance from the SB. FYI, nintendo's sensor bars have the dots separated by 7.5 inches.

To capture instantanious pointer data, use the Pressed function. The code will look like this:

Code wrote:
If pressed (wiimote.a)
//Store pointer info into variables here
endif



I hope that helps you
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group