Engine Tools

Triangle Count View Mode

An Unreal Engine 5 editor plugin that visualizes geometry weight in the viewport by coloring meshes based on their LOD0 triangle count and providing live stats.

Triangle Count View ModeEngine Tools

Resource overview

The Triangle Count View Mode operates as an Editor plugin for Unreal Engine 5, providing a direct visual representation of geometry weight across a project. Functioning similarly to the native Shader Complexity view mode, this diagnostic tool colors meshes directly within the viewport based on their LOD0 triangle count. By translating raw polygon data into immediate visual feedback, the system helps developers locate the heaviest meshes in a scene at a single glance. The plugin is built entirely as an editor-only utility, meaning it carries zero runtime impact and is completely excluded from packaged project builds.

Post-Process and Custom Stencil Rendering

To overlay diagnostic colors without permanently altering project assets, the plugin utilizes a combination of post-processing and Custom Stencil rendering. Mesh materials are never modified during this viewport visualization process, ensuring the workflow remains entirely save-safe. Because many modern Unreal Engine projects rely heavily on custom depth and stencil buffers for gameplay features, the tool includes a configurable Custom Stencil range. By adjusting this range, technical artists can ensure the diagnostic overlay avoids any visual collisions with existing outline or highlight systems already active in the project.

Protecting project stability and preventing accidental data baking is a core part of the system's architecture. The script incorporates an auto-deactivate function that safely disables the view mode during critical editor transitions. The visualization automatically shuts down before a user initiates a Save operation, enters Play-in-Editor (PIE) mode, or closes the Unreal Engine editor entirely.

Asset Compatibility and Per-Instance Counting

The visualization system evaluates a broad spectrum of asset types commonly utilized in modern pipelines. It natively supports standard Static Meshes and Skeletal Meshes, while also reading Nanite fallback proxies. For projects utilizing massive maps, the tool accurately processes World Partition external actors, ensuring that streamed assets are colored correctly when loaded into the editor viewport.

Evaluating dense environments requires specific handling for instanced geometry. The plugin performs per-instance counting for Foliage, Instanced Static Meshes (ISM), and Hierarchical Instanced Static Meshes (HISM). Rather than calculating an entire foliage cluster as a single merged block of data, the tool evaluates each individual instance. This precision allows level designers to pinpoint exact areas where instanced foliage might be exceeding optimization targets.

Color Mapping and Interpolation Modes

Data readability is managed through per-mesh triangle count visualization driven by highly customizable color ranges. Users can define exactly how polygon density translates into viewport colors, tailoring the visual feedback to match specific project budgets. To handle different types of scene profiling, the tool provides three distinct interpolation modes:

The Stepped interpolation mode breaks the triangle counts into discrete color bands, offering clear, separated categories for rapid asset auditing. The Smooth mode provides a continuous, fluid color gradient across the geometry, useful for identifying gradual increases in mesh density. When evaluating scenes with extreme variations in polygon counts—such as a highly detailed cinematic character standing next to low-resolution background props—the Smooth Log interpolation mode handles the wide dynamic range. This logarithmic scaling prevents massive outliers from skewing the color mapping of the entire scene.

Live Viewport Statistics and the LOD0 Toggle

Alongside the color overlays, the plugin generates an in-viewport legend that delivers continuous statistical feedback. This on-screen display updates in real-time to show the minimum, median, and maximum triangle counts currently being rendered by the diagnostic tool. Having live stats directly in the workspace eliminates the need to constantly open separate asset windows to verify polygon counts.

Accuracy is maintained through a dedicated Force LOD0 toggle. Standard viewport rendering often relies on distance-based Level of Detail (LOD) reductions, which can obscure the true baseline cost of an asset. Activating the Force LOD0 toggle bypasses these distance reductions, ensuring the displayed counts and colors reflect the absolute maximum geometry weight of the source meshes.

Camera Radius Filter for High-Density Scenes

Analyzing geometry weight in massive open-world levels can strain editor performance if every single asset is calculated simultaneously. To maintain responsiveness, the plugin features a camera radius filter paired with an auto-follow mechanic. This targeted system restricts the triangle count visualization and calculations to a specific radius surrounding the user's camera.

As the camera navigates through the environment, the analysis radius moves automatically alongside it. This localized evaluation method is specifically designed to support massive environments, allowing the tool to function smoothly even in complex scenes containing over one million actors.

Diagnostics and Production Workflows

The combination of per-instance counting, live statistics, and localized radius filtering makes the plugin highly applicable across different stages of development. During early pre-production, it serves as a polygon budget diagnostic tool, helping technical directors establish and monitor geometry limits before mass asset generation begins. For world-building teams, the localized visualization streamlines foliage optimization in open worlds by immediately highlighting overly dense clusters of instanced meshes.

Lead artists can utilize the distinct color mapping for reviewing assets delivered by outsource teams, quickly auditing scenes to ensure external models adhere to strict polycount specifications. The clear, color-coded viewport also functions as an educational visualization of mesh cost, assisting newer developers in understanding the spatial distribution of geometry weight within an active level. Tested for stability on Unreal Engine 5.7, the architecture is designed so that it should also build successfully on version 5.8.

Continue Browsing Similar Packs

Free Download

Download this resource

Loading your download options...

Resources are manually reviewed before listing to improve quality and reduce obvious risks.

Resource archivePlugins.7z

Related resources