I am creating a walkthrough type scene. I need to be able to play a sound continuously but that can only be heard along a certain path. I don’t want the sound to start all over every time you get on that path, but I also don’t want to hear it at all while I am NOT along the path. Can anyone help me do this? I am pretty new at all of this stuff and have little to no knowledge of python. If there is a way to do it all in blender that would be great or if you can tell me how to plug it in with python I would appreciate it.
here i made a blend for something like this very recently
http://www.zerooneentertainment.org/blengine/blends/fadeAway.zip
Blengine
I don’t hear any sounds on your demo when I downloaded it and played it and approached the cubes. Do i need to place sounds with the same names where you have them linked to on your desktop? I se that you are using python here. Is python already installed on blender2.5 or do I need to install it?
So this python adds volume or what?
I hear the sounds perfectly…
Btw did u make those sounds urself? lol
i think youll need to install python… check your blender dos window or whatever, if you see errors, chances are you dont have python installed
So this python adds volume or what?
yeah the python code just lowers and raises the volume based on what sound station that character is at
Btw did u make those sounds urself? lol
yep lol
nope, doesn’t need it (full install). Blender 2.25 comes with enough python to do this.
you need to be able to play sounds in blender. This means reasonable sound drivers (and hardware) and your not running another app that may be playing sound.
nice, I may be using this (wasn’t aware it was possible)
ok…duh!..i figured out what i did. I had just recently installed some of the older versions of blender. so when i tried to open your file it opened it with one of those. I opened the file with 2.25 and yours is working perfectly! It is hilarious! I have had some limited success using your player in my scene. Anyway…i am still struggling a little bit. because what i need is a very long yet thin straight line within which you can hear the audio. And when you are not within that line I don’t want to hear anything. I am sure that it should be obvious what it is that i should do but i can’t seem to see it. The near sensor doesn’t seem to work because the sensor doesn’t seem to span the whole of an entire long thin object. I have been using invisible ghost long thin rectagles to try to mark where it is that I want the sound to be triggered. But I can’t figure out how to make the full sound while I am in contact with that object and absolutley no sound when I am not in contact with that object.
blengine
You are awesome! This was exactly what I needed! Thank you very much! With a little tweeking I was able to fit it right into what i was doing. now I just have to finish everything else, but I think that was my biggest hurttle.
As a little remark: game engine sound support is completely broken on all platforms except win32.
:o that sucks
no it isn’t
it just isn’t as likely to work, or as well.
blengine
Well…everything was working wonderfully until i saved the file as a runtime. After saving it as a runtime, the music simply started at the beginning and stopped with the collision of the sphere and sound plane. I even went back and saved your demo as a runtime and the same thing happened. sorry to bother you with this again. If you are able to help me with this i would greatly appreciate it. I am not sure what is wrong? It works fine within Blender itself
are you saving a dynamic runtime? (you shouldn’t need to be)
if so make sure the python dll and the fmod dll are avaliable.
I wasn’t saving it as a dynamic runtime. But that seems to be the only way to get it to work. When I simply save it as a runtime it gets all buggy. I also tried saving yours as a normal runtime and it also didn’t run right. Have you tried so save it as a runtime on your end. But I found out after I posted my last reply that It will run normally as aa dynamic runtime(with the dll’s of course)
Ok now what is the differnce between a “normal” runtime and a “dynamic” runtime?