TU Graz Lets AI Build AR Apps by Reading the Room
Researchers plug a semantic scene graph into a coding agent so natural-language prompts can produce AR apps that actually know what is in the room.
Takeaways
- New system combines a semantic scene graph with a vibe coding agent to generate spatially aware WebXR applications.
- Same scene graph is queried by the agent at authoring time and by the app at runtime for consistency.
- Set-of-mark overlays on headset screenshots let users point at specific objects in refinement prompts.
- User study: 10 experts built 40 apps, 87.5% rated successful at a median of two prompts.
- Mean SUS score of 85 and 16 prior AR papers recreated to demonstrate coverage.
- Claude Opus 5 led on visual quality and polish; SSG gaps cause models to guess object geometry.
Researchers at TU Graz have connected a large language model coding agent to a live semantic map of its physical surroundings. Described in a semantic scene graph paper, the system can turn prompts such as “highlight every cabinet that has a door” into browser-based augmented reality applications that run on a headset.
Vibe coding uses natural-language prompts to generate and revise software. Existing agents can build web pages and scripts because those programs operate on data available through code or APIs. An AR application also needs to identify physical objects, locate them in three-dimensional space, track their relationships, and align graphics with the room. Without that environmental context, generated code must guess at geometry and placement.
One Graph, Two Stages
The researchers expose a semantic scene graph, or SSG, as a tool the coding agent can query. The graph stores object identifiers, semantic labels, spatial relationships, and bindings to Internet of Things devices. A couch, lamp, or cabinet becomes a named node with properties and links that software can inspect.
The system uses the same graph at two points in the application lifecycle:
- During generation: The coding agent queries the room before deciding which objects to reference and where to place virtual content.
- During execution: The generated application queries the graph again, allowing it to use current scene data instead of coordinates copied into the source code.
Sharing the SSG gives the agent and the deployed application a consistent vocabulary for the room. Generated code can refer to stable object identifiers and relationships that remain available at runtime.
The target platform is WebXR, the browser API for immersive applications. Developers commonly pair it with rendering libraries such as three.js or Babylon.js, which organize virtual content into hierarchical scene graphs and render through graphics APIs such as WebGL or WebGPU. This prototype uses three.js.
After an application starts, the agent can inspect its live three.js scene graph. That graph reports each rendered object’s name, type, geometry, material, hierarchy, and world position. The feedback channel lets the agent detect missing or misplaced virtual content that might otherwise fail without producing a conventional error.
Pointing Without Coordinates
Follow-up prompts create another grounding problem because phrases such as “this cabinet” do not identify an SSG node. The system addresses that ambiguity with a set-of-mark overlay adapted from vision-language prompting.
When the user captures the headset view, the interface labels every visible object with its scene-graph node ID and semantic tag. The user can also circle a region of interest. The annotated image accompanies the refinement request, giving a prompt such as “make this one blink when someone enters” a specific object reference.
Benchmarks Expose the Model Gap
The researchers evaluated the system through application replication, a coding benchmark, and a user study. They first recreated 16 previously published AR applications, including XR-Objects, PaperToPlace, and MRTouch, to test whether the architecture could reproduce a range of established interaction patterns.
A separate benchmark used 120 prompts across four coding models. Results varied most on appearance-related criteria. On VCXR60, Claude Sonnet 5 scored 4.0 for visual quality, while Claude Opus 5 scored 5.0. Polish ranged from 3.9 to 4.8 across the tested models. Both criteria used a five-point rubric.
| Evaluation | Reported result |
|---|---|
| Replicated applications | 16 published AR applications |
| Coding benchmark | 120 prompts across four models |
| VCXR60 visual quality | 4.0 to 5.0 on a five-point rubric |
| VCXR60 polish | 3.9 to 4.8 on a five-point rubric |
| User study | 10 participants produced 40 applications |
| Successful applications | 87.5%, or 35 of 40 |
| Prompts required | Median of two |
| System Usability Scale | 85 out of 100 |
In the user study, 10 participants created 40 spatially registered applications that interacted with connected devices. Evaluators rated 35 applications successful, and participants reached a working result in a median of two prompts. The mean System Usability Scale score was 85; the scale runs from 0 to 100, with 68 commonly used as an average benchmark.
Missing Labels Force Guesses
Output quality depends on the completeness of the semantic scene graph. In one cabinet task, the graph did not specify which cabinets had doors, which side contained them, or how large they were. Every model had to infer those details, and Claude Sonnet 5 misjudged the door height.
Model selection also affected visual quality and polish, which means the backend LLM remains an important part of the product surface. A reliable scene representation can ground object references and placement, but it does not eliminate differences in code generation, geometry, materials, or composition.
What Builders Need to Account For
- Scene capture and maintenance: A deployment needs a pipeline that creates the SSG, assigns stable identifiers, and updates objects when the room changes.
- Platform constraints: The prototype targets WebXR and three.js, so browser support, headset capabilities, and rendering performance bound the resulting applications.
- IoT permissions: Device bindings live inside the graph. Production systems would need authentication, authorization, command validation, and limits on what generated code may control.
- Model variability: The benchmark shows that changing the coding model can alter geometry and visual finish even when the prompt and scene data remain fixed.
- Reproducibility: The paper does not identify a public code or model release, so an independent implementation would need to rebuild the SSG pipeline, agent tools, runtime queries, and visual feedback loop.
- Evaluation scope: The user study covered 10 participants and 40 applications, which establishes prototype performance but leaves production reliability, latency, and long-term scene changes untested.
The paper’s central design choice is a shared, queryable world model that connects generated code to physical objects. That contract gives the agent stable references during development and gives the application current environmental data at runtime. Further work can extend the graph with object affordances, finer geometry, temporal updates, and stronger permission controls, reducing the number of details the model must infer.