# Global settings

> Documentation version: 3.0
> HTML: https://docs.flarelive.manifolddynamics.com/reference/common/world.html
> [Complete contents](https://docs.flarelive.manifolddynamics.com/contents.md) · [Agent index](https://docs.flarelive.manifolddynamics.com/llms.txt)

Flare Live **3.0** · **World** · API type `simexp.core.world`.

Global settings belong to the World, not a scene object. Use `ws.world_handle()` to edit them. `working_directory` is an absolute serialized project property; exports and sample caches resolve beneath the runtime working directory. It is distinct from the FLL filename and Python cwd.

Gravity acts on rigid bodies. `up_direction` does not lock motion or replace gravity. The effective simulation step can be requested by a solver and differ from `default_time_step`. Rendering settings affect appearance, not fluid or rigid-body physics. Camera export requires scene Cameras; Free view is local to the GUI.

See [lifecycle](https://docs.flarelive.manifolddynamics.com/manual/concepts/lifecycle.md), [rendering](https://docs.flarelive.manifolddynamics.com/manual/visualization-and-export/rendering.md) and [export](https://docs.flarelive.manifolddynamics.com/manual/visualization-and-export/export.md).

## Properties

Values below are defaults for new objects. See [common properties](https://docs.flarelive.manifolddynamics.com/reference/common/properties.md) for shared fields, case-sensitive API paths and conditional visibility.

### General

| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
| --- | --- | --- | --- |
| `working_directory` | "" | Absolute output/cache directory or empty fallback. Set explicitly for portable experiments. | No |
| `use_left_handed_coordinates` | false | Use the left-handed view convention for scene Cameras and the viewport. | No |
| `gravity` | (0.0, 0.0, -9.81) | World-space acceleration applied to rigid bodies, m/s². | No |
| `up_direction` | (0.0, 0.0, 1.0) | World up direction for navigation and rendering. Set gravity separately. | No |
| `default_time_step` | 0.01 | Fallback dt, seconds; read effective initialized dt when solvers request another value. | No |
| `skybox` | 0; 0=PureSky1, 1=PureSky2, 2=Underwater1, 3=Custom | Choose a bundled background or a custom image. | Yes |
| `skybox_texture_path` | "" | Path to the external skybox image. Shown when `skybox` is Custom. Share the image separately when moving the project. | Yes |

### Rendering / Ambient Occlusion

| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
| --- | --- | --- | --- |
| `rendering.ambient_occlusion.enabled` | true | Enable screen-space ambient occlusion, which darkens creases and nearby contacts in the rendered image. | Yes |
| `rendering.ambient_occlusion.radius` | 0.06 | Screen-space sampling radius scale, clamped to 0.001–0.5. Larger values look for occluders farther from each pixel. The renderer converts it to a view-space radius using the projection and depth. Shown when sibling enabled = True. | Yes |
| `rendering.ambient_occlusion.strength` | 1.5 | Amount of ambient occlusion darkening, clamped to 0–8. Zero removes the darkening. Shown when sibling enabled = True. | Yes |
| `rendering.ambient_occlusion.power` | 1.25 | Contrast exponent applied to ambient occlusion, clamped to 0.1–8. Increasing it deepens partially occluded areas. Shown when sibling enabled = True. | Yes |
| `rendering.ambient_occlusion.bias` | 0.02 | Tolerance for rejecting shallow occlusion against the surface itself, relative to the sampling radius. Clamped to 0–0.5. Raising it can hide small contacts. Shown when sibling enabled = True. | Yes |
| `rendering.ambient_occlusion.horizon_threshold` | 0.06 | Dimensionless angular cutoff for rejecting near-tangent occluders, clamped to 0–1. Raising it rejects more shallow contacts. Shown when sibling enabled = True. | Yes |
| `rendering.ambient_occlusion.blur` | true | Smooth the occlusion buffer while using depth and normals to preserve edges. Disable to see the unfiltered result. Shown when sibling enabled = True. | Yes |

### Rendering / Lighting

| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
| --- | --- | --- | --- |
| `rendering.lighting.ambient_color` | (1.0, 1.0, 1.0) | Ambient-light RGB tint, with components from 0 to 1. Ambient light illuminates surfaces regardless of orientation to the directional light. | Yes |
| `rendering.lighting.ambient_intensity` | 0.3 | Brightness multiplier for ambient light, clamped to 0–10. Zero removes the ambient contribution. | Yes |
| `rendering.lighting.light_color` | (1.0, 1.0, 1.0) | RGB tint of the directional light that illuminates faces and casts shadows. Each component is in 0–1. | Yes |
| `rendering.lighting.light_intensity` | 0.7 | Brightness multiplier for directional light, clamped to 0–10. Zero removes its light contribution. | Yes |
| `rendering.lighting.follow_view` | false | Rotate the directional light with the active view. With this off, its direction is fixed in world coordinates. | Yes |
| `rendering.lighting.azimuth_degrees` | 45.0 | Horizontal bearing of the light source, in degrees from +X toward +Y. The value wraps every 360°. With Follow view on, the axes are those of the camera. | Yes |
| `rendering.lighting.elevation_degrees` | 45.0 | Angle of the light source above the XY plane, clamped to −90° to 90°. Positive angles point toward +Z. With Follow view on, the axes are those of the camera. | Yes |

### Rendering / Shadows

| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
| --- | --- | --- | --- |
| `rendering.shadows.mode` | 2; 0=None, 1=Hard, 2=Soft | None disables shadows. Hard uses a sharp depth comparison. Soft filters across neighboring shadow-map samples to soften the edge. | Yes |
| `rendering.shadows.resolution` | 2048 | Width and height in texels of each directional shadow cascade, clamped to 256–4096. Increasing it can sharpen detail and uses more GPU memory. | Yes |
| `rendering.shadows.distance` | 100.0 | Maximum camera-space depth covered by the directional shadow cascades, in meters, clamped to 0.1–100,000. A longer range spreads the available shadow texels across more scene depth. | Yes |
| `rendering.shadows.strength` | 1.0 | Shadow darkness multiplier from 0 to 1. Zero removes visible darkening. | Yes |
| `rendering.shadows.bias` | 1.0 | Scale for the shadow depth offset, clamped to 0–20. Increase to reduce self-shadow patterning. Excessive bias can separate a shadow from its caster. | Yes |
| `rendering.shadows.softness` | 1.5 | Spacing of filter taps in shadow-map texels, clamped to 0.25–8. Larger values widen the blur. Shown when sibling mode = Soft. | Yes |

### Rendering / Fog

| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
| --- | --- | --- | --- |
| `rendering.fog.enabled` | false | Blend rendered surfaces with the fog color as their distance from the view increases. | Yes |
| `rendering.fog.use_sky_color` | true | Sample the skybox along the viewing ray as the fog color. An empty background keeps its original color. Without a skybox the render uses the background clear color. Shown when sibling enabled = True. | Yes |
| `rendering.fog.color` | (0.65, 0.72, 0.8) | Fixed RGB color blended into distant surfaces when the sky color is disabled. Each component is in 0–1. Shown when sibling use_sky_color = False. | Yes |
| `rendering.fog.start_distance` | 10.0 | Distance before the fog starts, in meters. Perspective views use distance from the camera and orthographic views use view depth. Shown when sibling enabled = True. | Yes |
| `rendering.fog.density` | 0.02 | Exponential falloff per meter beyond Start distance. Zero clears the fog. At 1 ÷ density meters beyond the start, about 37% of the surface color remains. Shown when sibling enabled = True. | Yes |
| `rendering.fog.affect_background` | true | Apply the fixed fog color to background pixels as well as visible geometry. Shown when sibling use_sky_color = False. | Yes |

### Export

| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
| --- | --- | --- | --- |
| `export.folder_name` | "export" | Output subdirectory under the working directory. | No |
| `export.export_camera_views` | false | Write images from enabled scene Cameras when exporting. | No |
| `export.camera_view_width` | 1920 | Image width in pixels. Shown when Camera export is enabled. | No |
| `export.camera_view_height` | 1080 | Image height in pixels. Shown when Camera export is enabled. | No |
| `export.auto_export` | false | Schedule exports as simulation advances. | No |
| `export.auto_export_target_fps` | 30.0 | Target exports per simulated second, clamped to 0.001–100,000. Each completed step can produce at most one scheduled export. Shown when Auto export is enabled. | No |
| `export.auto_export_start_time` | 0.0 | Time in simulated seconds at or after which scheduled export starts. Zero exports the initial state. Later exports use the state on the first eligible step. Shown when Auto export is enabled. | No |


Simulation input/output: none.
