3d sound moving along with an object
by yvan vander sanden · in Torque 3D Beginner · 05/05/2010 (1:45 pm) · 0 replies
Hey,
i' m just starting with torque and my project needs sound that moves along with an object (AIPlayer or Static). I made a more primitive version of this in Irrlicht last year. Here's a youtube video of a session:
http://www.youtube.com/watch?v=2XFQdESSfP8
Now where i' m stuck at the moment is having an object play a sound all the time, and have it followed arround. I've examined all datablocks, but they all have entries for sound triggers, but not for a single continuing sound that follows the object.
I've also looked into the (slightly outdated) "3d programming all in one" where i learned about the serverPlay3D function. This is not working for me though, since it only starts the sound at a certain point, it does not make is follow the object.
For now it's not that important to me that the sound is played on the server, since my program is not meant as multiplayer yet. (Although that could be a lot of fun later on.)
Is there an easy way to accomplish this? I was also looking into ways to 'attach' the sound to an object. There are some post about that on the forums but nothing with a real answer. I guess 'mounting' a sound is not the way to go?
Anyway, thanks for you time.
yvan
i' m just starting with torque and my project needs sound that moves along with an object (AIPlayer or Static). I made a more primitive version of this in Irrlicht last year. Here's a youtube video of a session:
http://www.youtube.com/watch?v=2XFQdESSfP8
Now where i' m stuck at the moment is having an object play a sound all the time, and have it followed arround. I've examined all datablocks, but they all have entries for sound triggers, but not for a single continuing sound that follows the object.
I've also looked into the (slightly outdated) "3d programming all in one" where i learned about the serverPlay3D function. This is not working for me though, since it only starts the sound at a certain point, it does not make is follow the object.
For now it's not that important to me that the sound is played on the server, since my program is not meant as multiplayer yet. (Although that could be a lot of fun later on.)
Is there an easy way to accomplish this? I was also looking into ways to 'attach' the sound to an object. There are some post about that on the forums but nothing with a real answer. I guess 'mounting' a sound is not the way to go?
Anyway, thanks for you time.
yvan