application-flow
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
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.
Claude Code
$ npx -y skills add nvidia-omniverse/ovrtx --skill reading-render-output --agent claude-code
Codex
$ npx skills add nvidia-omniverse/ovrtx --skill reading-render-output -a codex -y
Cursor
$ npx skills add nvidia-omniverse/ovrtx --skill reading-render-output -a cursor -y
Gemini CLI
$ npx skills add nvidia-omniverse/ovrtx --skill reading-render-output -a gemini-cli -y
GitHub Copilot
$ npx skills add nvidia-omniverse/ovrtx --skill reading-render-output -a github-copilot -y
OpenCode
$ npx skills add nvidia-omniverse/ovrtx --skill reading-render-output -a opencode -y
Windsurf
$ npx skills add nvidia-omniverse/ovrtx --skill reading-render-output -a windsurf -y
# 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
Use this skill when the user asks to get pixels, read an image, save a PNG, display rendered output, or access render var data.
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
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.
This skill has no scripts.
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`.
ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async…
Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…
Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…
Available camera render outputs for Real-Time Path Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…
Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…