glTF icon indicating copy to clipboard operation
glTF copied to clipboard

Sounds with GLB / GLTF object

Open SparkieShock opened this issue 5 years ago • 10 comments

So, I've tried looking this up and there's little to no info on including sound bites with and object for GLB / GLTF. Being able to loop some MP3 snippet within an object would be handy .. especially for exporting stuff into oculus.

Where do we stand on sound for GLB objects?

SparkieShock avatar Mar 13 '19 05:03 SparkieShock

We at Microsoft developed an extension MSFT_audio_emitter that we implemented for Windows Mixed Reality environment. As specified it doesn't allow MP3 but I believe we can change that at this point.

najadojo avatar Mar 13 '19 15:03 najadojo

Oh and Babylon.js also supports MSFT_audio_emitter.

najadojo avatar Mar 13 '19 15:03 najadojo

Interesting .. but how does one use this with blender and the glb node?

SparkieShock avatar Mar 15 '19 13:03 SparkieShock

We built a custom tool that would add audio to a GLB. It was based on 3D Viewer but we haven't gotten it to a place where we would like to release it to the public.

najadojo avatar Mar 15 '19 16:03 najadojo

how does one use this with blender

Unfortunately the Blender exporter doesn't support this (at least currently. Contributions welcome). So modifying the glTF after export is probably the only way for now.

emackey avatar Mar 15 '19 19:03 emackey

Hmm .. well I have zero idea how to modify it so I'll just have to wait for you guys to implement sound into the Blender Exporter. Gimme a nod when it's in .. I'll be happy to test it out a lot.

SparkieShock avatar Mar 20 '19 05:03 SparkieShock

Important to note here that MSFT_audio_emitter is a vendor extension for Microsoft tools – the core glTF specification does not support audio, and no Khronos extensions are currently available for audio. Unless that changes, I don't think this will be available in the official Blender exporter.

donmccurdy avatar Mar 20 '19 15:03 donmccurdy

any updates on this? im way over my skis with blender ...but im adding retro items to a room (arcade/pinball) so we can launch in VR and then play games...i would like to have sounds in the room (ambient) but the format export is GLB...is there no way of exporting a GLB with sound?

britxpatusa avatar May 29 '21 13:05 britxpatusa

We built a custom tool that would add audio to a GLB. It was based on 3D Viewer but we haven't gotten it to a place where we would like to release it to the public.

Hey there, could you give any direction of how one would go about building this tool themselves? I'll probably be tinkering with ways to get this working and could use any support. Else, if the tool is already now public, great!

orpheus avatar Jan 16 '22 05:01 orpheus

For folks interested in audio, take a look at OMI_audio_emitter

emackey avatar Jan 17 '22 14:01 emackey