← Back to projects
Programs Application Projects Senior High 2024.07 - 2024.08

ARdfz

The RDFZ New AR Admission Letter Project, derived from Eternal RDFZ (using its 3D assets). Built with the Unity3D engine and the Vuforia image recognition engine. Later, ARdfzSanya (the Sanya school version) was also derived from it.

Project Leader & Lead Programmer

Links

ARdfz is an augmented reality admission letter application for RDFZ (The High School Affiliated to Renmin University of China), developed based on the Unity engine and the Vuforia image recognition engine, and released together with the paper admission letters for the 2024 cohort of new students. It incorporates the campus 3D models accumulated during the Huanli Hongbai project into the AR scene. New students scan the inner cover of the admission letter with their phones, and the complete campus model "grows" out of the paper surface. Tapping any building displays its illustrated introduction and voice narration. This provides an interesting and intuitive way for new students to learn about the school, while also adding a sense of ceremony to the admission letter.

The project started in late June 2024 and was released in early August, lasting about a month and a half. I (Shan Tiyu) served as the technical lead and lead programmer; Ma Yuan was responsible for the program and video playback module; Wang Chujun was responsible for the positioning algorithm for the building information windows and modeling wrap-up; Lu Mingxuan was responsible for modeling wrap-up; Liu Zhenyuan and Liang Feiye were responsible for UI graphic design; Chen Junqiao was responsible for original music; Zhang Xiwen was responsible for the opening animation and iOS packaging and release; and Teacher Shi Yining served as the advising instructor.

After release, the project accumulated over 400 downloads across Android and iOS, and many parents shared on WeChat Moments or Xiaohongshu the 3D campus that popped up when scanning the admission letter. In late August 2024, Mi Qi, then principal of the RDFZ Sanya School, saw the project and expressed interest, proposing to make a similar version for the Sanya school as well. Taking advantage of the convenience of drone surveying in the Sanya area, the project team commissioned a teacher at the Sanya campus to complete photo capture using a drone, and after importing the photos into RealityCapture to generate a 3D reconstructed model and then importing it into the project, they produced a remote branch version, ARdfzSanya, in just over a week, and released it on August 31 together with the other school's official account tutorial.

Core Project Features

Feature Module Description
Admission Letter Recognition Vuforia image recognition; when the camera is aimed at the inner cover of the admission letter (about 20 cm square) and recognition succeeds, the campus model is displayed from the paper surface at real scale
Campus Panorama A photorealistic 3D reconstruction of the entire campus, equipped with a directional light and a plane that receives shadows
Building Labels Each building has a 3D label above it; tapping either the label or the building body itself enters the corresponding view
Building Details Pops up an information window showing the building name, a prose-style introductory text, and a voice narration
Usage Help A three-step first-time guide (place, aim, recognize), plus a built-in FAQ covering permissions and recognition failure issues
Settings Four items: graphics quality level, music, sound effects, and voice narration
School Introduction Built-in official introduction to RDFZ

Original Intention

From the perspective of the motivation for initiating the project, ARdfz cannot really replace any product or solve a specific "pain point"; rather, it is like a "welcome gift" for new students. From this angle, its value lies not in practicality, but in the "wow" that new students utter when they receive it and see the school, RDFZ.

Technical Details of the Engineering Work

Models: Reusing the 3D Assets from the Huanli Hongbai Project

Using the school-wide building models accumulated over the past year in the Huanli Hongbai project, the project team easily obtained the model data for the whole school. To make the models run smoothly on mobile devices, the team streamlined them, for example by converting windows into single planes.

Vuforia Target Library and the "High-Contrast" Cover

The project uses the Vuforia Engine. Image targets are calibrated according to the actual physical dimensions of the admission letter (about 0.2 m × 0.2 m), so the model can maintain a real scale relative to the paper surface. Because the original cover had weak feature points, the sample cover in the recognition library was processed to increase contrast.

Labels, Tap Hotspots, and Automatic Avoidance of Information Windows

The labels for each building float above the building. Because the labels are too small to tap accurately, each building additionally has a collider the same size as the building attached as a tap hotspot.

The algorithm for determining the optimal position of the information window was designed and completed by Wang Chujun. The idea is to use a convex hull to approximate the model's outline on the screen, and then search along the outline for an optimal position that satisfies the conditions of not occluding the model and not exceeding the screen bounds.

Focus Transition and "Dither Fade-Out"

Each building has two preset poses (a small-scale pose in the panorama and a large-scale pose after focusing) and an animation curve. When switching, interpolation is performed between the two according to the curve, completing the zoom and displacement in 1 second; the fading out of the campus as a whole is controlled by a custom unordered dither shader that controls alpha.

"Stepped Prompts" When Recognition Is Lost, and Two Anti-Jitter Solutions for Failures

The upper limit of the AR experience is determined by tracking quality, and tracking quality is determined by lighting, angle, and paper flatness. To improve user-friendliness, the program designed two layers of user prompts when the target is lost: 1 second after loss, a prompt "Please scan the designated area of the admission letter" fades in on the screen; after a longer loss, another troubleshooting prompt pointing to the built-in FAQ fades in.

Sanya School Branch

When completing the Sanya school version, the program design was appropriately adjusted to suit the different characteristics of that school. Because the Sanya school campus is larger and its buildings are more grouped by area, the program added an additional layer of "zoning": the four areas of teaching, living, office, and sports each have a theme color, an area narration, and a group of buildings. When an area is opened, only that area's labels and hotspots are displayed while the rest are hidden, and a color bar and area introduction appear on the screen.

Project gallery

Startup Page
Startup Page
Inspecting Buildings
Inspecting Buildings
User Tutorial (ARdfzSanya)
User Tutorial (ARdfzSanya)
主介面 (ARdfzSanya)
主介面 (ARdfzSanya)