Task
The Palace of Pioneers needed an exhibit about the history of the building. It had to include a 3D model of the palace that visitors can rotate and explore.
Solution
I built the exhibit in Unity. Points of interest and their categories come from the admin panel, so staff change them without a developer. The points appear on photos and on the 3D model, which visitors can rotate.
What was done
- Built an exhibit on the history of the museum in Unity
- Made a 3D model of the museum that visitors can rotate
- Added points and categories on photos and on the 3D model
- Connected the exhibit to its data and authorization through a Django REST API
Result
The exhibit was built in one month and runs in the palace museum. Points on the model and photos are set up in the admin panel, with no changes to the exhibit itself.
Developer's note
What was hard
The main challenge was achieving smooth performance on an exhibition mini-PC with integrated graphics. The initial 3D CAD model of the palace had far too many polygons and separate materials, causing frame rates to drop down to fifteen frames per second. I had to manually decimate the geometry, combine meshes, bake ambient lighting into lightmaps, and configure discrete levels of detail so the kiosk stayed at a steady sixty frames per second during touch interactions.
Another tricky part was handling erratic touchscreen gestures. Visitors and schoolchildren frequently touched the display with multiple fingers at once, swiped aggressively, or rotated the building while opening historical markers. I wrote a dedicated touch input processor with multi-touch filtering, restricted camera angles to prevent clipping through building walls, and added an automatic smooth camera reset after one minute of inactivity.
What came easy
Connecting the Unity client to the Django REST Framework API went smoothly and reliably. Museum curators needed to place archival points on facades and update historical descriptions without developer assistance. Transferring normalized coordinates and binding markers to 3D colliders took only a couple of days.
The historical timeline component was also straightforward to assemble. Switching between eras and archival photo galleries mapped cleanly onto a simple C# event model, creating smooth and predictable transitions between views.
Technologies
UnityC#MySQLDjango