Ue Nanite And Renderingのロゴ

Ue Nanite And Rendering

コミュニティ
kevinpbuckley
ue-nanite-and-rendering

Configure Nanite virtualized geometry (FMeshNaniteSettings on static and skeletal meshes, fallback mesh, displacement/tessellation, WPO distance threshold) and reason about the broader UE rendering pipeline — deferred vs forward, GPU Scene instancing, Virtual Shadow Maps, Virtual Textures, TSR/temporal upscaling, post-process (FPostProcessSettings), scene capture to render targets, and key r.* cvars. Use when enabling Nanite on a mesh, diagnosing Nanite support failures, choosing anti-aliasing or upscaling method, configuring post-process in code or volumes, rendering to a texture (minimap, mirror, portal), tuning scalability cvars, or understanding the deferred/forward rendering split.

概要

公開者kevinpbuckley
リポジトリunreal-engine-skills
スキル名ue-nanite-and-rendering
スター
89
フォーク
9
同梱ファイル
3
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    kevinpbuckleyがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Ue Nanite And Rendering」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-nanite-and-rendering
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-nanite-and-rendering .claude/skills/ue-nanite-and-rendering
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでUe Nanite And Renderingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にUe Nanite And Renderingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ue Nanite And Renderingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Nanite & rendering

UE's renderer couples Nanite (virtualized geometry), Lumen (dynamic GI — see ue-lighting-and-lumen), and Virtual Shadow Maps into a coherent high-fidelity pipeline. This skill covers Nanite and the surrounding rendering systems an agent needs to configure and reason about.

When to use this skill

  • Enabling Nanite on static or skeletal meshes in C++, editor scripting, or mesh settings.
  • Diagnosing why Nanite does/doesn't apply (translucency, forward rendering, VR stereo).
  • Choosing between TSR, TAA/TAAU, FXAA, MSAA and setting screen percentage.
  • Configuring FPostProcessSettings fields in C++ or via a Post Process Volume.
  • Rendering the scene to a texture (minimap, security camera, mirror, portal).
  • Tuning r.* cvars for performance or debugging the render pipeline.

Nanite virtualized geometry

Nanite renders pixel-scale geometry by streaming and rasterizing hierarchical triangle clusters, automatically providing LOD without manual setup. It replaces the traditional draw-call-per-mesh path with a GPU-driven visibility and rasterization pass.

FMeshNaniteSettings — the control struct

FMeshNaniteSettings (defined in Runtime/Engine/Classes/Engine/EngineTypes.h:3280) holds all per-mesh Nanite build parameters. Key fields:

FieldTypeDefaultPurpose
bEnableduint8:1falseMaster switch — build Nanite data
KeepPercentTrianglesfloat1.0Source triangle budget (1.0 = lossless)
TrimRelativeErrorfloat0.0Error-based reduction threshold
GenerateFallbackENaniteGenerateFallbackPlatformDefaultWhether to build a fallback mesh for unsupported platforms
FallbackPercentTrianglesfloat1.0Triangle budget for the fallback mesh
FallbackRelativeErrorfloat1.0Error-based fallback reduction
MaxEdgeLengthFactorfloat0.0Limit simplification for WPO/spline meshes
DisplacementMapsTArray<FMeshDisplacementMap>emptyOffline tessellation/displacement maps
PositionPrecisionint32MIN_int32 (auto)Vertex position quantization

UStaticMesh exposes GetNaniteSettings()/SetNaniteSettings() (StaticMesh.h:855–868) and IsNaniteEnabled() (:1049). USkeletalMesh has the same accessor pair (SkeletalMesh.h:970–977).

5.7 deprecation note: Direct member access to UStaticMesh::NaniteSettings is deprecated (UE_DEPRECATED(5.7, ...)). Use the accessor functions instead.

Enabling Nanite from C++ editor scripting

cpp
// Editor-only — call from a UEditorUtilityWidget or Python-exposed UFUNCTION
#if WITH_EDITOR
#include "Engine/StaticMesh.h"

void EnableNaniteOnMesh(UStaticMesh* Mesh)
{
    if (!Mesh) return;
    FMeshNaniteSettings Settings = Mesh->GetNaniteSettings();
    Settings.bEnabled = true;
    // For WPO materials or spline mesh deformation, set a non-zero MaxEdgeLengthFactor
    // to prevent oversimplification of displaced clusters:
    // Settings.MaxEdgeLengthFactor = 1.0f;
    Mesh->SetNaniteSettings(Settings);
    Mesh->PostEditChange();
    Mesh->MarkPackageDirty();
}
#endif

Where Nanite applies — and where it doesn't

Nanite works on opaque and masked materials. Translucent materials fall back to the fallback mesh. In UE 5.8 Nanite also supports:

  • Skeletal meshes (animation LODs only; no geometry LODs).
  • Spline mesh components — MaxEdgeLengthFactor > 0 prevents over-simplification.
  • Foliage, including WPO wind animation (clamp displacement to avoid culling drift).
  • Instanced static meshes (HISM, foliage painter, landscape grass).
  • Geometry collections (Chaos destruction).

Nanite is not supported for:

  • Forward rendering or MSAA paths (these require per-draw-call mesh data).
  • VR stereo rendering (instanced stereo is not Nanite-compatible currently).
  • Morph targets (skinning deformation beyond a 4x3 matrix is not supported).
  • Translucent blend mode — the Nanite fallback mesh is rendered instead.
  • Lighting channels and minimum screen radius / distance culling per-object overrides.

On UStaticMeshComponent, bDisallowNanite and bForceNaniteForMasked let you opt individual component instances in or out at runtime (StaticMeshComponent.h:162–166). WorldPositionOffsetDisableDistance (:158) stops WPO evaluation past a given screen distance, which also helps Nanite cluster culling.

Fallback mesh

The fallback mesh is a conventional LOD mesh rendered on platforms that don't support Nanite (DX11, mobile, ray-tracing passes). HasNaniteFallbackMesh(EShaderPlatform) (StaticMesh.h:2192) queries its presence. Set FallbackPercentTriangles < 1.0 to reduce its cost. For ray tracing, the fallback is used by default; lower FallbackRelativeError for higher-fidelity RT shadows/reflections.

Nanite displacement and tessellation

  • Static displacement — offline: set DisplacementMaps in FMeshNaniteSettings and rebuild. The offline tessellator pre-bakes displacement into the Nanite cluster hierarchy.
  • Runtime tessellation — dynamic programmable displacement via a displacement material graph node; driven per-frame on the GPU. Useful for animated terrain and Nanite landscapes.

Both are described in references/nanite.md.

Rendering pipeline overview

Deferred vs forward

UE defaults to deferred shading (desktop/console). The G-buffer stores material properties (base color, normals, roughness, metallic) in the depth pass and base pass; the lighting pass reads them. This enables many dynamic lights at low per-light cost.

Forward shading (r.ForwardShading 1, RendererSettings.h:736) renders lighting in a single pass per draw. It supports MSAA but does not support Nanite, has fewer features (no deferred decals, no light functions by default), and is mainly used for VR.

Mobile has its own forward and deferred paths (EMobileShadingPath, RendererSettings.h:220–229).

GPU Scene and instancing

FGPUScene (Renderer/Private/GPUScene.h:218) is a GPU-resident buffer of per-primitive and per-instance data updated each frame. It enables Nanite's GPU-driven culling/rasterization and UE5's instanced rendering path — all UStaticMeshComponent and HISM instances share this buffer, eliminating per-draw-call CPU overhead. Adding or removing primitives from the scene queues updates through FGPUScene; do not assume immediate GPU visibility.

Virtual Shadow Maps

Virtual Shadow Maps (VSM) are UE5's high-resolution shadow system, designed to pair with Nanite's pixel-scale detail. VSMs use a 16k virtual address space paged into 128x128 physical pages (VirtualShadowMapArray.h:73–79). Only pages that cover visible shadowed surfaces are allocated and rendered, making the per-frame cost roughly proportional to the number of unique shadow-casting surfaces visible, rather than a fixed resolution texture.

Key interaction: Nanite meshes render into VSM shadow passes efficiently via the same GPU-driven cluster rasterizer. Non-Nanite meshes use the Nanite fallback when rendering into VSMs. See references/virtual-textures-and-shadows.md.

TSR and temporal upscaling

Temporal Super Resolution (TSR) is UE5's default temporal upscaler. It renders at a sub-native internal resolution and reconstructs a high-quality output using data from multiple previous frames. Set with r.AntiAliasingMethod 4 (TSR) or in Project Settings → Engine → Rendering → Default Settings → Anti-Aliasing Method.

MethodDeferredForwardNotes
TSRyesyesDefault UE5; best quality; requires temporal history
TAAUyesyesUE4-era temporal upsampler; lower quality than TSR
FXAAyesyesSpatial only; cheap; for low-end targets
MSAAnoyes onlyHardware multi-sample; no Nanite support

Screen percentage (r.ScreenPercentage) is the primary resolution lever: 50–70 with TSR still produces near-native quality. Third-party temporal upscalers (DLSS, FSR 2+, XeSS) plug in via the ITemporalUpscaler interface (Renderer/Public/TemporalUpscaler.h).

RendererSettings.h:863–866 maps r.AntiAliasingMethod to EAntiAliasingMethod (project setting DefaultFeatureAntiAliasing). Forward shading forces FXAA or MSAA; TSR/TAAU require deferred.

Post process (FPostProcessSettings)

FPostProcessSettings (Engine/Classes/Engine/Scene.h:711–2712) is the single struct that controls all post-process overrides. Apply it via:

  • An unbound Post Process Volume (global baseline).
  • A bounded volume with a Blend Radius (local override).
  • A camera's PostProcessSettings field directly in C++.

Key categories of fields:

CategoryNotable fields
ExposureAutoExposureBias, AutoExposureMinBrightness, AutoExposureMaxBrightness
BloomBloomIntensity, BloomThreshold, BloomSizeScale
Depth of FieldDepthOfFieldFstop, DepthOfFieldFocalDistance, DepthOfFieldSensorWidth
Motion BlurMotionBlurAmount, MotionBlurMax, MotionBlurTargetFPS
Color GradingColorGradingIntensity, ColorSaturation, FilmShadowTint
GI/ReflectionsDynamicGlobalIlluminationMethod, ReflectionMethod (override Lumen vs screen-space)
Ambient OcclusionAmbientOcclusionIntensity, AmbientOcclusionRadius

Each field has a corresponding bOverride_<FieldName> bool that must be true for the value to take effect when set programmatically.

cpp
// Snapshot the current post-process settings and override bloom at runtime
APostProcessVolume* PPV = /* get your volume */;
FPostProcessSettings& S = PPV->Settings;
S.bOverride_BloomIntensity = true;
S.BloomIntensity = 0.5f;

See references/rendering-pipeline.md for the full deferred pass order, scene view flow, and how post-process materials interact with TSR.

Scene capture (render to texture)

USceneCaptureComponent2D renders a camera view into a UTextureRenderTarget2D each frame or on demand. Use for minimaps, security cameras, mirrors, and portals.

cpp
USceneCaptureComponent2D* Cap = CreateDefaultSubobject<USceneCaptureComponent2D>(TEXT("Cap"));
Cap->TextureTarget = MyRenderTarget;           // assign a UTextureRenderTarget2D asset
Cap->CaptureSource = ESceneCaptureSource::SCS_FinalColorLDR;
Cap->bCaptureEveryFrame = false;               // capture on-demand is much cheaper
// Call Cap->CaptureScene() when you need a fresh frame

Scene captures are expensive — they re-run visibility, shadow, and lighting passes for the capture view. Budget them carefully: capture on demand (mirrors flip-frame), reduce TextureTarget resolution, disable unneeded features (ShowFlags), use SCS_SceneColorHDR only when HDR data is required downstream.

Key r.* cvars

See references/rendering-pipeline.md for the complete cvar table. The highest-leverage variables for Nanite + standard desktop rendering:

cvarPurpose
r.ScreenPercentagePrimary render resolution percentage (50–100+)
r.AntiAliasingMethod2=TAA, 4=TSR, 0=None, 1=FXAA, 3=MSAA
r.Nanite.MaxPixelsPerEdgeNanite rasterization target (default 1.0, lower = more detail)
r.Shadow.Virtual.EnableToggle Virtual Shadow Maps (1 = on)
r.Shadow.Virtual.ResolutionLodBiasDirectionalVSM directional light quality bias
r.VirtualTexturesEnable Virtual Texture streaming globally
r.ForwardShadingToggle forward renderer (restart required)
r.Lumen.Reflections.AllowEnable/disable Lumen reflections independently
r.DefaultFeature.BloomGlobal default for bloom
r.TemporalAA.UpsamplingEnable TAAU (older UE4-style temporal upsampler)

Set cvars via Device Profiles or ini scalability groups in shipping builds — never hardcode GConsoleManager->FindTConsoleVariableDataFloat calls in game logic.

Performance mental model

  1. Internal resolution / screen percentage — single biggest lever; TSR hides most cost.
  2. Overdraw — translucency is rendered unconditionally and accumulates; limit layered particles and glass materials (ue-materials-and-shaders).
  3. VSM page cost — each unique light/shadow receiver combination needs pages; many small dynamic shadow casters in open areas is expensive.
  4. Scene captures — each capture re-runs the renderer; prefer baked or on-demand.
  5. Nanite cluster culling budget — very large WPO displacement without a MaxEdgeLengthFactor causes many clusters to escape culling; profile with stat Nanite and the Nanite visualization modes.
  6. Profile with profileGPU or Unreal Insights GPU track (ue-profiling-and-optimization).

Gotchas

  • Nanite on translucent material — silently falls back to the fallback mesh; no error in log unless you enable r.Nanite.ShowMaskedMaterialWarnings.
  • Nanite + Forward rendering — Nanite is not supported in forward; the mesh renders via the fallback.
  • bDisallowNanite on component — disables Nanite for that instance even if the mesh has it enabled; useful for LOD-authored props that need conventional rendering.
  • VR stereo + Nanite — instanced stereo rendering is incompatible; Nanite falls back.
  • WPO displacement without MaxEdgeLengthFactor — Nanite clusters are culled by their original bounds; large WPO offsets pop clusters in/out. Set MaxEdgeLengthFactor or set bEvaluateWorldPositionOffset = false past a distance threshold.
  • bOverride_* not set — FPostProcessSettings fields are ignored without their paired bOverride_ flag when applied programmatically.
  • Scene capture every frame at full res — sets up a full render pass; throttle with bCaptureEveryFrame = false and call CaptureScene() selectively.
  • TSR ghosting on fast-moving thin geometry — increase r.TSR.History.ScreenPercentage or switch to TAAU for that camera.
  • Hardcoding r. cvars in C++* — use Device Profiles / scalability ini groups; see ue-profiling-and-optimization.
  • Mismatched shadows — Nanite + Lumen expect VSM; mixing Nanite with shadow maps can produce shadow resolution mismatches. Prefer VSM for Nanite-heavy scenes.

Version notes

  • Nanite skeletal mesh is production-ready in 5.5+ and fully supported in 5.8; uses animation LODs (not geometry LODs).
  • Nanite spline meshes work in 5.8 by default; set MaxEdgeLengthFactor for road/rail splines with significant curvature.
  • Nanite tessellation (runtime programmable displacement) is experimental/beta in 5.5–5.6 and production-track in 5.7; in 5.8 r.Nanite.Tessellation defaults to 1 (on).
  • UStaticMesh::NaniteSettings direct-access is UE_DEPRECATED(5.7) — use accessors.
  • TSR is EAntiAliasingMethod::AAM_TSR in EAntiAliasingMethod enum (5.8); earlier builds spelled it TemporalSuperResolution.

References & source material

Engine source (UE 5.8, under Engine/Source/):

  • Runtime/Engine/Classes/Engine/EngineTypes.h — FMeshNaniteSettings:3280, ENaniteGenerateFallback:3213, ENaniteFallbackTarget:3222.
  • Runtime/Engine/Classes/Engine/StaticMesh.h — GetNaniteSettings:855, SetNaniteSettings:864, IsNaniteEnabled:1049, HasNaniteFallbackMesh:2192; NaniteSettings member deprecated at 5.7:744.
  • Runtime/Engine/Classes/Engine/SkeletalMesh.h — FMeshNaniteSettings NaniteSettings:964, GetNaniteSettings:970, SetNaniteSettings:974.
  • Runtime/Engine/Classes/Components/StaticMeshComponent.h — bDisallowNanite:166, bForceNaniteForMasked:162, WorldPositionOffsetDisableDistance:158, bEvaluateWorldPositionOffset:176.
  • Runtime/Engine/Classes/Engine/Scene.h — FPostProcessSettings:711.
  • Runtime/Engine/Classes/Engine/RendererSettings.h — DefaultFeatureAntiAliasing:866, bForwardShading:736, bVirtualTextures:417, MobileShadingPath:342.
  • Runtime/Engine/Public/Rendering/NaniteResources.h — Nanite::FResources:452 (streaming pages, cluster hierarchy, position/normal precision stored here).
  • Runtime/Renderer/Private/GPUScene.h — FGPUScene:218 (GPU-resident primitive/instance buffer driving Nanite and instanced rendering).
  • Runtime/Renderer/Private/VirtualShadowMaps/VirtualShadowMapArray.h — FVirtualShadowMap:67, page size/dim constants :73–79.
  • Runtime/Renderer/Public/TemporalUpscaler.h — ITemporalUpscaler:12 (plugin interface for third-party upscalers: DLSS, FSR, XeSS).
  • Runtime/Renderer/Private/DeferredShadingRenderer.h — deferred renderer entry; includes Nanite, VSM, and Lumen integration headers.

Official docs (UE 5.8, all fetched and confirmed):

Deep-dive references in this skill:

Related skills: ue-lighting-and-lumen, ue-meshes-static-and-skeletal, ue-profiling-and-optimization, ue-materials-and-shaders.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ue Nanite And Rendering」では何ができますか?

Configure Nanite virtualized geometry (FMeshNaniteSettings on static and skeletal meshes, fallback mesh, displacement/tessellation, WPO distance threshold) and reason about the broader UE rendering pipeline — deferred vs forward, GPU Scene instancing, Virtual Shadow Maps, Virtual Textures, TSR/temporal upscaling, post-process (FPostProcessSettings), scene capture to render targets, and key r.* cvars. Use when enabling Nanite on a mesh, diagnosing Nanite support failures, choosing anti-aliasing or upscaling method, configuring post-process in code or volumes, rendering to a texture (minimap,...

TypingMindでUe Nanite And Renderingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ue Nanite And Renderingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにUe Nanite And Renderingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-nanite-and-renderingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ue Nanite And Renderingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Ue Nanite And Renderingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもUe Nanite And Renderingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ue Nanite And Rendering」は無料ですか?

kevinpbuckleyがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇