KhronosGroup / glTF

glTF – Runtime 3D Asset Delivery
Other
7.19k stars 1.14k forks source link

Sounds with GLB / GLTF object #1582

Open SparkieShock opened 5 years ago

SparkieShock commented 5 years ago

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?

najadojo commented 5 years ago

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 commented 5 years ago

Oh and Babylon.js also supports MSFT_audio_emitter.

SparkieShock commented 5 years ago

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

najadojo commented 5 years ago

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.

emackey commented 5 years ago

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.

SparkieShock commented 5 years ago

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.

donmccurdy commented 5 years ago

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.

britxpatusa commented 3 years ago

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?

orpheus commented 2 years ago

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!

emackey commented 2 years ago

For folks interested in audio, take a look at OMI_audio_emitter