Table of Contents

Class Scene

Namespace
OmegaEngine.Graphics
Assembly
OmegaEngine.dll

Represents a scene that can be viewed by a Camera.

public sealed class Scene : EngineElement, IDisposable
Inheritance
object
Scene
Implements
Inherited Members

Remarks

Multiple Views can share one Scene.

Constructors

Scene()

public Scene()

Properties

DistanceCompressionStart

Renderables farther than this from the Camera are pulled in logarithmically and scaled down to preserve their apparent size. null to disable.

public float? DistanceCompressionStart { get; set; }

Property Value

float?

Remarks

Serves a similar purpose as a logarithmic depth buffer: very distant renderables fit within FarClip without sacrificing depth buffer precision. However, it scales entire top-level subtrees on the CPU instead of remapping depth per pixel.

While enabled, renderables are not culled by FarClip. Leave enough room between this value and FarClip, since that is the depth range pulled-in renderables are spread across.

Lights

All light sources affecting the entities in this scene

public ICollection<LightSource> Lights { get; }

Property Value

ICollection<LightSource>

Positionables

The root PositionableRenderables of this scene. Each of them may carry a tree of Children.

public ICollection<PositionableRenderable> Positionables { get; }

Property Value

ICollection<PositionableRenderable>

Remarks

A renderable can only be part of one scene or parent at a time. Adding it here removes it from wherever it was before.

Will be disposed when Dispose() is called.

Skybox

The current Skybox for this scene

public Skybox? Skybox { get; set; }

Property Value

Skybox

Remarks

Will be disposed when Dispose() is called.

See Also