Click or drag to resize
Ab4d.SharpEngine logo

EngineCreateOptionsEnsureCameraOnInitialize Property

When true (by default) and if there is no camera defined when rendering the first frame, then a new TargetPositionCamera is created with Heading and Attitude set to 0, TargetPosition set to the center of Scene's Bounding box and Distance set to double the distance of the bounding box diagonal. A warning log message is be written to log when a camera is created in this case. When false and if no camera is defined, then Identity matrix is used for ViewProjection matrix.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public bool EnsureCameraOnInitialize { get; set; }

Property Value

Boolean
See Also