Update 0 2 0 3

From NVIDIA-Omniverse/ovrtx · View interactive version

Update 0 2 0 3 is an AI agent skill from the GitHub repository NVIDIA-Omniverse/ovrtx. Upgrade skill to migrate an existing ovrtx codebase from 0.2.0 to 0.3.0. Use when the user asks to "upgrade from 0.2 to 0.3", migrate ovrtx API usage, update 0.2 projects to 0.3, or fix code after moving from ovrtx 0.2.x to 0.3.x.

How to use this skill

Skill file

Update 0.2 to 0.3

When to Use

Use this skill when the user asks to upgrade an existing ovrtx project from 0.2.0 or 0.2.x to 0.3.0 or 0.3.x, especially with the prompt "upgrade from 0.2 to 0.3".

Do not use this for brand-new examples unless the user explicitly wants migration guidance. For new code, prefer the topic skills that describe current 0.3 usage directly.

Inputs

Resolve inputs in this order: the user's repository, its dependency files, then source code and docs.

Prerequisites

Instructions

  1. Find version pins first. Search package and lock files for ovrtx==0.2, ovrtx~=0.2, or equivalent C package references. Update to the user's requested 0.3 build; in this repo's examples the packaged Python pin is ovrtx==0.3.0.
  2. Scan for 0.2-only Python symbols: RendererResult, add_usd, add_usd_layer, add_usd_async, add_usd_layer_async, output_partial_frames, step_async, and MappedRenderVar.tensor.
  3. Scan for 0.2-only C symbols: ovrtx_add_usd, ovrtx_usd_input_t, ovrtx_rendered_output_t, ovrtx_map_rendered_output, ovrtx_unmap_rendered_output, ovrtx_rendered_output_handle_t, ovrtx_rendered_output_map_handle_t, OVRTX_CONFIG_OUTPUT_PARTIAL_FRAMES, ovrtx_release_errors, ovrtx_flush_op_log, and old renderer-scoped ovrtx_set_log_callback calls.
  4. Rewrite USD loading by intent:
  1. Rewrite Python async rendering. Renderer.step() still returns fetched outputs. Renderer.step_async() now returns Operation[PendingFetch[RenderProductSetOutputs]]; call wait() for the pending fetch and then fetch() for outputs.
  2. Rewrite render output mapping. In Python, use DLPack directly on a single-tensor mapping or named tensor/param access for composite outputs. In C, map to ovrtx_render_var_output_t, read tensors[] and params[], then unmap with ovrtx_unmap_render_var_output.
  3. Remove global partial-frame config. If 0.2 code explicitly disabled partial frames, author bool omni:sensor:Core:partialOutputs = false instead on the prim that each affected RenderProduct's camera relationship targets, whether a Camera or an OmniLidar; ovrtx 0.3 reads it from either, although only the lidar schema declares it. The 0.3.0 changelog names bool omni:sensor:Core:accumulateOutputs = true for this; that attribute was removed from the sensor schema before 0.3.0 shipped and ovrtx does not read it, so follow this step rather than the changelog. If 0.2 code omitted the setting or used the default partial-frame behavior, remove the config without replacement.
  4. Rewrite C wait/error handling. Read ovrtx_op_wait_result_t.error_op_ids, fetch strings with ovrtx_get_last_op_error(), copy or print them before the next wait on the same thread, and remove ovrtx_release_errors.
  5. Rewrite C logging. The callback is process-global, no longer receives an op id, uses carb-style severity values, and flushing is ovrtx_flush_log(timeout).
  6. Validate with the narrowest runnable project tests or examples. For Python projects, run the user's normal test command or at least import and exercise the migrated code path. For C/C++ projects, rebuild so removed symbols are caught at compile time.

Output Format

Scripts

This skill has no scripts. Use repository search and targeted edits directly.

Limitations

Migration Details

Python dependency and renderer config

Update the ovrtx dependency pin, remove RendererResult imports, and remove RendererConfig.output_partial_frames.

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

Python USD loading

Use open_usd() for the active root layer and add_usd_reference*() for additive removable content.

Source: examples/python/minimal/main.py snippet add-usd

Source: tests/docs/python/test_stage_mutation.py snippet doc-add-usd-reference-from-string

Source: tests/docs/python/test_sensor_configuration.py snippet doc-add-render-config-layer

Python step and render output readback

Keep synchronous step() call sites simple. For async call sites, fetch outputs explicitly after the render operation completes.

Source: examples/python/minimal/main.py snippet step

Source: tests/docs/python/test_camera_sensors.py snippet doc-step-async

Source: examples/python/minimal/main.py snippet read-render-output

Source: tests/docs/python/test_camera_sensors.py snippet doc-step-and-map-camera-outputs

C/C++ USD loading

Replace ovrtx_add_usd() and ovrtx_usd_input_t with root-stage or reference APIs.

Source: examples/c/minimal/main.cpp snippet load-usd-and-wait

Source: tests/docs/c/test_stage_mutation.cpp snippet doc-add-usd-reference-from-string-c

C/C++ render output mapping

Replace rendered-output types and mapping functions with render-var-output names and named tensor access.

Source: examples/c/minimal/main.cpp snippet map-rendered-output-cpu

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

Source: tests/docs/c/test_camera_sensors.cpp snippet doc-map-render-output-cuda-c

Source: tests/docs/c/test_camera_sensors.cpp snippet doc-map-render-output-cuda-array-c

C/C++ wait errors and logging

Use transient per-thread wait error data and process-global logging callbacks.

Source: tests/docs/c/test_error_handling.cpp snippet doc-wait-op-error-retrieval-c

Source: tests/docs/c/test_error_handling.cpp snippet doc-wait-op-no-release-errors-c

Source: tests/docs/c/test_logging.cpp snippet doc-log-callback-prefix-filter-c

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.