OVGL Viewport#

Load a USD stage into OVStage and inspect it with the interactive OVGL debug viewport.

Metadata#

  • Stable ID: ovgl_viewport.cpp.

  • Example type: Collection example.

  • Entry point: ovgl_viewport_cpp.

  • Source directory: source/examples/series/ovgl_viewport/cpp.

  • Languages: C++.

  • APIs: isaacsim.foundation.objects, isaacsim.ovgl_viewport.debug.

  • Topics: rendering, USD, viewport.

  • Required distributions: isaacsim_foundation, isaacsim_ovgl_viewport.

  • Series: OVGL Viewport (Collection).

  • Level: intermediate.

  • Required system capabilities: cmake, cpp, python, python_development.

Run the example#

Linux:

source/examples/example.sh run ovgl_viewport.cpp

Windows (PowerShell):

.\source\examples\example.bat run ovgl_viewport.cpp

See Build and run examples for setup and runner options.

About this example#

This example uses Foundation objects to author a viewport scene, imports it into OVStage, and displays it with isaacsim.ovgl_viewport.debug. With no argument it shows a cube; pass a local path or URL to inspect another USD stage.

Controls:

  • Drag with the left mouse button to look; use the mouse wheel to dolly.

  • W/S, A/D, and Q/E: move the camera; hold Shift to move faster.

  • R: reset the camera.

  • H: toggle the debug heads-up display (HUD).

  • Escape: close the viewport.