stechyo / godot-steam-audio

Immersive spatial audio extension for Godot, using Valve's SteamAudio
MIT License
326 stars 7 forks source link

Suggestion: Editor importing with automatic SteamAudioGeometry #47

Closed mrjshzk closed 5 months ago

mrjshzk commented 6 months ago

I know this is not your focus, but let's say I have have hundreds of GLB/FBX files and normally, I just open them by clicking on them twice, opening the new import tab, where you can add static/dynamic colliders to the meshes and whatnot. I was wondering if it would be able to have something like this in the new import tab where you can add a SteamAudioGeometry without having to make a new inherited scene! Thanks!

mrjshzk commented 5 months ago

Untitled-1 Something like this. Don't know if the Godot importing API can be used this way, but I think it would be very useful. In the couple days I'll investigate if this is possible.

stechyo commented 5 months ago

Hi, I don't think I can extend the import dialogue window, but with #51 you can name the objects with "-sadg" or "-sasg" at the end (depending on whether you want dynamic or static geometry), much like the import hints already present in Godot, and it will generate geometry for you as long as you set the post-import script on your GLTF scene to addons/godot-steam-audio/src/post_import.gd .

mrjshzk commented 5 months ago

Awesome, thanks!