Skip to content

Add Experimental OvRTX Integration - #4817

Merged
kellyguo11 merged 36 commits into
isaac-sim:developfrom
bareya:pbarejko/ovrtx-integration
Mar 5, 2026
Merged

kellyguo11 merged 36 commits into
isaac-sim:developfrom
bareya:pbarejko/ovrtx-integration

Conversation

@bareya

@bareya bareya commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

image
diff --git a/source/isaaclab_tasks/isaaclab_tasks/utils/presets.py b/source/isaaclab_tasks/isaaclab_tasks/utils/presets.py
index 3ca5ea256d2..69532aa21f6 100644
--- a/source/isaaclab_tasks/isaaclab_tasks/utils/presets.py
+++ b/source/isaaclab_tasks/isaaclab_tasks/utils/presets.py
@@ -4,6 +4,7 @@
 # SPDX-License-Identifier: BSD-3-Clause
 
 from isaaclab_newton.renderers import NewtonWarpRendererCfg
+from isaaclab_ovrtx.renderers import OVRTXRendererCfg
 from isaaclab_physx.renderers import IsaacRtxRendererCfg
 
 from isaaclab.utils import configclass
@@ -15,4 +16,5 @@ from isaaclab_tasks.utils import PresetCfg
 class MultiBackendRendererCfg(PresetCfg):
     default: IsaacRtxRendererCfg = IsaacRtxRendererCfg()
     newton_renderer: NewtonWarpRendererCfg = NewtonWarpRendererCfg()
-    ovrtx_renderer: IsaacRtxRendererCfg = default
+    ovrtx_renderer: OVRTXRendererCfg = OVRTXRendererCfg()
+    ovrtx: OVRTXRendererCfg = OVRTXRendererCfg()  # alias for presets=newton,ovrtx

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Mar 4, 2026
@greptile-apps

greptile-apps Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR introduces the isaaclab_ovrtx extension — a new renderer backend that integrates OVRTX (Omniverse RTX) ray-tracing into the Isaac Lab tiled camera pipeline — and wires it into the existing Renderer factory. It also moves renderer initialisation earlier in TiledCamera._initialize_impl, switches Camera.num_instances to use _num_envs, and makes minor updates to the locomotion velocity environment config and the RSL-RL wrapper.

Several blocking issues need to be resolved before this can merge:

  • velocity_env_cfg.py — NameError at import: The new PhysicsCfg class references PhysxCfg, NewtonCfg, and MJWarpSolverCfg, none of which are imported. The module will raise NameError on every import.
  • setup.py — renderer subpackage not installed: packages=["isaaclab_ovrtx"] omits isaaclab_ovrtx.renderers, so from isaaclab_ovrtx.renderers import OVRTXRenderer will fail for any pip-installed user.
  • ovrtx_renderer.py — hardcoded /tmp export path: The stage is always exported to /tmp/stage_before_ovrtx.usda, ignoring cfg.temp_usd_dir. Concurrent training runs on the same host will overwrite each other's files.
  • ovrtx_renderer.py — assert for renderer validation: assert self._renderer is silently elided under python -O, hiding renderer creation failures entirely.
  • ovrtx_renderer_kernels.py — hardcoded DEVICE = "cuda:0": Binds all Warp kernels and output buffers to GPU 0, breaking multi-GPU setups.
  • Duplicate imports in vecenv_wrapper.py (double TYPE_CHECKING, double isaaclab.envs) and velocity_env_cfg.py (double sim_utils, double NewtonContactSensorCfg, double PhysXContactSensorCfg) and newton_warp_renderer.py (double BaseRenderer).
  • ovrtx_renderer_cfg.py docstring for simple_shading_mode says "default: True" but the actual default is False.

Confidence Score: 1/5

  • Not safe to merge — two issues will cause hard failures on import/install before any rendering occurs.
  • The PhysicsCfg class in velocity_env_cfg.py uses three undefined names, causing an unconditional NameError at module import time. The setup.py omits the isaaclab_ovrtx.renderers subpackage, making the package non-functional after installation. Additionally, the hardcoded /tmp export path creates a silent multi-process data-corruption hazard. These issues collectively block the PR from functioning correctly in any scenario.
  • source/isaaclab_tasks/isaaclab_tasks/manager_based/locomotion/velocity/velocity_env_cfg.py (NameError), source/isaaclab_ovrtx/setup.py (missing subpackage), source/isaaclab_ovrtx/isaaclab_ovrtx/renderers/ovrtx_renderer.py (hardcoded path, assert)

Important Files Changed

Filename Overview
source/isaaclab_ovrtx/isaaclab_ovrtx/renderers/ovrtx_renderer.py Core OVRTX renderer implementation; has two critical issues: hardcoded /tmp/stage_before_ovrtx.usda that bypasses cfg.temp_usd_dir (race condition risk in multi-process runs), and an assert used for renderer-creation validation that is silently skipped under -O. Also relies heavily on print() instead of the codebase's logger pattern.
source/isaaclab_ovrtx/setup.py Missing isaaclab_ovrtx.renderers in packages list — the renderer subpackage will not be installed, causing ImportError for any pip-installed user.
source/isaaclab_tasks/isaaclab_tasks/manager_based/locomotion/velocity/velocity_env_cfg.py New PhysicsCfg class references PhysxCfg, NewtonCfg, and MJWarpSolverCfg which are never imported — module will raise NameError at import time. Also has several duplicate imports added by this PR.
source/isaaclab_rl/isaaclab_rl/rsl_rl/vecenv_wrapper.py PR introduces duplicate from typing import TYPE_CHECKING and a redundant partial isaaclab.envs import alongside the complete one; functionally harmless but should be cleaned up.
source/isaaclab_ovrtx/isaaclab_ovrtx/renderers/ovrtx_renderer_cfg.py Config class is well-structured; docstring for simple_shading_mode incorrectly states "default: True" while the actual default is False.
source/isaaclab_ovrtx/isaaclab_ovrtx/renderers/ovrtx_renderer_kernels.py Warp GPU kernels are correct; DEVICE = "cuda:0" is hardcoded at module level, preventing multi-GPU use. normalize_depth_to_uint8 utility function is defined but unused by the renderer.
source/isaaclab_ovrtx/isaaclab_ovrtx/renderers/ovrtx_usd.py USD manipulation helpers for stage export and camera injection. get_render_var_config only selects a single RenderVar; when multiple data types are requested simultaneously (e.g., rgb + depth), only one will appear in the USD orderedVars, silently dropping the others.
source/isaaclab_newton/isaaclab_newton/renderers/newton_warp_renderer.py Minor change only: adds a redundant duplicate import of BaseRenderer from isaaclab.renderers.base_renderer when it is already imported via isaaclab.renderers.
source/isaaclab/isaaclab/sensors/camera/tiled_camera.py Moves renderer and render_data creation earlier in _initialize_impl (before _view is created) to ensure world_count is correct at construction time; intent is sound.
source/isaaclab/isaaclab/sensors/camera/camera.py num_instances property switched from self._view.count to self._num_envs; straightforward change to decouple instance count from the USD view.
source/isaaclab/isaaclab/renderers/renderer.py Adds "ov_rtx": "ovrtx" to the backend dispatch map; simple, correct change.

Sequence Diagram

sequenceDiagram
    participant TC as TiledCamera._initialize_impl
    participant R as Renderer (factory)
    participant OVR as OVRTXRenderer
    participant USD as ovrtx_usd helpers
    participant OVRTX as ovrtx.Renderer (C++)
    participant WK as Warp Kernels

    TC->>R: Renderer(cfg.renderer_cfg)
    R->>OVR: OVRTXRenderer(cfg) [via backend dispatch "ov_rtx"]
    TC->>OVR: create_render_data(sensor)
    OVR->>OVR: initialize(sensor)
    OVR->>USD: create_cloning_attributes(stage, ...)
    OVR->>USD: export_stage_for_ovrtx(stage, /tmp/...)
    OVR->>USD: inject_cameras_into_usd(usd_path, cfg, ...)
    USD-->>OVR: (combined_usd_path, render_product_path)
    OVR->>OVRTX: add_usd(combined_usd_path)
    OVR->>OVRTX: clone_usd(env_0 → env_1..N) [if use_cloning]
    OVR->>OVRTX: bind_attribute(camera xforms)
    OVR->>OVRTX: bind_attribute(object xforms)
    OVR-->>TC: OVRTXRenderData (warp buffers)

    loop Each physics step
        TC->>OVR: update_camera(positions, orientations, intrinsics)
        OVR->>WK: create_camera_transforms_kernel
        OVR->>OVRTX: write camera transforms via binding
        TC->>OVR: update_transforms()
        OVR->>WK: sync_newton_transforms_kernel
        OVR->>OVRTX: write object transforms via binding
        TC->>OVR: render(render_data)
        OVR->>OVRTX: step(render_products, delta_time)
        OVRTX-->>OVR: frames (tiled RGB / depth / albedo / semantic)
        OVR->>WK: extract_tile_from_tiled_buffer_kernel (per env)
        WK-->>OVR: per-env warp buffers
    end
Loading

Last reviewed commit: e053684

Comment thread source/isaaclab_ovrtx/setup.py Resolved
@greptile-apps

greptile-apps Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor
Additional Comments (4)

source/isaaclab_tasks/isaaclab_tasks/manager_based/locomotion/velocity/velocity_env_cfg.py
Undefined names — NameError at import time

PhysicsCfg references PhysxCfg, NewtonCfg, and MJWarpSolverCfg, but none of these names are imported anywhere in the file. The module will raise a NameError as soon as it is imported.

The necessary imports (likely from isaaclab_physx.sim and isaaclab_newton.sim) must be added. For example:

from isaaclab_physx.sim import PhysxCfg
from isaaclab_newton.sim import NewtonCfg
from isaaclab_newton.sim import MJWarpSolverCfg

(exact import paths should match the rest of the codebase).


source/isaaclab_tasks/isaaclab_tasks/manager_based/locomotion/velocity/velocity_env_cfg.py
Duplicate imports introduced

Several imports are duplicated in this file as a result of this PR:

  • import isaaclab.sim as sim_utils appears at both line 12 and line 14.
  • from isaaclab_newton.sensors import ContactSensorCfg as NewtonContactSensorCfg appears at lines 9 and 26.
  • from isaaclab_physx.sensors import ContactSensorCfg as PhysXContactSensorCfg appears at lines 10 and 27.

The duplicate lines should be removed.

from isaaclab.sensors import RayCasterCfg, patterns
from isaaclab.sensors import ContactSensorCfg

source/isaaclab_rl/isaaclab_rl/rsl_rl/vecenv_wrapper.py
Duplicate imports

This PR introduces two duplicate imports:

  1. from typing import TYPE_CHECKING appears at lines 7 and 9.
  2. from isaaclab.envs import DirectRLEnvCfg, ManagerBasedRLEnvCfg at line 14 duplicates part of from isaaclab.envs import DirectRLEnvCfg, ManagerBasedEnvCfg, ManagerBasedRLEnvCfg at line 16.

The incomplete first import (line 14) and the duplicate TYPE_CHECKING import (line 9) should be removed, keeping only the more complete versions.

from __future__ import annotations

from typing import TYPE_CHECKING
import gymnasium as gym
import torch
from rsl_rl.env import VecEnv
from tensordict import TensorDict

from isaaclab.envs import DirectRLEnvCfg, ManagerBasedEnvCfg, ManagerBasedRLEnvCfg

source/isaaclab_newton/isaaclab_newton/renderers/newton_warp_renderer.py
Redundant duplicate import

BaseRenderer is already imported on an earlier line via from isaaclab.renderers import BaseRenderer. The added line imports the same symbol via a different path and is a no-op.


(remove the duplicate from isaaclab.renderers.base_renderer import BaseRenderer line)

@bareya bareya changed the title OvRTX Integration Draft: OvRTX Integration Mar 4, 2026
@kellyguo11 kellyguo11 changed the title OvRTX Integration Adds OvRTX Integration Mar 4, 2026

@ooctipus ooctipus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could address cloning logic later, os.environ is a small concern but I don't think its a big deal neither, otherwise looks good to me! Thank you @bareya

@bareya bareya changed the title Adds OvRTX Integration Add OvRTX Integration Mar 4, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Mar 4, 2026
@bareya bareya changed the title Add OvRTX Integration Add Experimental OvRTX Integration Mar 4, 2026
@kellyguo11
kellyguo11 merged commit 4823df0 into isaac-sim:develop Mar 5, 2026
5 of 11 checks passed

# This is mapping of where backends live in the isaaclab_<backend> package.
_RENDERER_TYPE_TO_BACKEND = {"isaac_rtx": "physx", "newton_warp": "newton"}
_RENDERER_TYPE_TO_BACKEND = {"isaac_rtx": "physx", "newton_warp": "newton", "ovrtx": "ov"}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it is probably due to legacy, but still it looks a bit weird to map "physx" to IsaacRTXRenderer.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's for backwards compatibility.

[package]
version = "0.1.0"
title = "Omniverse renderers for IsaacLab"
description = "Extension providing Omniverse renderers (OVRTX, ovphysx, etc.) for tiled camera rendering."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is ovphysx a renderer??

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's not. It's a future simulator, distributed as a library, similar to ovrtx.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, it was a rhetoric question. The description makes it sound like ovphysx is one Omniverse renderer.

use_cloning: bool = False
"""When True, export only env_0 and use OVRTX clone_usd. When False, export full stage."""

log_level: str = "verbose"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is verbose logging level intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now it has no effect, it didn't do anything and i left it as verbose. This integration is experimental, we can change it in very near future.

renderer_type: str = "ovrtx"
"""Type identifier for OVRTX renderer."""

simple_shading_mode: bool = True

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, this MR only exposes this config but the support is not implemented yet, I will follow to add the implementation. Correct?

log_level: str = "verbose"
"""OVRTX carb log level: "verbose", "info", "warn", "error"."""

log_file_path: str = "/tmp/ovrtx_renderer.log"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is hardcoded to Linux system path. I think you want something like this:

log_file_path: str = str(Path(tempfile.gettempdir()) / "ovrtx_renderer.log")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, i will make a MR fixing it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants