Skip to content

real_time_settings

RealTimeSettings

Bases: SettingsBase

Real-Time setting group that handles a variety of sub-settings, including: - Eco Mode - Anti Aliasing - Direct Lighting - Reflections - Translucency - Global Volumetric Effects - Caustics - Indirect Diffuse Lighting - RTMulti GPU (if multiple GPUs available)

Source code in omnigibson/renderer_settings/real_time_settings.py
class RealTimeSettings(SettingsBase):
    """
    Real-Time setting group that handles a variety of sub-settings, including:
        - Eco Mode
        - Anti Aliasing
        - Direct Lighting
        - Reflections
        - Translucency
        - Global Volumetric Effects
        - Caustics
        - Indirect Diffuse Lighting
        - RTMulti GPU (if multiple GPUs available)
    """

    def __init__(self):
        self.eco_mode_settings = EcoModeSettings()
        self.anti_aliasing_settings = AntiAliasingSettings()
        self.direct_lighting_settings = DirectLightingSettings()
        self.reflections_settings = ReflectionsSettings()
        self.translucency_settings = TranslucencySettings()
        self.global_volumetric_effects_settings = GlobalVolumetricEffectsSettings()
        self.caustics_settings = CausticsSettings()
        self.indirect_diffuse_lighting_settings = IndirectDiffuseLightingSettings()
        gpu_count = lazy.carb.settings.get_settings().get("/renderer/multiGpu/currentGpuCount")
        if gpu_count and gpu_count > 1:
            self.rt_multi_gpu_settings = RTMultiGPUSettings()

    @property
    def settings(self):
        settings = {}
        settings.update(self.eco_mode_settings.settings)
        settings.update(self.anti_aliasing_settings.settings)
        settings.update(self.direct_lighting_settings.settings)
        settings.update(self.reflections_settings.settings)
        settings.update(self.translucency_settings.settings)
        settings.update(self.global_volumetric_effects_settings.settings)
        settings.update(self.caustics_settings.settings)
        settings.update(self.indirect_diffuse_lighting_settings.settings)
        gpu_count = lazy.carb.settings.get_settings().get("/renderer/multiGpu/currentGpuCount")
        if gpu_count and gpu_count > 1:
            settings.update(self.rt_multi_gpu_settings.settings)
        return settings