Skip to content
Machine Learning
Skill

/reading-render-output

Mapping rendered output to access pixel data on CPU or GPU. Use when user asks to get pixels, read an image, save a PNG, display rendered output, or access render var data.

From plugin
ovrtx
27041 skills

Claude Code

$ npx -y skills add nvidia-omniverse/ovrtx --skill reading-render-output --agent claude-code

SKILL.md

reading-render-output.SKILL.md
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0
name: reading-render-output
description: >
  Mapping rendered output to access pixel data on CPU or GPU. Use when user asks to get
  pixels, read an image, save a PNG, display rendered output, or access render var
  data.
license: CC-BY-4.0 AND Apache-2.0
author: NVIDIA ovrtx
tags:
  - ovrtx
  - rendering
  - outputs
tools:
  - Read
  - Grep

Reading Render Output

When to Use

Use this skill when the user asks to get pixels, read an image, save a PNG, display rendered output, or access render var data.

Inputs

Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.

  • Target API surface: Python, C/C++, USD, or a combination.
  • RenderProduct path, a unique returned prim name (Python), full RenderVar prim path or reserved synthetic output name, and whether the output is single-tensor or composite.
  • Mapping target: CPU pixels, linear CUDA tensor, or C CUDA array mapping.
  • Image/tensor shape, dtype, channel order, synchronization requirements, and whether the data must outlive the mapping.
  • Repository source snippets referenced below. Treat these snippets as the API source of truth.

Prerequisites

  • Use an ovrtx checkout that contains the referenced examples and docs tests.
  • Read the relevant `> **Source:**` snippet before writing or explaining API usage.
  • Confirm the RenderProduct already requests the desired RenderVar; use `camera-outputs-rt2` when the question is which camera output to add.
  • Use `reading-sensor-pointclouds` for lidar/radar `PointCloud` composite tensors.

Instructions

1. Identify the RenderProduct path, RenderVar key (a unique returned prim name or full path in Python), target device, and whether the caller needs CPU pixels, CUDA tensors, or CUDA arrays. 2. Read the matching map/unmap snippet before choosing Python `frame.render_vars[...]` access or C `ovrtx_map_render_var_output()`. 3. Preserve dtype, shape, channel order, and ownership rules for the selected output. 4. Always unmap C outputs, and keep CUDA synchronization aligned with the CUDA interop skill when reading on GPU. 5. When changing code, run the camera sensor or minimal example snippet that owns the readback path whenever practical.

Output Format

  • For explanations, cite the relevant API names, source snippets, and caveats.
  • For code changes, summarize the files changed, snippets affected, and validation run.

Scripts

This skill has no scripts.

Limitations

  • The referenced snippets remain the source of truth; update or add tested snippets before documenting new API usage.

Overview

This skill is the hands-on counterpart to the conceptual reference at `docs/sensors/common/sensor_outputs.rst`, which describes what a render variable output is and how its tensors and params are laid out. Use this skill for *how* to map and read one; use the conceptual page when the question is about *what* the structure carries or *why* it is shaped the way it is.

After stepping the renderer and fetching results, each `RenderVarOutput` is identified by its full RenderVar prim path (for example `/Render/Camera/LdrColor`) and must be mapped to access its data. Python `frame.render_vars` also accepts a prim name unique among the outputs returned in that RenderProduct's frame. This is the final path component, not `source_name`. Ambiguous indexing raises `KeyError`; `get` returns its default and containment is false. Missing outputs remain missing. Exact full paths and reserved synthetic names take precedence.

Short-name lookup scans the current returned dictionary keys on demand; configured targets that produced no output do not count toward ambiguity. It returns the same output object as full-path lookup. Continue using `render_var_path` for identity and application maps; dictionary iteration, counts and mutations retain exact canonical keys. Adding or removing canonical entries updates name resolution. Later scene edits do not change an earlier result's returned keys, including when fetched later. Lookup uses the existing released native API with no extra capability requirement. The C API enumerates full-path outputs and maps handles.

A rendered frame has an output for every RenderVar the RenderProduct lists (a DLSS-G interpolated frame has outputs only for its color RenderVars), including one OVRTX could not produce, such as a RenderVar with an invalid `ovrtx:compression:*` setting or an unsupported sensor `sourceName`. Check its status before mapping: such an output has status `EventStatus.FAILURE` (C: `OVRTX_EVENT_FAILURE` in `ovrtx_render_product_render_var_output_t::status`) and says why in `error_message`, and mapping it fails with that message. The RenderProduct's other outputs are unaffected.

A render variable carries zero or more named tensors and zero or more named params. For a single-tensor render variable, consume the mapping directly with DLPack; address individual tensors by name and read params independently through `params`. `CameraParams` has no tensors and 23 CPU params, so read its params without indexing a tensor or passing the mapping itself to DLPack. Its scalar params, and those of `InstanceIdTokenMapSD` and point-cloud outputs, use shape `(1,)`. Inspect each descriptor's shape. Both tensors and params expose the DLPack protocol for zero-copy access by compatible consumers and devices. The snippets below copy the arrays so they remain usable after the mapping is released.

> **Source (single-tensor readback):** `tests/docs/python/test_camera_aovs.py` snippet `doc-sd-map-image-python`. > > **Source (named tensors and CPU params):** `tests/docs/python/test_camera_aovs.py` snippet `doc-sd-map-structured-python`.

> **Source (parameter-only output):** `tests/docs/python/test_camera_aovs.py` snippet `doc-sd-camera-python`.

  • In Pyth
Read more
@nvidia-omniverse
Ships withovrtx

ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.

Stars on GitHub

Momentum

stars in total
270
Star history of nvidia-omniverse/ovrtx on GitHub, a chart by star-history.com

Other skills on ovrtx.

application-flow

application-flow

High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…

async-operations

async-operations

Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async…

attribute-bindings

attribute-bindings

Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…

binding-materials

binding-materials

Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…

camera-outputs-rt2

camera-outputs-rt2

Available camera render outputs for Real-Time Path Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…

cloning-prims

cloning-prims

Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow4d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

skills2w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast8d7.4k
@feast-dev@feast-devInstall Skill
add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

civitai5d7.3k
@civitai@civitaiInstall Skill

Questions about reading-render-output.

Which coding agents can use reading-render-output?
reading-render-output installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.