Zeit's graphics settings utils

Discussion in 'Mods and Skins' started by DaddelZeit, Apr 19, 2022.

  1. DaddelZeit

    DaddelZeit
    Expand Collapse

    Joined:
    Jul 17, 2019
    Messages:
    3,084
    Some General info:
    This mod includes an imgui window:


    Which you can toggle via keybind. Search for "Toggle Graphic Utils" in your keybinds :)

    Renderer Components Save&Load (autoRenderSettingsLoader.lua)

    A simple extension allowing you to save the changes you made in the "Renderer Components" World Editor Window:
    upload_2022-4-19_16-43-4.png

    To save your current setup, simply open the console with ~ on American Layout, or the key you've assigned in the bindings, make sure you're in "GE - Lua" mode and enter this command:
    Code:
    zeit_autoRenderSettingsLoader.getAndSaveSettings()
    Settings are automatically loaded upon level start, or can be manually loaded with this console command:
    Code:
    zeit_autoRenderSettingsLoader.onClientPostStartMission()
    The saves are located in settings/zeit/rendercomponents/save.rendercomponents.json. To reset the entered values simply remove this file.

    General Effect Settings Save&Load (autoGeneralEffectsLoader.lua)
    An extension that allows you to save and load any effect value. (For more advanced users)
    To add a variable execute following command (with example setting):
    Code:
    zeit_autoGeneralEffectsLoader.addSetting("$LightRayPostFX::numSamples", 100)
    These variables can be found in their files under "BeamNG.drive\gameengine.zip\core\scripts\client\postFx".
    The saves are located in settings/zeit/rendercomponents/save.generaleffects.json. To reset the entered values simply remove this file.

    DOF Auto Focus (autoFocus.lua) [NOT FUNCTIONAL IN 0.25+]
    A test that I found to be largely functional. To activate it execute:
    Code:
    zeit_autoFocus.toggle(true)
    And to deactivate execute:
    Code:
    zeit_autoFocus.toggle(false)
    "settings/zeit/rendercomponents/save.autofocus.json" is used to save the current state and if needed applied upon level start.

    Shadow Settings Save&Load (autoShadowSettingsLoader.lua)
    Allows you to save your current sunsky shadow settings and load them afterward.
    Use this command to save them:
    Code:
    zeit_autoShadowSettingsLoader.getAndSaveSettings()
    And this to load them (also loaded upon level start):
    Code:
    zeit_autoShadowSettingsLoader.onClientPostStartMission()
    The saves are located in settings/zeit/rendercomponents/save.shadowsettings.json. To reset the entered values simply remove this file.

    SSAO Settings Save&Load (autoSSAOSettingsLoader.lua)
    Used to save and load ssao settings.
    Command to save:
    Code:
    zeit_autoSSAOSettingsLoader.getAndSaveSettings(CONTRAST, RADIUS, SAMPLES)
    Replace "CONTRAST", "RADIUS" and "SAMPLES" with their respective values.
    Normal quality = 16 samples
    High quality = 64 samples

    And this to load them (also loaded upon level start):
    Code:
    zeit_autoSSAOSettingsLoader.onClientPostStartMission()
    Settings are reapplied after closing photomode.
     

    Attached Files:

    #1 DaddelZeit, Apr 19, 2022
    Last edited: Aug 2, 2022
    • Like Like x 4
  2. Brother_Dave

    Brother_Dave
    Expand Collapse

    Joined:
    Aug 16, 2012
    Messages:
    1,569
    • Like Like x 1
    • Agree Agree x 1
  3. DaddelZeit

    DaddelZeit
    Expand Collapse

    Joined:
    Jul 17, 2019
    Messages:
    3,084
    Expanded this:
    General Effect Settings Save&Load (autoGeneralEffectsLoader.lua)
    DOF Auto Focus (autoFocus.lua)
    Shadow Settings Save&Load (autoShadowSettingsLoader.lua)
    SSAO Settings Save&Load (autoSSAOSettingsLoader.lua)
     
  4. DaddelZeit

    DaddelZeit
    Expand Collapse

    Joined:
    Jul 17, 2019
    Messages:
    3,084
    Does it count as a bump if it's your own thread?
    Anyways, I've updated the file in the main post to work with 0.25 as the main HDR post effect object name was changed
    and included an imgui UI window toggleable via keybind:
    upload_2022-8-2_19-54-43.png
    If there are any bugs, feel free to tell me about them here.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice