application-flow
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Setting up a new CMake C/C++ project that uses ovrtx. Use when user asks to create a new C project, set up CMake with ovrtx, scaffold a C++ app, or configure build dependencies.
Claude Code
$ npx -y skills add nvidia-omniverse/ovrtx --skill project-setup-c --agent claude-code
Codex
$ npx skills add nvidia-omniverse/ovrtx --skill project-setup-c -a codex -y
Cursor
$ npx skills add nvidia-omniverse/ovrtx --skill project-setup-c -a cursor -y
Gemini CLI
$ npx skills add nvidia-omniverse/ovrtx --skill project-setup-c -a gemini-cli -y
GitHub Copilot
$ npx skills add nvidia-omniverse/ovrtx --skill project-setup-c -a github-copilot -y
OpenCode
$ npx skills add nvidia-omniverse/ovrtx --skill project-setup-c -a opencode -y
Windsurf
$ npx skills add nvidia-omniverse/ovrtx --skill project-setup-c -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: project-setup-c description: > Setting up a new CMake C/C++ project that uses ovrtx. Use when user asks to create a new C project, set up CMake with ovrtx, scaffold a C++ app, or configure build dependencies. license: CC-BY-4.0 AND Apache-2.0 author: NVIDIA ovrtx tags: - ovrtx - c - setup tools: - Read - Grep - Shell - Write
Use this skill when the user asks to create a new C project, set up CMake with ovrtx, scaffold a C++ app, or configure build dependencies.
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
1. Identify the requested project type, platform, package source, and expected run command. 2. Read the minimal example and setup snippets before writing scaffolding. 3. Use the repository's existing Python or CMake conventions instead of inventing a new layout. 4. Include renderer creation and first-frame validation only after the project dependency setup is complete. 5. When changing code, run the narrow example setup or docs test whenever practical.
This skill has no scripts.
ovrtx provides a C API with a CMake config for easy integration. The recommended approach uses CMake FetchContent to download the ovrtx binary package from GitHub Releases. A convenience macro in `ovrtx.cmake` handles fetching, finding, and runtime setup.
my-ovrtx-app/
CMakeLists.txt
cmake/
ovrtx.cmake # Copy from examples/c/cmake/ovrtx.cmake
main.cpp> **Source:** `examples/c/minimal/CMakeLists.txt` snippet `project-setup` > > **Source (continued):** `examples/c/minimal/CMakeLists.txt` snippet `linking-models` > > The canonical example builds both loader models with ovstage attached. For an > ovrtx-only application, omit the ovstage link target and setup call. The > ovstage package is still required at configure time because `ovrtx.h` includes > ovstage headers; `ovrtx_fetch()` fetches it.
Copy `examples/c/cmake/ovrtx.cmake` into your project's `cmake/` directory. The key macro it provides:
Update the `FetchContent_Declare` URL inside `ovrtx.cmake` to point to the appropriate GitHub Releases package for your platform.
> **Source:** `examples/c/minimal/main.cpp` snippet `check-error-helper` > > **Source (continued):** `examples/c/minimal/main.cpp` snippet `create-renderer` > > **Source (continued):** `examples/c/minimal/main.cpp` snippet `load-usd-and-wait` > > See the full minimal example for the complete flow including step, fetch, map, and cleanup.
cmake -B build -DCMAKE_BUILD_TYPE=Release cmake --build build ./build/my-ovrtx-app
The ovrtx binary distribution includes runtime dependencies under `bin/`:
bin/ libovrtx-dynamic.so / ovrtx-dynamic.dll cache/ library/ libs/ mdl/ plugins/ rendering-data/ usd_plugins/
**Static loader (model #1).** Link `ovrtx::ovrtx_static` and pass the package root to `ovrtx_create_renderer()` via `ovrtx_config_entry_binary_package_root_path()`. Build the path from `OVX_CONFIG_EXECUTABLE_DIR_TOKEN "/ovrtx"` so the loader resolves it against the running executable's directory at runtime. `ovrtx_setup_runtime()` stages the matching side-by-side `ovrtx/` link pointing at the package `bin/`, keeping the exe directory self-contained without baking an absolute path into the binary:
> **Source:** `examples/c/minimal/main.cpp` snippet `create-renderer`
**Shared loader (model #2).** Link `ovrtx::ovrtx`; the operating system loads only the forwarding loader. The loader opens the ovrtx runtime on the first initialization call. ovrtx expects the `bin/` runtime directories (`cache/`, `library/`, `libs/`, `mdl/`, `plugins/`, `rendering-data/`, `usd_plugins/`) next to `ovrtx-dynamic.dll` / `libovrtx-dynamic.so`, and `ovrtx_setup_runtime()` configures rpath (Linux) or copies DLLs + creates junctions (Windows). In this mode `binary_package_root_path` is only needed when your install/deploy layout breaks apart the default `bin/` structure. The config-entry pattern is identical either way:
> **Source:** `tests/docs/c/test_support_api.cpp` snippet `doc-version-and-config-c`
| Header | Purpose | |--------|---------| | `<ovrtx/ovrtx.h>` | Ma
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…