itaVA_example_tracked_listener.m 606 Bytes
Newer Older
1
2
3
4
%% itaVA tracked listener example code
% This assumes you already have set up a virtual scene without listener

% Create itaVA and connect
5
va = itaVA( 'localhost' )
6
7
8
9
10

% Create a listener
L = va.createListener( 'itaVA_Tracked_Listener' );

% OptiTrack tracker conneection and listener updates
11
12
va.setTrackedListener( L ) % For virtual scene / rendering
va.setTrackedRealWorldListener( L ) % For CTC reproductions
13
14
15
16
17
18
19
20
21
va.connectTracker
pause( 12 ) % Observe how you can move the virtual listener in VAGUI
va.disconnectTracker

% Remove listener again
va.deleteListener( L )

% Now close connection
va.disconnect()