Omniverse Realtime Viewer
OpenAIOfficialCreated by NVIDIA OmniverseDistributed by OpenAI
- Skill
- Meta (authoring, orchestration, planning, memory)
- Software development
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The Omniverse Realtime Viewer skill acts as a central orchestrator for developing USD-based viewer applications. It provides a structured approach to selecting implementation recipes, enforcing architectural conventions, and managing dependencies. By utilizing a set of focused reference documents, it guides developers through the lifecycle of building, configuring, and validating viewer applications, ensuring consistent behavior across different delivery paths such as local workstations or streaming environments.
What it does
- Routes development requests to specific implementation recipes based on the target delivery path.
- Enforces architectural rules for USD rendering, stage management, and UI integration.
- Provides guidance on camera selection, input handling, and viewport interaction.
- Standardizes the integration of AOV switching and render product configuration.
- Facilitates the capture of validation evidence for viewer readiness.
- Maintains separation between user-provided USD files and application-specific session state.
When to use it
- When initiating the development of a new USD viewer application within the Omniverse ecosystem.
- When determining the appropriate delivery path for a viewer, such as local native or streaming.
- When needing to implement consistent camera, selection, or UI behavior across viewer projects.
- When integrating advanced rendering features like AOV switching into an existing viewer.
Advantages
- Ensures architectural consistency across diverse viewer implementations.
- Provides a clear, modular path for adding specific capabilities like input routing or data display.
- Promotes clean separation of concerns between stage data and viewer-owned state.
- Standardizes the validation process for consistent delivery.
Usage examples
- “I need to build a browser-based viewer for USD files.”
- The agent will route you to the streaming viewer recipe, providing guidance on WebRTC stream setup, UI integration, and viewport interaction.
- “How do I implement AOV switching in my local USD viewer?”
- The agent will provide the AOV switching reference, detailing how to map render vars and update the display state on the server.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/openai/omniverse-realtime-viewer/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip omniverse-realtime-viewer.zip -d .agents/skills
Documentation by NVIDIA Omniverse
<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->
Omniverse Realtime Viewer
This is the top-level entry point for the Omniverse Realtime Viewer skill package. It is self-contained: all required routing, conventions, and validation guidance live in the selected references.
Use the focused reference documents as implementation recipes. This file chooses the right recipes and preserves the architectural rules that must hold across all generated viewer apps.
Instructions
Start by classifying the requested viewer, then read only the references needed
for that delivery path and feature set. Implement the render path first, layer
interaction and UI behavior on top of it, and finish by capturing validation
evidence from references/validation.md.
Read Order
Read
references/routing.mdto choose the delivery path and focused references.Read
references/conventions.mdbefore implementing camera, input, selection, viewport, streaming protocol, scene loading, or environment behavior.For broad viewer requests, read
references/usd-viewer-app/README.md.If the delivery path is unclear, read
references/streaming-vs-local/README.md.If the prompt includes layout, panels, controls, inspectors, status, or UX, read
references/viewer-ux-workflow/README.mdand then the focused viewer UI references. This applies to React/WebRTC, Tauri, Electron,ovui,ovwidgets, and Dear ImGui apps; "frontend" means user-facing UI, not only browser UI.For viewport interaction, read
references/viewer-input-routing/README.mdbeforereferences/camera-controls/README.md,references/native-picking-selection/README.md, orreferences/object-selection/README.md.Read only the focused capability references needed for the requested app.
Use
references/validation.mdto capture review evidence before handoff.
Non-Negotiables
Use
ovrtxfor all USD and 3D rendering.Browser apps display an
ovstreamWebRTC video stream plus UI. The browser does not render USD geometry.Do not substitute WebGL, Three.js, Babylon.js, PlayCanvas, A-Frame, model-viewer, react-three-fiber, glTF browser viewers, or other client-side 3D renderers.
If local validation cannot run because the GPU/runtime environment is absent, scaffold the
ovrtxpath and document the runtime requirement. Do not add a browser-renderer fallback.Keep user USD files unmodified. Viewer cameras, render products, render vars, settings, selection metadata, and runtime state belong in session/composite layers or app state.
Keep one owner for
renderer.step(), stage mutation, native picking, selection writes, and live attribute writes.Keep dependency acquisition in
references/dependencies/README.mdand deployment choices inreferences/cloud-deployment/README.md; do not duplicate package locations or deployment setup.
Focused Reference Families
Entry points and recipes:
references/usd-viewer-app/README.md,references/streaming-viewer-recipe/README.md,references/ovui-local-viewer-recipe/README.md,references/streaming-vs-local/README.md,references/electron-shm-viewer/README.md,references/ovwidgets-editor-shell/README.md.Rendering and stage:
references/ovrtx-rendering/README.md,references/stage-loading/README.md,references/stage-management/README.md,references/render-settings/README.md,references/aov-switching/README.md,references/stage-hierarchy/README.md,references/stage-queries/README.md,references/stage-attribute-reads/README.md,references/prim-transform-safety/README.md,references/usd-sample-data/README.md.Delivery and runtime:
references/streaming-server/README.md,references/streaming-client/README.md,references/streaming-messages/README.md,references/streaming-lifecycle/README.md,references/local-viewer/README.md,references/tauri-local-viewer/README.md,references/cpp-native-viewer/README.md,references/headless-shm-cli/README.md,references/viewer-backend-interface/README.md,references/webgl-shm-transport/README.md.Viewer UI/UX:
references/viewer-ux-workflow/README.md,references/viewer-layout-patterns/README.md,references/viewer-control-patterns/README.md,references/viewer-data-view-patterns/README.md,references/viewer-feedback-status/README.md.Interaction:
references/viewer-input-routing/README.md,references/camera-controls/README.md,references/object-selection/README.md,references/native-picking-selection/README.md,references/selection-feedback/README.md,references/selection-animation/README.md,references/transform-manipulator/README.md,references/gl-viewport-overlay/README.md,references/ovui-library/README.md,references/prim-pick-effects/README.md,references/prim-info-display/README.md,references/viewport-overlays/README.md.Infrastructure:
references/dependencies/README.md,references/windows-native-setup/README.md,references/cloud-assets/README.md,references/cloud-deployment/README.md,references/troubleshooting/README.md.
Build Workflow
Classify the prompt by delivery path, target user, required capabilities, runtime environment, validation needs, and explicit constraints.
Select a small reference set. Start with the recipe or routing reference, then add focused capabilities such as camera, picking, hierarchy, properties, render settings, transform tools, cloud assets, or deployment.
Read selected references before writing app code. Follow their build order, import order, data-channel contracts, and renderer ownership rules.
Implement the core render path first, then input routing and camera, then selection and data panels, then scene/settings features, then packaging or deployment.
Treat the selected references as the behavior contract for API shape, compatibility, and generated project structure.
Capture validation evidence before calling the viewer ready.
Examples
For a browser viewer request, use the streaming recipe references plus camera, picking, hierarchy, properties, render settings, and stream-status references.
For a local workstation viewer request, use the local or native delivery references plus renderer setup, stage loading, viewport input, and validation.
Completion Checklist
Selected references match the user's intent and delivery path.
No code path uses a browser-side 3D renderer for USD.
The generated app has one clear owner for render stepping and stage mutation.
User USD files remain untouched by viewer-owned session data.
Camera, input, selection, scene loading, and stream behavior follow
references/conventions.md.Setup/build/run results and visual interaction evidence are captured with
references/validation.md.
Files
- ATTRIBUTION.mdAdded by AutoGineer1.0 KiB
- BENCHMARK.md5.5 KiB
- LICENSEAdded by AutoGineer10.0 KiB
- SKILL.md7.4 KiB
- agents/openai.yaml315 B
- evals/evals.json8.1 KiB
- references/aov-switching/README.md15.2 KiB
- references/camera-auto-select/README.md7.4 KiB
- references/camera-controls/README.md17.1 KiB
- references/camera-picker/README.md9.7 KiB
- references/cloud-assets/README.md10.4 KiB
- references/cloud-deployment/README.md18.0 KiB
- references/conventions.md5.3 KiB
- references/cpp-native-viewer/README.md2.4 KiB
- references/cpp-native-viewer/interaction-features.md19.2 KiB
- references/cpp-native-viewer/presentation-loop.md9.0 KiB
- references/cpp-native-viewer/project-build.md6.4 KiB
- references/cpp-native-viewer/renderer-session.md4.5 KiB
- references/cpp-native-viewer/validation.md3.3 KiB
- references/dependencies/README.md3.4 KiB
- references/dependencies/electron-shm.md1.5 KiB
- references/dependencies/environment-validation.md4.4 KiB
- references/dependencies/frontend.md2.3 KiB
- references/dependencies/local-openusd-gpu.md4.4 KiB
- references/dependencies/nvidia-runtime.md9.0 KiB
- references/dependencies/ovrtx.md2.4 KiB
- references/dependencies/ovstream.md2.5 KiB
- references/dependencies/quick-setup.md5.3 KiB
- references/electron-shm-viewer/README.md2.2 KiB
- references/electron-shm-viewer/architecture-project.md6.3 KiB
- references/electron-shm-viewer/electron-client.md5.6 KiB
- references/electron-shm-viewer/protocol-interaction-lifecycle.md6.9 KiB
- references/electron-shm-viewer/python-shm-server.md4.9 KiB
- references/electron-shm-viewer/validation.md2.8 KiB
- references/gl-viewport-overlay/README.md7.9 KiB
- references/gl-viewport-overlay/architecture.md4.1 KiB
- references/gl-viewport-overlay/example-gizmo.md5.5 KiB
- references/gl-viewport-overlay/interaction-pattern.md4.0 KiB
- references/gl-viewport-overlay/projection-alignment.md4.3 KiB
- references/headless-shm-cli/README.md12.2 KiB
- references/huggingface-usd/README.md7.7 KiB
- references/local-viewer/README.md15.0 KiB
- references/native-picking-selection/README.md10.4 KiB
- references/object-selection/README.md9.4 KiB
- references/ovrtx-rendering/README.md18.2 KiB
- references/ovui-library/README.md3.3 KiB
- references/ovui-library/api-reference.md4.3 KiB
- references/ovui-library/extending.md4.8 KiB
- references/ovui-local-viewer-recipe/README.md3.7 KiB
- references/ovui-local-viewer-recipe/interaction-features.md16.1 KiB
- references/ovui-local-viewer-recipe/project-structure.md6.2 KiB
- references/ovui-local-viewer-recipe/setup-shell-renderer.md14.3 KiB
- references/ovui-local-viewer-recipe/validation-build-order.md5.5 KiB
- references/ovwidgets-editor-shell/README.md8.6 KiB
- references/prim-info-display/README.md9.3 KiB
- references/prim-pick-effects/README.md5.9 KiB
- references/prim-transform-safety/README.md8.2 KiB
- references/render-settings/README.md9.9 KiB
- references/routing.md16.5 KiB
- references/seg-outline-highlight/README.md1.4 KiB
- references/selection-animation/README.md9.7 KiB
- references/selection-feedback/README.md6.6 KiB
- references/stage-attribute-reads/README.md5.5 KiB
- references/stage-hierarchy/README.md17.1 KiB
- references/stage-hierarchy/fallback-worker-protocol.md3.5 KiB
- references/stage-loading/README.md19.3 KiB
- references/stage-management/README.md10.1 KiB
- references/stage-queries/README.md5.3 KiB
- references/streaming-client/README.md17.4 KiB
- references/streaming-lifecycle/README.md8.8 KiB
- references/streaming-messages/README.md16.5 KiB
- references/streaming-messages/server-handler-map.md3.1 KiB
- references/streaming-server/README.md18.6 KiB
- references/streaming-server/frame-loop-and-continuity.md3.3 KiB
- references/streaming-viewer-recipe/README.md4.8 KiB
- references/streaming-viewer-recipe/client-protocol.md11.0 KiB
- references/streaming-viewer-recipe/interaction-features.md13.0 KiB
- references/streaming-viewer-recipe/project-structure.md7.0 KiB
- references/streaming-viewer-recipe/server-runtime.md16.8 KiB
- references/streaming-viewer-recipe/validation-build-order.md5.8 KiB
- references/streaming-vs-local/README.md8.1 KiB
- references/tauri-local-viewer/README.md18.2 KiB
- references/tauri-shm-transform-gizmo/README.md11.8 KiB
- references/transform-manipulator/README.md15.0 KiB
- references/troubleshooting/README.md7.2 KiB
- references/troubleshooting/scenario-playbooks.md18.8 KiB
- references/usd-sample-data/README.md11.7 KiB
- references/usd-viewer-app/README.md7.5 KiB
- references/validation.md3.0 KiB
- references/viewer-backend-interface/README.md17.7 KiB
- references/viewer-control-patterns/README.md4.8 KiB
- references/viewer-data-view-patterns/README.md4.8 KiB
- references/viewer-feedback-status/README.md4.9 KiB
- references/viewer-input-routing/README.md7.8 KiB
- references/viewer-layout-patterns/README.md4.7 KiB
- references/viewer-ux-workflow/README.md4.6 KiB
- references/viewport-overlays/README.md4.8 KiB
- references/viewport-resize/README.md8.5 KiB
- references/webgl-shm-transport/README.md14.5 KiB
- references/windows-native-setup/README.md5.7 KiB
- skill-card.md2.9 KiB
- skill.oms.sig28.6 KiB
references/streaming-client/README.md
Streaming Client
Triggers
Use this skill for React streaming client, AppStreamer, DirectConfig, standalone ovstream Direct WebRTC, browser-streamed Omniverse Realtime Viewer, remote-video, StreamingContext, VITE_SERVER_HOST, frontend no video, or object-fit contain.
Use this for the browser side of a WebRTC Omniverse Realtime Viewer backed by
standalone ovstream. The viewer service may run under OKAS, Kubernetes, or
another session orchestrator, but the browser WebRTC client profile remains
standalone ovstream Direct mode, not a Kit, OVC, NVCF, or GFN connection
profile.
AppStreamer Direct API
Install the current released @nvidia/ov-web-rtc package as described in
references/dependencies/nvidia-runtime.md. For the connection shape, use the
current ovstream WebRTC browser client example as the reference:
https://github.com/NVIDIA-Omniverse/ovstream/tree/main/examples/webrtc_client
import { AppStreamer, StreamType, type DirectConfig } from '@nvidia/ov-web-rtc';
const config: DirectConfig = {
videoElementId: 'remote-video',
audioElementId: 'remote-audio',
server: 'localhost',
signalingPort: 49100,
nativeTouchEvents: true,
fps: 60,
maxReconnects: 5,
reconnectDelay: 3000,
onStart: msg => {},
onUpdate: msg => {},
onCustomEvent: msg => {},
onStop: msg => {},
onTerminate: msg => {},
};
await AppStreamer.connect({ streamSource: StreamType.DIRECT, streamConfig: config });onCustomEvent receives parsed app JSON. Mouse, keyboard, wheel, and touch events are forwarded by the streaming library automatically; do not send them manually as JSON messages.
DirectConfig Gotchas
Use
streamSource: StreamType.DIRECTwithserverandsignalingPortfor the standaloneovstreamserver.Do not use Kit, OVC, NVCF, or GFN client connection profiles in the browser WebRTC config. If an orchestrator launches the session, map its exposed endpoint to
serverandsignalingPort.Do not set
mediaServerormediaPort; SDP discovers the UDP media endpoint. SettingmediaPort: 49100sends media to the TCP signaling port and causes connected-with-no-video failures.Do not construct a sign-in URL, append a custom signaling path, or add auth/session fields to
DirectConfig. Portal auth and session lifecycle belong outside the browser WebRTC client config.The
<video id="remote-video">element must exist in the DOM beforeconnect().Tune reconnects to avoid log storms:
maxReconnects: 5,reconnectDelay: 3000.Keep the React effect that calls
AppStreamer.connect()stable. It should depend only on immutable connection config, not on stateful message routers that change when app messages arrive.Avoid
React.StrictModefor the first direct-streaming scaffold unless the connect effect explicitly guards double mount/connect. StrictMode can intentionally mount, cleanup, and remount effects in development.AppStreamer.sendMessage()returns a Promise. Treat app messages as fire-and-forget during reconnect windows and catch rejected sends so transient disconnects do not surface as unhandled browser errors.
function sendMessage(message: StreamMessage) {
if (!connectedRef.current) return;
void AppStreamer.sendMessage(message).catch(() => undefined);
}StreamingContext Pattern
Wrap AppStreamer in React context:
<StreamingProvider>
<AppContent />
</StreamingProvider>
const { status, sendMessage, onCustomEvent, errorMessage } = useStreaming();The provider should own exactly one AppStreamer.connect() call for a given host/port pair. Keep onCustomEvent routing behind a stable callback or a ref-backed dispatcher so state updates from server events do not recreate the connection effect and trigger cleanup.
The hook should expose:
| Field | Purpose |
|---|---|
status | `'connecting' |
sendMessage | send {event_type, payload}; no-op if disconnected |
onCustomEvent | subscribe to server messages; returns cleanup |
errorMessage | failure detail |
On connect, prefer the server's push_initial_state when a stage is already loaded; it should send openStageResult, root getChildrenResult, AOV state, and any overlay state after the data channel opens. If the server starts idle and the app has bundled samples, auto-open the first sample once after status === 'connected'. Send later openStageRequest messages only when the user switches scenes, opens a file, or resets/reloads.
const openedInitial = useRef(false);
useEffect(() => {
if (status !== 'connected' || openedInitial.current) return;
openedInitial.current = true;
sendMessage({ event_type: 'openStageRequest', payload: { url: sampleAssets[0].url } });
}, [status, sendMessage]);
function handleSelectAsset(url: string) {
sendMessage({ event_type: 'openStageRequest', payload: { url } });
}Clean up handlers:
useEffect(() => {
const unsub = onCustomEvent(event => routeEvent(event));
return unsub;
}, [onCustomEvent]);Do not call AppStreamer.terminate() from ordinary message-handler cleanup. Only terminate when the provider is truly unmounting or the user intentionally disconnects. A common failure is: connect, receive openStageResult, rerender, effect cleanup calls terminate, video shows one frame, then goes black.
Video Layout
Browser-streamed Omniverse Realtime Viewer apps use a fixed server render resolution, typically 1920x1080. Let the page resize the video element with preserve-aspect containment:
#remote-video {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}Do not send viewport-size messages when CSS layout changes. NVST handles letterbox coordinate mapping for stream input when the video is contained inside a differently shaped DOM box. Do not synthesize JSON mouseInput; AppStreamer/NVST forwards browser input through the native input channel.
For React shells with sidebars, top bars, or inspectors, keep the stream surface layout-stable while UI state changes:
.viewer-shell {
height: 100vh;
overflow: hidden;
}
.viewer-content,
.sidebar,
.viewport {
min-height: 0;
overflow: hidden;
}
.viewport {
position: relative;
}
#remote-video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
}Do not let tree expansion, property-panel updates, or selection state change the
viewport container's dimensions. Use flex/grid tracks with constrained overflow
for adjacent panels so the <video> element remains pinned while React rerenders.
Viewport Input Ownership
Browser DOM controls can sit above or beside the streamed video, but native WebRTC input still belongs to the server. Explicitly arm viewport input only while the pointer is over the viewport, and disarm it when the pointer enters or presses UI chrome:
function setViewportInputActive(active: boolean) {
sendMessage({
event_type: 'setViewportInputActive',
payload: { active },
});
}
<aside
onPointerEnter={() => setViewportInputActive(false)}
onPointerDown={() => setViewportInputActive(false)}
onWheel={() => setViewportInputActive(false)}
>
<StageTree />
</aside>
<main
className="viewport"
onPointerEnter={() => setViewportInputActive(true)}
onPointerDown={() => setViewportInputActive(true)}
onPointerLeave={() => setViewportInputActive(false)}
>
<video id="remote-video" muted autoPlay playsInline />
</main>The server should implement the matching gate from viewer-input-routing, ignore
on_input events while this flag is false, and cancel any active camera drag.
This prevents sidebar clicks, tree expansion, inspector scrolling, and top-bar
selection changes from being interpreted as camera orbit, pan, zoom, or pick
gestures.
Config Resolution
Use this priority:
URL params:
?server=192.168.1.50&signalingport=49100Env vars:
VITE_SERVER_HOST,VITE_SIGNALING_PORTDefaults:
window.location.hostname, port49100
VITE_SERVER_HOST=192.168.1.100
VITE_SIGNALING_PORT=49100Component Layout
App.tsx
StreamingProvider
AppContent
video#remote-video
stage selector
StageTree recursive tree
Inspector selected-prim panelWhen generating a streaming frontend, create equivalent files such as
frontend/src/streaming/StreamingContext.tsx, frontend/src/App.tsx,
frontend/src/components/StageTree.tsx,
frontend/src/components/Inspector.tsx,
frontend/src/hooks/useWebRTCBackend.ts, and frontend/src/types/usd.ts.
ViewerBackend Adapter
When using shared UI components, wrap AppStreamer in a ViewerBackend adapter instead of letting every component send raw messages. The adapter is promise-based for query responses, observable for selection, and caches tree responses by path.
Required methods:
export interface ViewerBackend {
connect(): Promise<void>;
disconnect(): void;
loadStage(url: string): Promise<void>;
getChildren(path: string): Promise<PrimNode[]>;
getStageTree(rootPath?: string): Promise<PrimNode[]>;
getProperties(path: string): Promise<PrimProperty[]>;
getVariants(path: string): Promise<Record<string, { options: string[]; selection: string }>>;
setVariant(path: string, variantSet: string, selection: string): Promise<void>;
selectPrims(paths: string[]): Promise<void>;
onSelectionChanged(callback: (paths: string[]) => void): () => void;
}Adapter implementation rules:
Keep resolver buckets keyed by URL or prim path for
openStageResult,getChildrenResult,getPropertiesResponse, andgetVariantsResponse.Add timeouts to promises so dropped data-channel responses do not hang UI components permanently.
Cache latest children per
prim_pathand return cached rows if a request times out.Subscribe to
stageSelectionChangedand call every selection subscriber with the canonical server path list.On
getChildrenResult, make returned child paths selectable by sendingmakePrimsSelectable {paths}.Accept the current property event name
getPropertiesResponse; handlegetPropertiesResultonly as a compatibility alias.For selected-prim panels, keep the latest selected path in a
useRefand comparegetPropertiesResponse.prim_pathagainst that ref. Do not compare against aselectedPathvalue captured in the React message callback closure; fast server responses can otherwise be dropped after a validstageSelectionChangedevent.Route AppStreamer lifecycle through
EventActionandEventStatus:EventAction.STARTplusEventStatus.SUCCESSmeans connected;EventStatus.ERROR,onStop, andonTerminateupdate failed/connecting state and reject relevant pending work.
Resolver pattern:
const childResolvers = useRef(new Map<string, Resolver<PrimNode[]>[]>());
const propertyResolvers = useRef(new Map<string, Resolver<PrimProperty[]>[]>());
const variantResolvers = useRef(new Map<string, Resolver<VariantMap>[]>());
const selectionHandlers = useRef(new Set<(paths: string[]) => void>());
const treeCache = useRef(new Map<string, PrimNode[]>());
case 'getChildrenResult': {
const payload = event.payload as { prim_path?: string; children?: PrimNode[] };
const key = payload.prim_path || rootPrimPathRef.current;
const children = normalizeChildren(payload.children || []);
treeCache.current.set(key, children);
resolveBucket(childResolvers.current, key, children);
sendMessage({ event_type: 'makePrimsSelectable', payload: { paths: children.map((c) => c.path) } });
break;
}
case 'getPropertiesResponse':
case 'getPropertiesResult': {
const payload = event.payload as { prim_path?: string; properties?: Record<string, unknown> };
resolveBucket(propertyResolvers.current, payload.prim_path || '', toPrimProperties(payload.properties || {}));
break;
}
case 'getVariantsResponse': {
const payload = event.payload as { prim_path?: string; variants?: VariantMap };
resolveBucket(variantResolvers.current, payload.prim_path || '', payload.variants || {});
break;
}Track the server-provided root path. openStageResult includes root_prim_path; use it for the initial hierarchy query, top-level makePrimsSelectable, and shared backend getStageTree() defaults.
const rootPrimPathRef = useRef('/World');
case 'openStageResult': {
const payload = event.payload as { result: string; url: string; root_prim_path?: string };
if (payload.result === 'success') {
const root = payload.root_prim_path || '/World';
rootPrimPathRef.current = root;
sendMessage({ event_type: 'getChildrenRequest', payload: { prim_path: root } });
sendMessage({ event_type: 'getPrimCountRequest', payload: {} });
}
break;
}
case 'getChildrenResult': {
const payload = event.payload as { prim_path: string; children: ServerPrim[] };
const children = (payload.children || []).map(normalizePrim);
if (payload.prim_path === rootPrimPathRef.current) setPrims(children);
else setPrims(prev => updatePrimChildren(prev, payload.prim_path, children));
const paths = children.map(child => child.path).filter(Boolean);
if (paths.length > 0) {
sendMessage({ event_type: 'makePrimsSelectable', payload: { paths } });
}
break;
}If using the shared UI adapter, route property responses by the current event name:
case 'getPropertiesResponse': {
const payload = event.payload as { prim_path?: string; properties?: Record<string, unknown> };
const properties = Object.entries(payload.properties || {}).map(([name, value]) => ({
name,
type: typeof value,
value: String(value),
}));
resolveBucket(propertyResolvers.current, payload.prim_path || '', properties);
break;
}Do not listen only for the stale getPropertiesResult name.
For direct React inspectors without a full ViewerBackend, correlate property
responses through a ref-backed selected path:
const [selectedPath, setSelectedPath] = useState('');
const selectedPathRef = useRef('');
case 'stageSelectionChanged': {
const next = payload.prims?.[0] || '';
selectedPathRef.current = next;
setSelectedPath(next);
setProperties(null);
if (next) {
sendMessage({ event_type: 'getPropertiesRequest', payload: { prim_path: next } });
}
break;
}
case 'getPropertiesResponse': {
const payload = event.payload as { prim_path?: string; properties?: Record<string, unknown> };
if (payload.prim_path === selectedPathRef.current) {
setProperties(payload.properties || {});
}
break;
}Frontend UI Expectations
A full browser client should be a usable Omniverse Realtime Viewer UI, not just a video tag. Include these pieces when generating a full browser-streamed Omniverse Realtime Viewer:
Auto-open the first sample stage once the stream connects when the server has not already pushed a loaded stage.
Honor server
push_initial_stateon reconnect: do not require a fresh user action to leave loading state.Populate the AOV
<select>fromavailableAOVsResultoractiveAOVState.available; do not hardcode onlyLdrColor,NormalSD, andDepthSD.Display prim count from
getPrimCountResult.Display connection status, FPS from video playback quality when available, and latency when WebRTC stats expose it.
Stage tree supports lazy expansion, search/filter, selected-row state, and prim type icons.
Use icon sprites or equivalent symbols for
mesh/geom,camera,light,scope, andxform.Inspector tracks selected prims from
stageSelectionChangedand fetches properties withgetPropertiesRequest.Inspector ignores stale property responses by matching
prim_pathto a ref-backed current selection, not to closure-captured React state.Keep
#remote-video { object-fit: contain; }, pin it inside a stable viewport container, and put DOM controls above the video with explicitz-index.DOM controls disable viewport input with
setViewportInputActive {active:false}; the viewport enables it while the pointer is over the stream.
When DOM controls overlay the stream, give them explicit stacking above the <video> element:
.toolbar,
.error-banner {
position: absolute;
z-index: 3;
}Without explicit stacking, the hardware video layer can visually cover controls once frames arrive, making the app look like it lost the connection UI.
Recursive Tree Updates
function updatePrimChildren(prims: USDPrim[], targetPath: string, children: USDPrim[]): USDPrim[] {
return prims.map(prim => {
if (prim.path === targetPath) return { ...prim, children };
if (prim.children && Array.isArray(prim.children))
return { ...prim, children: updatePrimChildren(prim.children, targetPath, children) };
return prim;
});
}Children semantics: truthy non-array means expandable/not loaded, null or absent means leaf, array means loaded children.
The current server worker returns children: boolean as expandability metadata, while StageTree reads hasChildren. Normalize at the boundary:
type ServerPrim = Omit<USDPrim, 'children'> & {
children?: ServerPrim[] | boolean | null;
has_children?: boolean;
};
function normalizePrim(prim: ServerPrim): USDPrim {
const childArray = Array.isArray(prim.children) ? prim.children.map(normalizePrim) : undefined;
const hasChildren = Array.isArray(prim.children)
? prim.children.length > 0 || Boolean(prim.hasChildren ?? prim.has_children)
: Boolean(prim.hasChildren ?? prim.has_children ?? prim.children);
return { ...prim, hasChildren, children: childArray ?? null };
}See also: streaming-server, streaming-messages, streaming-lifecycle, stage-management, stage-hierarchy.
Requirements and compatibility
Written for: OpenAI Codex
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
The author says: Orchestrator skill. Downstream focused references may require NVIDIA GPUs, ovrtx, ovstream, ovui, OpenUSD, Python, Node/React, Tauri, Electron, C++, or cloud GPU deployment access depending on the selected viewer path.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA Omniverse
- Publisher
- OpenAI (Official)
- Distributed by
- OpenAI
- Source
- openai/plugins · plugins/nvidia/skills/omniverse-realtime-viewer · commit d420d13
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (written by AutoGineer)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA Omniverse or OpenAI.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download omniverse-realtime-viewer.zip