sOuSiX
01-05-2009, 07:48 PM
Hello,
I am just making a plugin to manage differents sources of sound in a scene. I have already drawing a 3d object representing a sound. I am also using the FMOD library to play sound.
The object representing the sound is like that : clik here (http://sousix.defrag.fr/images/soundObject.jpg)
When the current camera enter in the object (enter into the sphere) the sound need to be listened, else the sound is not listened.
My question is : How can i know if the current camera/view is inside a sphere? How kind of event can i use to know if the camera is moving or not and getting the position of the camera/view?
Scuse me if it is questions of newbies.
Scuse me for my english.
Thx a lot if you answer.
I am just making a plugin to manage differents sources of sound in a scene. I have already drawing a 3d object representing a sound. I am also using the FMOD library to play sound.
The object representing the sound is like that : clik here (http://sousix.defrag.fr/images/soundObject.jpg)
When the current camera enter in the object (enter into the sphere) the sound need to be listened, else the sound is not listened.
My question is : How can i know if the current camera/view is inside a sphere? How kind of event can i use to know if the camera is moving or not and getting the position of the camera/view?
Scuse me if it is questions of newbies.
Scuse me for my english.
Thx a lot if you answer.
