PDA

View Full Version : flockOfBirds events


giancamati
06-30-2006, 02:43 AM
Hello everybody,

I found that Vizard is so simple in working with FlockOfBirds trackers. Now I woudl ask you for how can I event mapping generated by the FOB? I followed the example in the manual that manages the FOB to move the head position. I would use it to change a 3D cursor represented by a sphere. Where can I find an example? What is the event releted to the FOB?
I found that I can map viz.TRACKER but I think this is not the right event. Isn't it?

Thank you so much.
Giancarlo:D

Gladsomebeast
06-30-2006, 08:56 AM
If you want a model, like a sphere, to take on the postion and orientation of a bird, use the <VizNode>.link( sensor ) command.

sensor = viz.add('flockofbirds.dls');
cursor = viz.add( 'ball.wrl' )
cursor.link( sensor )

giancamati
07-01-2006, 12:18 PM
Thank you very much your help will be very usefull but I was asking for is if there is any kind of....

viz.callback(????Events FOB???, functionHandler)

related to this device.

Thank you so much

Giancarlo:D

Gladsomebeast
07-03-2006, 10:35 AM
There is no event functionality for this sensor. As an alternative, set up a timer that monitors the sensor data and calls a function when the data changes to an event worthy state.