Jump to content


Photo

Getting started with the EFX room reverb system (wip)

sound openal efx reverb delay tutorial

28 replies to this topic

#26 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 744 posts

Posted 27 May 2018 - 11:41 PM

I have tried to update the wiki page and realized that the whole system is quite messy.

This awful system of translating one values to other values, with total confusion of EAX / EFX values...

And no presets, that's why Judith had to translate them by hand (sorry for that).

I simply don't know how to update the section on properties now.

 

I think for 2.07 it would make sense to do the following:

  1. Implement a new set of properties, which will have exactly the same names as the EFX constants (without the leading "AL_EAXREVERB_"). These properties would be passed to EFX as is, no need to convert bells to dolls.
  2. Implement a "preset" property, similar to what "environment" property meant before EFX update killed it. Enumerate all presets listed in efx-presets.h and make them all available by number.
  3. All of these changes will be available when "Version 2" is specified in the first line of the file. The "Version 1" definitions continue to work as they do now (forever).

If we do this, then we can simply reference the OpenAL EFX manual in wiki, which already has detailed explanation of all properties.

Also, we can list preset names with their numbers in the wiki --- mappers will most likely simply use this number. The number of available presets will increase of course.

 

The possible downside is breaking compatibility with Doom 3 and EAX (although kcat recently noted that at least one property is converted incorrectly from EAX to EFX, so EAX compatibility is not perfect now).

But I have a feeling that both are rather dead now, so maintaining this compatiblity does not provide us with any additional knowledge of EFX.

 

P.S. If we recall another TODO for 2.07, then it is a global revision of all stock sound shaders and putting no_efx in some.


  • Judith and Anderson like this

#27 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 1266 posts

Posted 28 May 2018 - 12:19 AM

I agree that it would be better to have EFX system that reflects the actual OpenAL standard, instead of being something on its own. Mappers could just copy and paste presets found elsewhere.



#28 stgatilov

stgatilov

    Lead Programmer

  • Active Developer
  • PipPipPip
  • 744 posts

Posted 03 June 2018 - 10:34 PM

Ok, added feature request: 4815


  • Judith and Anderson like this

#29 JackFarmer

JackFarmer

    Member

  • Member
  • PipPip
  • 62 posts

Posted 08 June 2018 - 05:03 AM

Hello Judith,

 

Thanks a lot for the presets and thanks a lot @stgatilov for the wiki text.

 

Just created the set-up as per the instructions and copied in the cave reverb of yours. Works perfectly and adds significantly to the mood of the settings!

 

Can't wait to hear the other presets in action, expecially the sewer script as I think I have a fitting environment for it.


  • Judith and Anderson like this



Reply to this topic



  



Also tagged with one or more of these keywords: sound, openal, efx, reverb, delay, tutorial

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users