Recognize the stage
Register the Stage image at its real printed width. The camera supplies a tracked position and orientation for the marker.
A virtual singer. A real-world anchor. An experience you can make your own. Explore the AR2 example, then give your coding assistant the reference to build from.
Loading the singer…
Sound starts when you press Play. This web preview does not use your camera.
In the native AR2 Stage example, a printed marker becomes the stage. The singer follows the print as you move it. Look away and the performance continues at its last position in the room.

The repository’s desk demonstration shows the original performer in a real camera view. This silent recording illustrates placement; the interactive preview above lets you hear the matching synthesized song.
The character, motion and synthesized track are prototype assets created by the AR2 project. The singer is not a recording or likeness of a real artist.
Open the printable Stage markerRegister the Stage image at its real printed width. The camera supplies a tracked position and orientation for the marker.
The native SDK validates a key against a portal and applies pattern entitlements. Additional consent gates apply to scoped subscriber media.
Anchor the model, scale it to 30 cm, and play its animation with audio. Keep placement and playback as separate responsibilities.
AR2 describes a portfolio of patents, rather than one “virtual singer patent.” These two issued patents provide useful starting points for understanding the exercise.
Claim 1 describes a system that stores a relationship between multiple linkage points and a virtual object’s reference frame, identifies linkage points associated with a real-world object, and renders the virtual object using that relationship and the viewer’s field of view.
Connection to this exercise: the Stage marker supplies a physical reference for positioning a virtual performer. This is a conceptual connection, not a claim-by-claim legal assessment of the SDK.
Read the issued patent and claimsClaim 1 describes detecting a living entity using image comparison, finding multiple linkage points and their arrangement, and using that arrangement to select and render virtual content over the entity. Claims 2–3 add changes tied to actions and associated animation.
Extension idea: a performer’s movement could trigger an effect. The tabletop Stage uses a printed marker; it does not require identifying an audience member or tracking their body.
Read the issued patent and claimsEducational summaries of selected claims, not a legal opinion or a patent license. Claim scope depends on the full claim language. AR2’s Recognition / Authorization / Display framework is the product architecture; a concept demo is not proof that every patent claim is implemented. SDK access and production rights come from the authorized provider.
For today’s browser-based vibe coding exercise, start with the web preview. For camera-based AR with AR2’s marker, licensing and placement behavior, use a native SDK integration.
Render the GLB, orbit around it, and synchronize animation to audio. No SDK or API key is needed for this preview.
Open the working web starterUse AR2Kit with ARKit and RealityKit. Start from the Showcase app and replace its performer assets.
Showcase source · access requiredUse AR2Stage with the SceneView / ARCore adapter. The repository reports emulator testing; verify on your target phone.
Showcase source · access requiredThis uses Google’s model-viewer, not AR2. The audio clock drives the animation. It provides a concrete visual starting point while you design your app.
<script type="module" src="assets/model-viewer.min.js"></script>
<model-viewer id="performer" src="assets/singer.glb"
alt="Virtual singer" camera-controls></model-viewer>
<audio id="track" src="assets/song.m4a" loop></audio>
<button id="start" disabled>Play</button>
<script>
const model = document.getElementById('performer');
const track = document.getElementById('track');
const start = document.getElementById('start');
model.addEventListener('load', () => {
model.play(); model.pause(); // Initialize the clip; audio drives time.
start.disabled = false;
});
function frame() {
model.currentTime = track.currentTime % 16;
if (!track.paused) requestAnimationFrame(frame);
}
start.onclick = async () => {
try { await track.play(); frame(); }
catch { start.textContent = 'Tap to retry audio'; }
};
</script>The complete starter adds pause, restart, background handling and error messages. Serve it over HTTP/HTTPS. Camera AR, image tracking, native spatial audio and shared sessions are not included.
Integration fragment for an app that already retains ar2 and has an AR view, valid portal configuration, and camera permission. Retain stage in your model/controller; do not create it on every view redraw.
import AR2Kit
import Foundation
import UIKit
// On the main actor, before starting the world session.
// Bundle stage-marker.png, singer.usdz and song.m4a in the app.
guard let image = UIImage(named: "stage-marker")?.cgImage,
let singer = Bundle.main.url(forResource: "singer", withExtension: "usdz"),
let song = Bundle.main.url(forResource: "song", withExtension: "m4a")
else { throw CocoaError(.fileNoSuchFile) }
ar2.recognizeMarker("stage", image: image, physicalWidthMeters: 0.18)
let stage = AR2Stage(ar2: ar2, performers: [
.init(name: "My performer", model: singer, audio: song,
heightMeters: 0.30)
], markerPatternId: "stage", autoPlaceSeconds: 4)
try await ar2.start(mode: .world)
stage.show()
// In the view, route taps to the same retained stage:
// AR2View(ar2: ar2, coachesSurfaces: true, onTap: stage.tap(at:))
// Read stage.status for loading, placement and error messages.
// Play / pause: stage.togglePlayback()
// Screen closes: stage.hide()
// Stop the whole session: ar2.stop()ios/AR2Kit package with its sibling shared core. The repository requires Xcode 26 and iOS 16+. Set NSCameraUsageDescription. Configure an instructor-issued API key, reachable portal and the correct pinned public key. Real AR requires a supported device; the Simulator is for previews.Integration fragment inside a retained ViewModel on the main thread. ar2, signBitmap, viewModelScope and application must already exist. Android uses GLB models.
import com.ar2project.ar2kit.AR2Stage
import com.ar2project.ar2kit.SessionMode
import kotlinx.coroutines.launch
// Bundle singer.glb and song.m4a under src/main/assets/.
ar2.recognizeMarker("stage", signBitmap, physicalWidthMeters = 0.18f)
val stage = AR2Stage(ar2, viewModelScope, application, listOf(
AR2Stage.Performer(
"My performer",
model = "asset:///singer.glb",
audio = "asset:///song.m4a",
heightMeters = 0.30f
)
), markerPatternId = "stage", autoPlaceSeconds = 4.0)
viewModelScope.launch {
try {
ar2.start(SessionMode.WORLD)
stage.show()
} catch (error: Exception) {
// Render a useful camera / license / network error in your UI.
}
}
// In your screen: ARCoreView(ar2, onLink, stage = stage)
// This adapter binds the renderer; a Stage alone draws nothing.
// Observe stage.status and stage.playback StateFlows.
// Screen closes: stage.hide(); owner teardown: stage.close().Change the performance and the surrounding app. Keep the tested placement and playback behavior.
Replace the singer model and audio with an original artist’s cleared assets. Add a track picker and artist information. In native AR2, define multiple Performer entries and select one at a time.
Use a dancer with a matching instructional track. Add replay and lesson navigation. If you add variable speed, build and test audio/animation synchronization explicitly; do not assume AR2Stage exposes a speed control.
Register an exhibit card as the marker, match its physical width, and use a narrator with a short story. Add captions and a language selector in the app interface. Keep a tap-to-place alternative when the card is unavailable.
Choose a platform, describe your experience, and copy the generated prompt into your coding tool. The reference includes explicit limits so your AI knows what still needs to be built.
If your coding tool cannot browse links, paste the contents of reference.md with the prompt. A URL supplies context; it does not install an SDK or grant access to the private repository.
Use the starter to explore the supplied project assets. Replace the character, animation and music with assets you are authorized to use when creating your own performance.
AR2 models, audio, marker and demonstration media © 2026 AR2 Project, LLC. They are project evaluation materials, not declared open-source or public-domain assets. This guide grants no additional SDK, patent or asset rights. See asset notices and obtain production permissions from the instructor or provider.
Ask your coding assistant to demonstrate the relevant checks. Native device results cannot be inferred from a browser or emulator preview.
Full acceptance checklistThe native examples are adapted from AR2’s integration guide and checked against the AR2Stage implementation. Source snapshot: 414c9a7, SDK version 0.2.0, reviewed November 30, 2026. The browser starter is an independent classroom example using Google model-viewer. Native snippets were checked against source; they have not been compiled here.
You can read this guide, use its prompt, and run the browser starter without repository access. Building the native AR2 integration requires an authorized SDK bundle or repository access, a configured portal and a valid key. Your coding assistant may need you to provide the files directly.
This is a Knowledge Athlete classroom companion, styled after AR2’s developer console. It does not issue API keys or run the licensing portal. Where the console and repository differ, these examples follow the inspected repository’s implementation.
The supplied Stage implements playback for one viewer. A synchronized audience needs a shared session, a common spatial reference and a shared playback clock with reconnection and drift correction. Design those as explicit extensions.
Start with docs/INTEGRATION.md §12, ios/AR2Kit/README.md (Stage), assets/performance/README.md, and core/AR2Core/Sources/AR2Core/Display/PerformanceDirector.swift. For the complete app, use ios/Showcase or android/showcase. The AI reference maps these to their purpose.