CURATED WORKFLOW

Render a secondary camera view into a render target for composition

game-or-shared-unknown; exact installed availability unresolved not runtime verified

Workflow ID: workflow.secondary-view-rendering
Snapshot: 3ba1c69afc74a97f-7fcd0798fd6ea455

Prerequisites

Ordered steps

#ActionState/evidenceSymbols
1Resolve an exact camera and render-target declaration before writing a call.metadata-only
Exact declarations are direct evidence; callability still needs installed-build verification.
type:Sandbox.CameraComponent, type:Sandbox.Rendering.RenderTargetHandle
2Schedule the secondary view through the render command list and pass ViewSetup rather than assuming a main-view side effect.source-demonstrated
The source call site demonstrates ordering/guard conditions, but its relationship to game code remains scope-sensitive.
method:Sandbox.CameraComponent:RenderToTexture(Sandbox.Texture,Sandbox.Rendering.ViewSetup), method:Sandbox.Rendering.CommandList:DrawView(Sandbox.CameraComponent,Sandbox.Rendering.RenderTargetHandle,Sandbox.Rendering.ViewSetup), type:Sandbox.Rendering.ViewSetup
3Keep recursion/history/resource lifetime bounded and restore the render target state after composition.source-demonstrated
Resource/state cleanup is inferred from surrounding implementation and must be probed.
method:Sandbox.Rendering.CommandList:GetRenderTarget(System.String,Sandbox.ImageFormat,System.Int32,System.Int32), method:Sandbox.Rendering.CommandList:ReleaseRenderTarget(Sandbox.Rendering.RenderTargetHandle), method:Sandbox.Rendering.CommandList:SetRenderTarget(Sandbox.Rendering.RenderTargetHandle), property:Sandbox.CameraComponent:Viewport(), type:Sandbox.RenderTarget

Lifecycle and ordering

State ownership

Resource lifetime

Known failure modes

Evidence and unresolved questions

curated; not a complete workflow graph

  • Whether this exact release's render command scheduling is game-callable.
  • How temporal history, fog and exposure are bound for a custom secondary view.
  • Whether the target can be safely reused across recursive portal views.

Next useful probe: Run an installed-engine minimal secondary-view capture with one camera, one render target and recursion disabled; record pass ordering, viewport, history and cleanup.

Related diagrams

graph-graph-secondary-view-rendering-5cadbc2ffb3a.html