emiliano
New Member
Get rich or die trading.
Posts: 21
|
Post by emiliano on May 12, 2011 13:32:53 GMT -5
Professor on the wiki I think that there's a little error on lab 3 in the sound section:
# HINT - Creating a 3D audio manager # Note that 'reference_point' could be the nodepath of a listener's location audio3d = Audio3DManager.Audio3DManager(base.sfxManagerList[0], <reference point>) audio3d.setDropOffFactor(<drop off factor>)
should be
# HINT - Creating a 3D audio manager # Note that 'reference_point' could be the nodepath of a listener's location audio3d = Audio3DManager(base.sfxManagerList[0], <reference point>) audio3d.setDropOffFactor(<drop off factor>)
There's the repetition of Audio3DManager 2 times....
I'm doing lab3, so far so good!
|
|
|
Post by Samuele Sabbatini on May 12, 2011 16:41:11 GMT -5
No emiliano, the code works!! It depends on how you import the Audio3DManager! if you do an import like this: from direct.showbase import Audio3Dmanager
you have to use the professor code with Audio3Dmanager.Audio3Dmanager(). Indeed if you do an import like this: from direct.showbase.Audio3Dmanager import Audio3Dmanager
you have to use your code with only 1 Audio3Dmanager Cheers, Samuele
|
|