Streaming an Ogre Scene to QAROS
If your C++ application renders with Ogre 1.12, the library qar_ogre_adapter streams its scene to QAROS. For every target that the Hub lists, it renders the scene for each eye into a color and a depth texture and hands the textures to the C API, so your application needs no call of the C API for the stream. This page describes how a frame travels, the three ways to use the library, the conventions your scene follows and where the library stops. The installation steps, the API reference and the troubleshooting tables stay in the repository github.com/Quaternar/qaros-ogre; this site links to them and does not copy them.
:::info Which QAROS runtime
This page describes the library qar_ogre_adapter as it was built and checked against the installed QAROS runtime 0.9.0-dev.3008+65dc9aeb, a development build of the setup that precedes the 0.9.0 release. The library joins QAROS the way Onboarding and Sessions describes: a program on the PC that runs the Hub joins as a local app, and a program that talks to a Hub on another PC pairs with a code, through the deprecated code onboarding (see Joining the Hub). Joining the Hub collects what the library does for that. Observations that were made with an earlier SDK drop name the drop. The document docs/SDK_COMPATIBILITY.md of the repository lists the runtime that the library supports and how to identify yours.
:::
What the library does for you
For each target that asks for a frame, qar_ogre_adapter takes the pose and the field of view of each eye from QAROS, renders your Ogre scene for each eye into a color texture and a depth texture, and copies the textures into the textures that QAROS hands out. It renders the peers that are due in one batch under a render budget. Your application keeps its Ogre scene and its render loop: the library creates its eye cameras in your scene manager and its render textures on the first frame of a stream, and it never creates or destroys the scene manager.
Three modules of C++17 static libraries make up the layer. Link only the ones you need. Nothing in them depends on Qt, ROS or RViz; the ROS 2 Humble distribution is only the source of Ogre. The library is independent of the Qt panel package qar_qt_streaming; the RViz2 plugin builds on both.
| Module | What it holds | Calls the C API |
|---|---|---|
qar_ar_core | The core that the other two build on: the panel and pointer types, the pointing ray, the spatial frames, the pick model, an opt-in timing log and the one wrapper of the vendored C header. | No |
qar_ogre_streaming | The Ogre side: the stream manager, the batched render scheduler, the render budget, the eye render targets, the pose conversion, the scene lighting and the diagnostics. It reaches QAROS only through the interfaces IQarRenderSenderFactory and IQarRenderSenderAdapter. | No |
qar_qar_adapter | The adapter of the C API, in five components: capi, session, render, url and gestures. Streaming a 3D scene needs session, which holds the session owner that joins the Hub and lists its targets, and render, which holds the sender factory and the render sender of every target. | Yes, the only module that does |
Ogre, Qt and RViz2 on QAROS says when to use which of the three libraries and what to install.
How a frame travels
The render loop of your application calls OgreQarStreamingManager::render_tick() on its render thread. One call renders the streams that are due, in one batch:
- A target asks for a frame. For every stream that the scheduler admits on this tick, the library polls
qar_render_sender_try_begin_frame, which never blocks. While QAROS has no render request from the viewer, the stream skips the tick and records it asSenderNotReady. That is the normal state while the viewer paces the stream below your tick rate. - The view arrives. When a frame is wanted, the library reads the pose and the field of view of the two eyes from the frame information and pairs them with the near and far distances of its configuration. The stream turns them into a camera placement and an off-axis projection for each eye.
- The library renders both eyes. It renders your scene for each eye into a color and a depth render texture. The scheduler takes your render lock, if you pass one, once for the whole batch, so every peer samples the same snapshot of the scene.
- The library hands the textures to QAROS. It asks QAROS for the textures of the frame with
qar_render_sender_frame_opengl, copies the rendered textures into them with a framebuffer blit, waits withglFinishuntil the copy is complete and shows the frame withqar_render_sender_show_frame. - The next wait starts at once. By default the library starts the wait for the next frame right after it shows a frame. The wait runs in the gap between two ticks, so a frame costs one tick.
Every peer costs a color and a depth render of your scene for each eye in every frame, so on every tick the scheduler decides which streams render. A stream is due when its next-due time has passed. The scheduler orders the due streams, most overdue first, admits a stream under floor protection unconditionally and admits the others while the sum of their estimated costs stays within the batch budget and the cap. A due stream that does not fit is shed for this tick and counted as a skipped frame with the reason BudgetShed. These settings control the decision:
| Setting | Default | Meaning |
|---|---|---|
StereoStreamConfig::max_fps | 72 | The target rate of one stream. A value of 0 is refused. |
RenderBudgetConfig::max_batch_milliseconds | 16.0 | The soft time budget of one batch for all peers. 0 means unlimited. |
RenderBudgetConfig::max_streams_per_tick | 0 | A cap on the streams rendered in one tick; a stream under floor protection renders beyond it. 0 means unlimited. |
RenderBudgetConfig::floor_fps | 30 | A due stream that has not rendered within 1 / floor_fps seconds is always admitted. 0 switches the protection off. |
RenderBudgetConfig::default_stream_cost_ms | 2.0 | The cost assumed for a stream that has never rendered. The measured cost replaces it after the first render. |
QarCApiSenderFactory::Config::max_peers | 8 | The ceiling on concurrently streamed peers. A further peer is refused with a logged warning. |
Three ways in
Take them in this order:
| Way in | What it does | Needs |
|---|---|---|
| The headless sample | Renders the scene for synthetic peers and writes their stereo images. | Ogre only, no SDK |
| The live example | Joins the QAROS Hub and streams the same scene to the first target that comes up. | QAROS and a local desktop session |
| Your own application | Replaces the scene of the example with yours. | Ogre to build, QAROS to connect |
The headless sample
The program qar_ogre_standalone_streaming_sample brings up Ogre with a hidden OpenGL window and renders the scene for synthetic stereo peers that live in the same process, through the same manager as the live example. It loads no QAROS library and sends nothing anywhere. Run it with scripts\run_ogre_sample.ps1: by default it renders 120 ticks for three peers at 1280 by 720 pixels for each eye and writes the stereo images of each peer. For each peer it checks that both eyes contain content, that the depth is present and not uniform, that the two eyes differ, and that the nearer part of the scene shifts more between the eyes than the farther part. It exits with 0 when every check passes, with 1 when a check fails and with 2 for a wrong argument or when Ogre cannot start.
The live example
The program qar_ogre_live_stream_example joins the Hub and streams the same scene to the first target that comes up, a headset or a receiver of a Visualizer. It takes these options:
| Option | Effect |
|---|---|
--local | Join the Hub of this PC as a local app. This is the default. QAROS asks once, in its own window, whether the program may join (click Allow), and asks again after each rebuild of the program, because the program is not code-signed. |
--hub HOST:PORT --code CODE | Pair with the Hub of another PC by a code, through the deprecated code onboarding. Current QAROS shows no code for it (see Joining the Hub). Only the first join needs the code: the pairing is stored for the next start, which then needs --hub HOST:PORT alone. |
--forget | Erase the stored pairing with the Hub of another PC and exit. |
--connect-only | Join QAROS, print the runtime, the mode, the peer of the program, the app volume and the targets, and exit. It opens no window and streams nothing. |
--seconds N | Without --connect-only: wait for a target and stream the scene to the first one for N seconds, 60 by default. |
Without --connect-only, the example brings up Ogre with a hidden window, joins the Hub, waits for a target and prints a line when its stream opens and when it closes.
Set QAR_DEPTH_ENCODING=ndc and QAR_POSE_WORLD=zup in the shell before you start the example. As far as the authors of qar_ogre_adapter observed, the Visualizer needs the first; the scene of the sample is Z-up, so it needs the second. Conventions your renderer must follow says why. The library reads each variable once for each process.
The authors of qar_ogre_adapter have not run this example in a session with a target. The library ran in live sessions of the RViz2 plugin, which streams the scene of RViz2 to a Visualizer through it.
Your own application
Your application replaces only the scene of the example, which takes its scene from the sample.
The objects. Link the target qar_ogre_adapter::render; it brings qar_ogre_streaming, qar_ar_core, session, capi and Ogre. A consumer of the installed package asks find_package for the components that it uses. Then create:
- The manager.
OgreQarStreamingManageris the entry point. It owns the scheduler and one stereo stream for each peer. Its configuration,OgreQarStreamingConfig, needs ascene_manager(your OgreSceneManager), arender_thread_executorand aqar_sender_factory; the constructor throwsstd::invalid_argumentwhen one of them is missing. Adiagnosticssink, arender_budget, arender_lock, aclock, afence_hookand ascene_lightingrig are optional. - The executor.
IRenderThreadExecutoris how the library asks whether the calling thread is the render thread (is_render_thread) and posts work to it (post_to_render_thread). The example renders on its main thread, so its executor reports the main thread. - The session owner.
QarSessionOwnerjoins the Hub on a thread of its own (Joining the Hub). You create it with aSessionOwnerConfig, callconnect(), and read its news withpoll();wait_for_session()blocks until it runs, for a console program. - The factory.
QarCApiSenderFactoryis the sender factory of QAROS. It borrows the session of the owner and lists the targets of the Hub; its constructor makes no QAROS call. The manager asks it for a sender when it creates the stream of a target. Its configuration needs the copy hookmake_gl_copy_image_hook().
The frame loop. Each pass of your render loop runs on the render thread, and the code below follows the source of the example. capture_gl_context() comes first, because the factory creates a sender only after it has latched the OpenGL context that is current on the thread. The sender of a target is created asynchronously, so the first attempts of create_stream fail with InvalidState; on_render_request queues the target again, so that the next pass retries it. render_tick() renders one batch of the streams that are due; called on another thread, it returns RenderThreadRequired without touching Ogre. For a target whose stream QAROS closed, call destroy_stream and then forget, which frees the place of the target under max_peers. The two blocks marked (targets) take the targets from the factory, which hears of them from the owner.
auto owner = std::make_shared<qar_qar_adapter::QarSessionOwner>(owner_config); // its own thread
auto factory = std::make_shared<qar_qar_adapter::QarCApiSenderFactory>(owner, factory_config);
owner->connect();
// A console program may wait; a program with a window polls the owner from its loop instead.
qar_qar_adapter::wait_for_session(*owner, std::chrono::seconds(150));
factory->attach(); // gets the app volume; blocks for seconds
qar_ogre_streaming::OgreQarStreamingConfig streaming;
streaming.scene_manager = scene_manager; // your Ogre::SceneManager
streaming.render_thread_executor = executor; // your IRenderThreadExecutor
streaming.qar_sender_factory = factory;
auto manager = std::make_unique<qar_ogre_streaming::OgreQarStreamingManager>(streaming);
streaming.qar_sender_factory.reset(); // the manager holds the factory now
manager->set_streaming_active(true);
while (running) {
std::vector<qar_qar_adapter::SessionEvent> events;
owner->poll(events); // news of the owner: a lost Hub, a target
factory->capture_gl_context(); // latch the GL context of this thread
// (targets) the targets that came up
std::vector<QarPeerId> requested;
factory->poll_new_peer_requests(requested);
for (const QarPeerId & id : requested) {
qar_ogre_streaming::StereoStreamConfig stream;
stream.peer_id = id;
const qar_ogre_streaming::Result created = manager->create_stream(stream);
if (created.ok()) {
manager->get_stream(id)->set_active(true);
} else if (created.status != qar_ogre_streaming::Status::AlreadyExists) {
factory->on_render_request(id); // the sender is still being created
}
}
manager->render_tick(); // one batch of the streams that are due
// (targets) the targets that went away, and the streams QAROS closed
std::vector<QarPeerId> closed;
factory->poll_closed_peers(closed);
for (const QarPeerId & id : closed) {
manager->destroy_stream(id);
factory->forget(id);
}
}
The manager keeps its own reference to the factory, so the code clears the factory from its configuration object: no other reference may outlive the shutdown. Shut down in this order: the manager first, because the senders of its streams belong to the QAROS session; then factory->detach(), which lets go of the app volume; then the owner, which destroys the session, the runtime and the library; then Ogre.
The threads.
| Thread | What runs there | Rule |
|---|---|---|
| The render thread of your application | render_tick, the creation of the eye targets, capture_gl_context, create_sender, the begin-frame polling and the submit of each frame, poll_new_peer_requests and poll_closed_peers | It is the only thread of your application that touches Ogre and OpenGL. If you pass a render lock, the scheduler holds it around each batch. |
| A graphics thread of QAROS | It reads the textures of a sender with the WGL context that the factory created for that sender. | The factory supplies the context and its callbacks, and it never makes that context current on your render thread. |
| The thread of the session owner | The load of the runtime, the onboarding, the peer subscription and every QAROS call that can wait for the Hub (a query, an app-volume or panel change), run in the order they were posted | The owner creates and joins it. Your threads never make these calls; they post a task with post_session_task or use the factory, which does. |
| The callback threads of QAROS | The peer updates and the result of the asynchronous sender creation | A callback converts, queues and returns. It never blocks and never renders. |
| A worker thread of your application, optional | attach() | It blocks for seconds. A program with a window calls begin_attach() and polls attach_state() instead, so that no thread waits. |
The configuration. These are the fields that most hosts set. The configuration document of the repository lists every field with its default.
SessionOwnerConfig:program_tag, which names the folders and the QAROS objects of the program,display_name, which the approval prompt of the Hub shows,mode(kAuto,kLocalorkRemote) andremote(host and port),library_path(empty selects the runtime lookup of the library: the installed QAROS, orQAROS_RUNTIME_DIR, a variable the current C header no longer reads),approval_timeout_ms(0 is the Hub's default of 120 seconds, at most 600000) andmax_targets.copy_hook: set it tomake_gl_copy_image_hook(). QAROS owns the textures of a frame and nothing else writes them, so without the hook the library skips the copy and the Visualizer shows a black scene.near_far: the near and far clip distances in meters, reported with every frame. The default is{0.1, 500.0}. The far distance matters for the window-space depth encoding.depth_scale: reported with every frame as the depth scale. The default is1.0.SessionOwnerConfig::log_severity,enable_console_loggingandlog_folder_path: the log of the QAROS library. The defaults are trace, on and the folderquaternarbelowTEMP. A trace log is large, so a host in normal operation setsQAR_LOG_SEVERITY_WARNand off, as the live example does.QarCApiSenderFactory::Config::name_scope: the program, the instance and the host from which the stable name of the app volume is made (qar_ar_core::make_name_scope).StereoStreamConfig, one for each target:peer_id;widthandheightof each eye,1024by default;max_fps;color_format;depth_format, the format that you request; andlayout, which accepts only separated textures.
Lighting. The library renders the lights of your scene for every peer. A host such as RViz keeps a headlight that follows the camera of the local operator, so the shading that a remote peer sees swings whenever the local operator orbits the view. The optional rig QarSceneLighting, passed in scene_lighting, lights the scene with lights of its own, world-fixed by default, while streaming is active and restores your lighting when streaming stops. Its configuration field suppress_light_name names a light of your scene, such as the headlight, that the rig hides while it is applied. No example of the repository sets a rig, so among the checks of the repository only the unit tests cover it.
Conventions your renderer must follow
World basis and app content space
- The camera frames agree. QAROS follows OpenXR in every 3D space: right-handed,
+Yup and-Zforward, and a pose is a position vector plus an orientation quaternion stored x, y, z, w. An Ogre camera looks along its local-Zwith+Yup as well. The library therefore copies a position unchanged and an orientation component for component, and it only reorders the quaternion to the w, x, y, z storage of Ogre. - View poses are in app content space. The pose of each view is in the app content space of the app volume that the stream is keyed to, the space your application renders in. Use it as it comes: the library applies no part of the placement of the volume (its pose, its app pose or its app scale) to a view pose. Coordinate Systems defines the space.
- The world axes can differ. QAROS describes the world with
+Yup, while a ROS scene, such as the one of RViz, is Z-up with+Xforward (REP 103). A Y-up pose fed into a Z-up world tips the viewer on its side. By default the library maps the two worlds one to one, which is right for Y-up content. For Z-up content, setQAR_POSE_WORLD=zup, exactly in that spelling. The library then rotates the QAROS world into the Z-up world withros = (-z, -x, y), so that QAROS up becomes up and QAROS forward becomes forward. In that mode a viewer anchor follows the change of axes: a yaw about the vertical axis,QAR_POSE_YAW_DEG,180degrees by default, and an eye height and a stand-off behind the facing direction,QAR_POSE_HEIGHT_MandQAR_POSE_BACK_M, both0by default. Leave those two at0: QAROS reports the viewer in its own frame, so a translation that you apply only on your side is invisible to QAROS, and the two worlds would disagree about where the viewer stands. Set these variables before the program starts: the camera conversion reads them once for each process.
Stereo layout and projection
- One frame, four textures. The library declares four views in this order: left color, right color, left depth and right depth. Their layout is
QAR_FRAME_LAYOUT_SEPARATED_TEXTURES, the only layout it accepts, and the texture index of a view names its texture. Rendering Streams describes the layouts of the C API. - Formats. Color is
QAR_PIXEL_FORMAT_R8G8B8A8. Depth is alwaysQAR_PIXEL_FORMAT_R32_FLOAT, whatever depth format the stream configuration requests. - Size. Each eye renders at the
widthandheightof itsStereoStreamConfig. The copy into the textures of QAROS is a blit, which rescales when the sizes differ. - Off-axis projection. Each eye has its own signed half-angles. The library builds an asymmetric perspective matrix for each eye from the field of view that QAROS reports, and the eye camera uses it as its custom projection.
Depth
The GL3+ render system of Ogre 1.12 cannot expose a metric, sampleable hardware depth texture through its public API, so the library writes depth as color. It renders the scene a second time through a depth material scheme whose shaders replace the material of every object, into a single-channel 32-bit float texture. The format that it produces and sends is therefore always QAR_PIXEL_FORMAT_R32_FLOAT. The texture holds one of two encodings, chosen by QAR_DEPTH_ENCODING:
| Encoding | Value written | Where nothing was drawn | Chosen by |
|---|---|---|---|
| Metric, the default | The linear eye-space distance in meters, multiplied by QAR_DEPTH_SHADER_SCALE if you set it | 0 | QAR_DEPTH_ENCODING unset, or any value other than ndc |
| Window space | gl_FragCoord.z, the value of an OpenGL depth buffer in the range 0 to 1, derived from the projection that the camera renders with | 1, the far plane | QAR_DEPTH_ENCODING=ndc, exactly in that spelling |
QAR_DEPTH_SHADER_SCALE applies to the metric encoding only and must be greater than 0; a malformed value keeps meters. The library reads both variables once for each process, when it creates the first depth target.
The SDK documents the units of the depth values and not their encoding. qar_render_sender_show_frame takes the near and far distances that the frame was rendered with, in app units, and a depth_scale, the factor from the depth buffer's units to the view poses' units. The header says nothing about the encoding of the values or about what a receiver does with these fields. What the authors of qar_ogre_adapter know about receivers comes from one observation:
- Observed with an SDK drop earlier than that of 2026-09-28: the Visualizer reads the depth texture as the raw window-space value in the range 0 to 1, and changing
depth_scaleor the near and far distances that you report does not change what it shows. Metric depth therefore displays wrongly there: every surface farther than one meter saturates, and the scene shows in one flat color. SetQAR_DEPTH_ENCODING=ndcfor the Visualizer. The observation has not been repeated with the drop of 2026-09-28 or with release 0.9.0. - What any other peer does with the depth values is not documented by the SDK.
The window-space value is reciprocal in distance. A far plane that is much wider than your content leaves little of the range for the near surfaces, and everything beyond the far plane is clipped away. The far distance is near_far of the factory configuration, 500 m by default, so set it to fit your content.
Joining the Hub
The library joins the Hub with the session owner, QarSessionOwner of the component session. Everything the vendor documents about the calls applies unchanged: Local app: on the QAROS PC, no code describes the calls and the approval, and Remote app: through a member hub how a program on another PC joins; this section describes what the library adds.
- One object, one thread. The owner starts a thread of its own, which loads the runtime, joins the Hub and runs every QAROS call that can wait for the Hub, in order. The commands
connect(),submit_code(),cancel(),disconnect()andforget()return at once, andpoll()hands the consumer the events: the state changes, the progress text of QAROS, the targets that came and went. A state is idle, loading, waiting for approval, rejoining, needing a code, pairing, running, reconnecting, stopping or failed. The consumer thread of a program with a window is its render or GUI thread, which polls from its loop; a console program useswait_for_session. - The mode.
HubMode::kLocaljoins the Hub of this PC as a local app withQarOnboardLocalAppExt: the Hub asks once, nothing is stored, and a Hub that does not run is started by the call.HubMode::kRemotejoins a Hub on another PC:qar_runtime_rejoin_asyncwith the stored onboarding id, and when there is none, or it is refused, the state needs a code andsubmit_code(code, {host, port})pairs withQarOnboardCodeExtandQarOnboardHostExt. The port has no default, and the code is never stored or logged. Code pairing uses the code onboarding of the C API, which is deprecated, and current QAROS shows no code it can use: the Visualizer shows no device or app pairing code, and the join code of Let another hub join us is for another Hub only, so a program that types it fails pairing. To use the Hub of another PC, install QAROS on this PC, make its Hub a member of the other (Pair another Hub) and join as a local app (Remote app: through a member hub). The rejoin, the code pairing andqar_runtime_forgetare deprecated in the C API.HubMode::kAutochooses remote when a pairing is stored, else local whenqar_installed_bin_folderfinds an installed QAROS, else remote. - What is stored. A pairing with a Hub on another PC is stored in
%LOCALAPPDATA%\Quaternar\QarOS-ROS\<program_tag>, inidentity.txt(the onboarding id, the host and the port; no secret), and the folderruntimeis the storage folder that the owner gives to QAROS.forget()callsqar_runtime_forgetand deletes the file. A local join stores nothing. The owner does not share the data folder of the Hub. - The targets. The owner subscribes to the peer updates, reads the peers that are already there, and treats a peer as a target when its role is
TARGETand its presence is online or unknown (Finding rendering targets); its own peer is never one. A target that goes offline, leaves or retires loses its stream, and one that was offline and comes back gets a new one. At mostmax_targetstargets get a stream, and the factory has a ceiling of its own,max_peers, which is8by default; a target beyond the cap is listed with the reasoncap reached. The library does not read the deprecated app state of a peer, and it invites no Visualizer. - Devices.
invite_device(kind, host)asks the Hub of this PC to start the app of a HoloLens (hololens:<host>); the result arrives as an event. Android headsets (Meta Quest, METALENSE 2, Android XR) are never invited: the current C API refusesheadset:,quest:andandroid:withQAR_STATUS_HUB_TARGET_APP_DEVICE_NOT_INVITABLE, and the operator pairs such a headset once in the Visualizer, after which it joins by itself. The Hub answers only an app that joined it as a local app, so the call refuses at once for a program that paired with a code. - The app volume. The SDK rejects a stream without an app volume.
attach()callsqar_app_volumes_get_or_createwith the stable ASCII namescene.<program>.<host>.qaros-ros, so the next start gets the same volume again. The library creates a cube of10 m, centered1 mabove the origin of the room, with the app scale1.0; the fields arecreate_app_volume,app_volume_name,app_volume_width_m,app_volume_length_m,app_volume_height_m,app_volume_center_y_m,app_volume_scale,app_volume_pick_gesturesandname_scope. Nothing clips the content to the box. The placement of the volume is read back through a subscription and kept in a cache, so a read of it on your thread waits for nothing. For a volume that already exists and is not closed, the call ignores the size and the pose it passes and takes the volume over. If the volume cannot be created, the session stays usable, but the factory refuses to create a sender and says why. - The log. The owner writes a line for every step, each starting with
QAROS:(QAROS: runtime ...,QAROS: hub mode ...,QAROS: state ...,QAROS: joined as peer ...,QAROS: target ...). A call that takes500 msor more on its thread is reported asQAROS: call <name> took <n> ms.
The status of a failed join comes in plain words. For example, the Hub denying the program reads QAROS denied this app (Deny was clicked, the prompt was closed, or the approval was revoked). Connect again and click Allow., and a pairing code that was wrong reads The code was wrong or has expired. Type the code the Hub shows now. (a hub join code fails the same way) The paths for a denied or unanswered prompt, a stopped Hub and a code pairing against another PC are designed and covered by the unit tests, which run the owner against a table of fake functions; the authors have not run them in a live session.
Where it stops
What to design around
- The cost grows with the peers. Each peer needs both eyes rendered in every frame, and the library admits at most
8peers at the same time by default. The render budget sheds a due stream that does not fit inmax_batch_milliseconds, but a stream under floor protection renders even when the batch is over budget. Keep your scene cheap enough for the peers you expect. - NVIDIA adapters only. The header states that the C API currently supports NVIDIA adapters only. On a machine with an integrated and an NVIDIA adapter, run your program on the NVIDIA adapter. Otherwise Windows may render on the integrated adapter, the frame rate can be low, and each frame is copied between adapters.
- Creating a sender can take arbitrarily long. Creating a render sender negotiates a transfer with the receiver. As far as the authors of
qar_ogre_adapterobserved with an SDK drop earlier than that of 2026-09-28, it has no bound on its duration, and the library does not cancel the wait. The library creates the sender asynchronously, so your render loop keeps running, and it logs once, after5seconds, that a peer is still creating. - The frame has no synchronization field. The OpenGL frame of the SDK carries no field for synchronization, so the library waits with
glFinishafter the copy. - A query is slow. With the installed runtime a query of the session (the app volumes, the GUI panels) takes about two seconds, so the library never makes one on your render thread. How long a query takes lists the measurements.
- What the header leaves open. Limits and Behaviors to Design Around collects what the header of the C API leaves open about streams, sizes and the position of the operator.
What has been verified
- The unit tests of the library need no QAROS, and they pass: the session owner, the identity store, the status texts and the target rule run against a table of fake functions. The headless sample passes.
- The library ran in the live checks of the RViz2 plugin with the installed runtime (2026-10-24 and 2026-10-25): the join as a local app, the streaming of the scene to a Visualizer receiver, a second start without a prompt. The paths that those checks did not run are named in Joining the Hub.
- The live example has not been run with a target. With an SDK drop of 2026-09-28, an earlier generation,
--connect-onlyopened a session and reported the app volume. - How the pictures looked in the Visualizer was judged by looking at them, not measured. No device check has been run with the current code of the library, because no headset was available.
Where to look when it does not work
- The troubleshooting document of the repository (github.com/Quaternar/qaros-ogre) lists symptoms, causes and fixes, among them a black scene in the Visualizer, a flat depth color, a scene tipped on its side, a QAROS graphics thread without an OpenGL context, a sender that is not created and a peer that gets no stream.
- The diagnostics of the manager.
diagnostics_snapshot()returns a copy of all counters, with the submitted and skipped frames of each stream, the totals of the four skip reasons (SenderNotReady,SenderError,TargetInitFailedandBudgetShed) and the account of the adapter for the latest skip inlast_skip_detail. A stall shows asSenderNotReadyforever while the submit counter stays frozen. ForSenderError,last_skip_detailnames the failed call. - The logs. The library writes its own state to the standard error stream with the prefix
[qar-adapter], and the session owner writes its steps with the prefixQAROS:. By default QAROS writes its library log into the folderquaternarbelow yourTEMPfolder. The switchesQAR_ADAPTER_TRACE,QAR_ADAPTER_FRAME_TRACEandQAR_VIDEO_TIMING_DIRadd a trace of the calls of the SDK, a per-frame trace and stage timings. - Two lines that look like errors. When the streams close at the end of a run, the adapter can print
wglMakeCurrent FAILED. While a peer still negotiates, it printsstill creating afterand a number of seconds. Neither line is a failure by itself.
Related pages
- Ogre, Qt and RViz2 on QAROS — the three libraries and how they stack.
- Rendering Streams — the render sender, the frame loop and the layouts of the C API.
- Coordinate Systems — room, app volume and app content space.
- App Volumes and Gestures — the volume that every stream is keyed to.
- Onboarding and Sessions — the local app the library uses to join the Hub, and the member Hub that brings a program on another PC in.
- Limits and Behaviors to Design Around — what the header leaves open about streams, sizes and the position of the operator.
- Video in GUI Panels, and Qt Widgets as AR Panels — the Qt panel package, which is independent of this library.
- Troubleshooting — status codes and frequent integration mistakes.
- Running the RViz2 Plugin on Windows — the RViz2 plugin that streams the scene of RViz2 through this library.