Renderer creation

From NVIDIA-Omniverse/ovrtx · View interactive version

Renderer creation is an AI agent skill from the GitHub repository NVIDIA-Omniverse/ovrtx. Creating and configuring an ovrtx renderer instance. Use when user asks to create a renderer, initialize ovrtx, configure renderer options, or set up ovrtx.

How to use this skill

Skill file

Renderer Creation

When to Use

Use this skill when the user asks to create a renderer, initialize ovrtx, configure renderer options, or set up ovrtx.

Inputs

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

Prerequisites

Instructions

  1. Identify the requested language and lifecycle stage before choosing an example.
  2. Read the referenced snippet that matches the requested stage and language.
  3. Preserve the normal ovrtx order: create or initialize the renderer, load or compose USD, step or wait for work, read outputs when needed, then release C resources explicitly.
  4. Apply the async, status-query, error-handling, and warmup skills when the workflow crosses those concerns.
  5. When changing code, run the narrow example or docs test that owns the snippet whenever practical.

Output Format

Scripts

This skill has no scripts.

Limitations

Overview

The renderer is the central object in ovrtx. You must create one before loading USD scenes, stepping, or reading output. The renderer manages all GPU resources and the internal rendering pipeline.

Python

Create a renderer with default settings:

Source: examples/python/minimal/main.py snippet create-renderer

Source (local-scene example): examples/python/projectors/main.py snippet projectors-create-renderer

Or with configuration:

Source: tests/docs/python/test_support_api.py snippet doc-renderer-config

Source (rolling shutter): tests/docs/python/test_support_api.py snippet doc-create-rolling-shutter-renderer

Cleanup is automatic -- the renderer is destroyed when it goes out of scope.

C

All public C examples and doc tests link the static ovrtx loader

(ovrtx::ovrtx_static) and hand ovrtx_create_renderer() a

binary_package_root_path built from OVX_CONFIG_EXECUTABLE_DIR_TOKEN "/ovrtx".

ovrtx_setup_runtime() stages a side-by-side ovrtx/ link next to the

executable, and the token resolves to the running executable's directory at

runtime, so the loader finds the package without hard-coding an install path:

Source: examples/c/minimal/main.cpp snippet create-renderer

Optional explicit initialize/shutdown

ovrtx_initialize() is optional. If you do not call it, ovrtx_create_renderer() initializes ovrtx automatically.

Use explicit initialize/shutdown when creating and destroying multiple renderers in a process and you want one-time loader initialization to happen once:

Source: examples/c/vulkan-interop/src/main.cpp snippet initialize-and-create-renderer

If ovrtx is used together with ovPhysX in the same process, ovrtx must be initialized first. In Python, this means import ovrtx must come before import ovphysx. In C/C++, call ovrtx_initialize() before initializing ovPhysX.

With configuration entries:

Source: tests/docs/c/test_support_api.cpp snippet doc-version-and-config-c

Source (rolling shutter): tests/docs/c/test_support_api.cpp snippet doc-create-rolling-shutter-renderer-c

To add config entries, populate config.entries and config.entry_count before calling ovrtx_create_renderer. See the ovrtx_config_entry_* helpers in ovrtx_config.h.

Cleanup is manual -- you must call ovrtx_destroy_renderer():

Source: examples/c/minimal/main.cpp snippet unmap-and-cleanup

Key Types / Functions

| Python | C |

|--------|---|

| Renderer(config=None) | ovrtx_create_renderer(config, &renderer) |

| RendererConfig | ovrtx_config_t + ovrtx_config_entry_t |

| automatic __del__ | ovrtx_destroy_renderer(renderer) |

| renderer.version → (major, minor, patch) | ovrtx_get_version(&major, &minor, &patch) (callable before init) |

| renderer.config → RendererConfig | (no C equivalent -- config was passed at creation) |

Config helpers in C (ovrtx_config.h):

Texture streaming mode is process-global and applies to all active renderer

instances. OVRTX_TEXTURE_STREAMING_SYNCHRONOUS controls texture-feedback

processing; it does not make all texture loading operations synchronous.

Source: tests/docs/python/test_support_api.py snippet doc-renderer-config

Deprecation warnings remain enabled by default. Suppression is useful during a

phased migration, but does not suppress compile-time C/C++ diagnostics or

change the deprecated APIs' removal schedule.

Troubleshooting

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.