Table of Contents

Class ModelSceneNode

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

Scene node for rendering animated models with skeletal animation and morph targets.

public class ModelSceneNode : MeshCollectionNode

Inheritance

Inherited Members

Constructors

ModelSceneNode(Scene, Model, string?, bool)

public ModelSceneNode(Scene scene, Model model, string? skin = null, bool isWorldPreview = false)

Parameters

scene Scene
model Model
skin string?
isWorldPreview bool

Properties

ActiveMaterialGroup

public string ActiveMaterialGroup { get; }

Property Value

string

AnimationController

public AnimationController AnimationController { get; }

Property Value

AnimationController

HasMeshes

public bool HasMeshes { get; }

Property Value

bool

IsAnimated

public bool IsAnimated { get; }

Property Value

bool

Tint

public override Vector4 Tint { get; set; }

Property Value

Vector4

Methods

Delete()

public override void Delete()

GetActiveMeshGroups()

public ICollection<string> GetActiveMeshGroups()

Returns

ICollection<string>

GetLod1RefMeshes()

public IEnumerable<(int MeshIndex, string MeshName, long LoDMask)> GetLod1RefMeshes()

Returns

IEnumerable<(int MeshIndex, string MeshName, long LoDMask)>

GetMeshBoneIndex(int, RenderableMesh)

public int GetMeshBoneIndex(int modelBoneIndex, RenderableMesh mesh)

Parameters

modelBoneIndex int
mesh RenderableMesh

Returns

int

GetMeshGroups()

public IEnumerable<string> GetMeshGroups()

Returns

IEnumerable<string>

GetSupportedAnimationNames()

public IEnumerable<string> GetSupportedAnimationNames()

Returns

IEnumerable<string>

GetSupportedRenderModes()

public override IEnumerable<string> GetSupportedRenderModes()

Returns

IEnumerable<string>

SetActiveMeshGroups(IEnumerable<string>)

public void SetActiveMeshGroups(IEnumerable<string> setMeshGroups)

Parameters

setMeshGroups IEnumerable<string>

SetAnimation(string)

public void SetAnimation(string animationName)

Parameters

animationName string

SetAnimation(Animation?)

public void SetAnimation(Animation? activeAnimation)

Parameters

activeAnimation Animation?

SetAnimationForWorldPreview(string)

public bool SetAnimationForWorldPreview(string animationName)

Parameters

animationName string

Returns

bool

SetCharacterEyeRenderParams()

public void SetCharacterEyeRenderParams()

SetMaterialGroup(string)

public void SetMaterialGroup(string name)

Parameters

name string

Update(UpdateContext)

public override void Update(Scene.UpdateContext context)

Parameters

context Scene.UpdateContext