overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
132 stars 47 forks source link

Audio Zone Properties #847

Closed HifiExperiments closed 3 months ago

HifiExperiments commented 4 months ago

Move the audio zone properties from the domain settings to entity properties (the domain settings are still there, but marked deprecated).

Thanks to @AleziaKurdis for the icon!

Notes:

I tested a bit by myself but this could use testing with multiple people.

Testing:

Funding

This project is funded through NGI0 Entrust, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program. Learn more at the NLnet project page.

NLnet foundation logo NGI Zero Logo

vegaslon commented 3 months ago

when I tested it I only saw a button for reverb in the create app and a buttons to add listener zones, if I tried to set anything it was not save.

HifiExperiments commented 3 months ago

@vegaslon bleh my bad. reverbTime and reverbWetLevel only show when reverbEnabled is true, but that one wasn't working, and then the multipleZonesSelection couldn't handle group properties. everything should be fixed now!

vegaslon commented 3 months ago

not sure if it is a bad configuration but when I loaded a domain with audio zones created in the domain settings the audio mixer keeps crashing.

HifiExperiments commented 3 months ago

@vegaslon do you have any other details? I don't see any crashes when I do:

image

vegaslon commented 3 months ago

audio mixer is crashing even when I delete the audio enviroments from settings

HifiExperiments commented 3 months ago

do you have a stack trace? or is there anything else in the domain?

vegaslon commented 3 months ago

if I dump another domains backup into it the crashing stops, so it much just be that specific domain

HifiExperiments commented 3 months ago

could you share the problematic backup (here or in discord) and I could look into it?

vegaslon commented 3 months ago

That fixed the audio mixer crashing on that domain. Still need to find other people to stand around in various audio zones to make sure everything is in order.

vegaslon commented 3 months ago

After testing with multiple clients it seems to work, The listenerAttenuationCoefficients not being in the create app is troublesome but I do not believe the scope of the work was to add brand new functionality into the create app to handle number[].

It works with just adding zones in the client or just zones in the domain settings and works with a mixture of the two.

HifiExperiments commented 3 months ago

@vegaslon thank you so much for the thorough testing! agreed that it's annoying about listenerAttenuationCoefficients. I think ideally we would even have a tool for selecting the zone + coefficient together, rather than two separate fields, since they are linked...but unfortunately that's beyond my scripting ability. I can file a follow up issue for that once we merge this.

otherwise this is ready for review (and merge)!

HifiExperiments commented 3 months ago

@daleglass @ksuprynowicz thank you friends!