hello
 
I've created a Viewer-object, an AudioDevice and a ViewingPlatform and it works.
A KeyNavigationBehavior operate on the TransformGroup of the View-Branch, so i can walk through the 3D world.
Then i have placed a PointSound in the middle of the scene. The sound is playing.
 
When i change my position in the scene, the volume of sound on left and right ear is changing.
But this effect is only correct, when i stay direct in negative z-axis.
The rotation of the head has no effect of the stereo-sound!!!
 
Is it a bug or have i forgotten to implement anything?
 
 
-------------------------------------------------------------------------------------------
--- THE VIEWER -----------------------
viewer = new Viewer(canvas3D);
viewplatform = new ViewPlatform();
viewingplatform = new ViewingPlatform();
viewingplatform.setViewPlatform(viewplatform);
 
view = viewer.getView();
view.attachViewPlatform(viewplatform);
 
physicalenvironment = viewer.getPhysicalEnvironment();
audioDev = viewer.createAudioDevice();
physicalenvironment.setAudioDevice(audioDev);
 
tg_position = viewingplatform.getViewPlatformTransform();
tg_position.addChild(viewplatform);
 
--- NAVIGATION -----------------------
keynavigator = new KeyNavigationBehavior(tg_position);
keynavigator.setSchedulingBounds(...);
 
--- THE SOUND-----------------------
psound= new PointSound();
set.......();
 
 
bg_root = new BranchGroup()
bg_root.addChild(psound);
bg_root.addChild(viewingplatform);
bg_root.addChild(keynavigator);
-------------------------------------------------------------------------------------------
 
Rico
 

Reply via email to