I'm testing instancing in 3d, you can play the same video on multiple objects but unfortunately it appears you can't attach the 3Dsound to multiple nodes.minimy wrote: Fri Aug 22, 2025 4:05 pm All is working, tested and really happy with your code. 3Dsound source fade in distance. Great!!![]()
Yes, i try with canvas too. Thanks again for share!
So I've added an array of sounds which isn't ideal but it means you can show the same MPG on multiple objects and they can play the same sound on them via index.
Though if your moving in a game and the player is out of range you can detach the node from an entity and attach it to the closest Entity playing the video.
but what if you have a scene like a drive in movie and the sounds are emanating from multiple speakers how are you supposed to do that? It's actually wasteful on memory as you need to load the sound multiple times.
So I need to limit the size of the array.
I can also abstract it to do mono and stereo by seting the sound instances as mono=0, left=1, right=2
and when I decode the MP2 I can create 3 temp files mono left right then load them to the array.
Then you can create 2 nodes per objects if you wanted the entity to play stereo in 3D
MPG_GetSound3D(mpg,instance,#Left)
MPG_GetSound3D(mpg,instance,#right)