Class SceneBuilder

SceneBuilder class

Represents the root scene for models, cameras and lights.

public class SceneBuilder : BaseBuilder, IConvertibleToGltf2

Constructors

NameDescription
SceneBuilder(string)

Properties

NameDescription
Extras { get; set; }Gets or sets the custom data of this object.
Instances { get; }Gets all the instances in this scene.
Materials { get; }Gets all the unique material references shared by all the meshes in this scene.
Name { get; set; }Gets or sets the display text name, or null.

Methods

NameDescription
static CreateFrom(Scene)
static Load(string, ReadSettings)
static LoadDefaultScene(string, ReadSettings)
AddCamera(CameraBuilder, AffineTransform)
AddCamera(CameraBuilder, NodeBuilder)
AddCamera(CameraBuilder, Vector3, Vector3)
AddLight(LightBuilder, AffineTransform)
AddLight(LightBuilder, NodeBuilder)
AddNode(NodeBuilder)
AddRigidMesh(IMeshBuilder<MaterialBuilder>, AffineTransform)Adds a mesh instance to the scene, at the given location.
AddRigidMesh(IMeshBuilder<MaterialBuilder>, NodeBuilder)Adds a mesh instance to the scene, attached to an animatable NodeBuilder
AddRigidMesh(IMeshBuilder<MaterialBuilder>, NodeBuilder, AffineTransform)Adds a mesh instance to the scene, at the given location, relative to the given node.
AddScene(SceneBuilder, Matrix4x4)Copies the instances from scene to this SceneBuilder
AddSkinnedMesh(IMeshBuilder<MaterialBuilder>, params (NodeBuilder Joint, Matrix4x4 InverseBindMatrix)[])
AddSkinnedMesh(IMeshBuilder<MaterialBuilder>, Matrix4x4, params NodeBuilder[])
ApplyBasisTransform(Matrix4x4, string)Applies a tranform the this SceneBuilder.
DeepClone(bool)
FindArmatures()Gets all the unique armatures used by this SceneBuilder.
ToGltf2()Converts this SceneBuilder instance into a GlbImage instance.
ToGltf2(SceneBuilderSchema2Settings)Converts this SceneBuilder instance into a GlbImage instance.
static CreateFrom(GlbData)
static CreateFrom(IEnumerable<Scene>)
static LoadAllScenes(string, ReadSettings)
static ToGltf2(IEnumerable<SceneBuilder>, SceneBuilderSchema2Settings)Converts a collection of SceneBuilder instances to a single GlbImage instance.

See Also