Class NavMeshSceneNode
Namespace: ValveResourceFormat.Renderer.SceneNodes
Assembly: Renderer.dll
Scene node that visualizes navigation mesh areas and ladders.
public class NavMeshSceneNode : ShapeSceneNodeInheritance
object ← SceneNode ← ShapeSceneNode ← NavMeshSceneNode
Inherited Members
ShapeSceneNode.IsTranslucent, ShapeSceneNode.IsTranslucentRenderMode, ShapeSceneNode.HemisphereVerts, ShapeSceneNode.HemisphereTriangles, ShapeSceneNode.CapsuleTriangles, ShapeSceneNode.BoxLineVertexCount, ShapeSceneNode.shader, ShapeSceneNode.indexCount, ShapeSceneNode.vao, ShapeSceneNode.Shaded, ShapeSceneNode.IsDoubleSided, ShapeSceneNode.ToolTexture, ShapeSceneNode.SetRenderMode(string), ShapeSceneNode.AddCapsule(List<SimpleVertexNormal>, List<int>, Vector3, Vector3, float, Color32), ShapeSceneNode.GetOrthogonal(Vector3), ShapeSceneNode.GetOrthogonal(Vector3, Vector3), ShapeSceneNode.AddHemisphere(List<SimpleVertexNormal>, List<int>, Vector3, float, Vector3, Color32), ShapeSceneNode.AddCapsuleLines(List<int>, int), ShapeSceneNode.AddSphereLines(List<int>, int), ShapeSceneNode.AddBox(List<SimpleVertexNormal>, List<int>, Vector3, Vector3, Color32), ShapeSceneNode.AddSphere(List<SimpleVertexNormal>, List<int>, Vector3, float, Color32), ShapeSceneNode.AddTriangle(List<int>, int, int, int, int), ShapeSceneNode.AddLine(List<SimpleVertex>, Vector3, Vector3, Color32), ShapeSceneNode.AddBox(List<SimpleVertex>, in AABB, Color32), ShapeSceneNode.AddSphere(List<SimpleVertex>, Vector3, float, Color32), ShapeSceneNode.Render(Scene.RenderContext), ShapeSceneNode.GetSupportedRenderModes(), SceneNode.Tint, SceneNode.Alpha, SceneNode.TintAlpha, SceneNode.Transform, SceneNode.LayerName, SceneNode.LayerEnabled, SceneNode.Visible, SceneNode.BoundingBox, SceneNode.LocalBoundingBox, SceneNode.Name, SceneNode.Id, SceneNode.IsSelected, SceneNode.IsPointMarker, SceneNode.Flags, SceneNode.AdditionalFlags, SceneNode.RenderPasses, SceneNode.UpdateBuffers(Camera), SceneNode.Scene, SceneNode.KeepsMarkerSize, SceneNode.Parent, SceneNode.Children, SceneNode.ParentAttachment, SceneNode.LocalTransform, SceneNode.SetParent(SceneNode?, string?, Matrix4x4?), SceneNode.GetChildFrame(string?), SceneNode.UpdateHierarchy(Scene.UpdateContext), SceneNode.GetRigidTransform(Matrix4x4), SceneNode.ShaderEnvMapVisibility, SceneNode.LightingOrigin, SceneNode.OverlayRenderOrder, SceneNode.CubeMapPrecomputedHandshake, SceneNode.LightProbeVolumePrecomputedHandshake, SceneNode.LightProbeBinding, SceneNode.EnvMapBinding, SceneNode.EntityData, SceneNode.EntityInstance, SceneNode.Update(Scene.UpdateContext), SceneNode.Simulation, SceneNode.Render(Scene.RenderContext), SceneNode.GetSupportedRenderModes(), SceneNode.SetRenderMode(string), SceneNode.Delete(), SceneNode.GetCameraDistance(Camera)
Constructors
NavMeshSceneNode(Scene, List<SimpleVertexNormal>, List<int>, List<int>)
Initializes a new instance of the NavMeshSceneNode class from pre-built vertex and index lists.
public NavMeshSceneNode(Scene scene, List<SimpleVertexNormal> verts, List<int> triangleInds, List<int> lineInds)Parameters
scene Scene
The scene this node belongs to.
verts List<SimpleVertexNormal>
The vertex data for the nav mesh geometry.
triangleInds List<int>
Triangle list indices for the filled areas.
lineInds List<int>
Line list indices for the area outlines.
Methods
AddFlowMapNodesToScene(NavFlowMapFile?, NavMeshFile?, Scene, IReadOnlyList<string>)
Adds a layer per hull of a NavFlowMapFile to the scene, drawing the areas of the NavMeshFile colored by the cluster they belong to, and lines between the centres of connected clusters.
public static void AddFlowMapNodesToScene(NavFlowMapFile? navFlowMapFile, NavMeshFile? navMeshFile, Scene scene, IReadOnlyList<string> hullNames)Parameters
navFlowMapFile NavFlowMapFile?
The flow map to draw.
navMeshFile NavMeshFile?
The navigation mesh the flow map was built for.
scene Scene
The scene to add the nodes to.
hullNames IReadOnlyList<string>
Hull names from NavHullNames.Read(IFileLoader, string?), used in the layer names.
AddNavNodesToScene(NavMeshFile?, Scene, IReadOnlyList<string>)
Parses a NavMeshFile and adds a NavMeshSceneNode per hull and one for ladders to the scene.
public static void AddNavNodesToScene(NavMeshFile? navMeshFile, Scene scene, IReadOnlyList<string> hullNames)Parameters
navMeshFile NavMeshFile?
The navigation mesh to draw.
scene Scene
The scene to add the nodes to.
hullNames IReadOnlyList<string>
Hull names from NavHullNames.Read(IFileLoader, string?), used in the layer names.
GetSupportedRenderModes()
Returns the render modes supported by this node.
public override IEnumerable<string> GetSupportedRenderModes()Returns
IEnumerable<string>
Render(RenderContext)
Called each frame to render this node.
public override void Render(Scene.RenderContext context)Parameters
context Scene.RenderContext
The current render context.

