≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Sound
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b][/b] wrote: As far as I can tell, after you've started the engine, you need to do at least the following to make a CopperLicht sound from a local source file and then play it: [code]var sound = new CL3D.SoundSceneNode(); sound.TheSound = CL3D.gSoundManager.getSoundFromSoundName("bell.wav", true); sound.startSound(); [/code] CL3D.gSoundManager is made at startup from CL3D.SoundManager. (Neither it nor the property "TheSound" shows up in the documentation.) To make it positional (louder when closer and softer when farther away), a few properties needed to be changed from defaults (before startSound):[code] sound.MinDistance = 100; // default is 0 sound.MaxDistance = 10000000; // default is 0 sound.Volume: 1; // default is 0 yourScene.getRootSceneNode().addChild(sound); sound.Pos = yourDesiredPositionVect3d; sound.updateAbsolutePosition(); [/code] Anyone else doing this the same way, a different way, a better way? Let me know. Thanks![/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact