SlipperyBrick Posted February 26, 2014 Share Posted February 26, 2014 I wasn't quite sure if this thread fell in general discussion or in here, oh well I have a question about spatial sound/3D sound in Leadwerks: Steam Indie Edition. I am not to sure whether this is a some sort of bug or maby a feature that hasn't yet been added in. Basically I have made a pivot in my level and attached the 'Noise.lua' script to the pivot and my .wav file I want to play. I have made a CSG box in front of a door in my level and that is linked to the the pivot in the flowgraph editor. The collision/trigger works fine and when I walk into my CSG box the sound plays. However. The sound isn't emitting from its origin where the pivot is, it just sounds centered as if the sound is attached to the player (which it isn't) its like the sound isn't panning from the correct position. Any help would be appreciated Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted February 26, 2014 Share Posted February 26, 2014 you can set the 3d position of a sound with http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/source/sourcesetposition-r323 dont have read noise.lua but there should be something like this Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Rick Posted February 26, 2014 Share Posted February 26, 2014 Note you need a listener also. Just modify Noise.lua to follow a target and set the sources position that's created in Noise to it's target position. Quote Link to comment Share on other sites More sharing options...
SlipperyBrick Posted February 26, 2014 Author Share Posted February 26, 2014 Still no luck with the above guys Quote Link to comment Share on other sites More sharing options...
SlipperyBrick Posted February 26, 2014 Author Share Posted February 26, 2014 DudeAwesome your script worked in a little test project I made however I want the listener to follow the camera of the player so when we turn the panning of the sound only happens when the player is moving around so it sounds like its coming from a source through the player if that makes sense Quote Link to comment Share on other sites More sharing options...
SlipperyBrick Posted February 26, 2014 Author Share Posted February 26, 2014 I found my problem. Thanks for the responses guys! LE needs your sounds to be in mono for 3D spatial sounds Quote Link to comment Share on other sites More sharing options...
gamecreator Posted February 26, 2014 Share Posted February 26, 2014 Interesting. Thanks for posting the solution. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.