Inspiration
The world is drowning in trash, and traditional environmental education is often boring. We wanted to create an AR experience that transforms the tedious task of picking up trash into a creative and social adventure. Inspired by the concept of "upcycling" and virtual fashion, we envisioned a world where physical waste becomes virtual treasure, and players can become the "Trash King" through creativity and community interaction.
What it does
Trash King is an AR eco-social game. Players explore their real environment to collect virtual trash and scan real-world items for instant classification. Accompanied by a glowing sprite companion, players use points to unlock items from a massive built-in library of over 400 unique 3D trash models.
Our trash library features an unexpected and highly creative mix of categories: modern daily waste, traditional items (like kites and ancient instruments), holiday props (like Christmas hats and Halloween pumpkins), and sci-fi space junk. Players upcycle these items into art sculptures or fashion outfits.
Players can add friends in-game, invite them to runway shows, and visit their sculpture exhibitions. The game features 7 regular runway stages and 3 limited-time seasonal stages (e.g., Winter is Coming, Christmas, Space Scavenger). Creations are displayed on a 10-tier "Trash Tower" where community likes automatically promote them to higher tiers, ultimately crowning the best sculpture at the top.
How we built it
We built the game using Unity 6 and AR Foundation. For spatial persistence, we utilized spatial anchors to pin virtual trash to physical surfaces in AR. We integrated a cloud-based image recognition API (with perceptual hashing for daily deduplication) to identify real trash. We designed and optimized a massive 400+ low-poly asset library. Multiplayer social features, 10 different themed stages, and the dynamic 10-tier Trash Tower are powered by Photon Fusion 2 and UGS, ensuring smooth avatar sync, real-time voting, and ranking updates.
Challenges we ran into
- AR Spatial Persistence: Without GPS, we creatively used spatial anchors and environment mapping to spawn virtual trash, ensuring it stays persistent across sessions in AR.
- Real Trash Deduplication: To prevent players from farming points, we implemented perceptual hashing (pHash) server-side to ensure daily scanned items are visually unique.
- Massive 3D Asset Optimization: Managing and rendering a 400+ item library while maintaining mobile AR performance required strict polygon budgets and efficient memory management.
- Multiplayer Synchronization: Synchronizing runway walks, interactive props, and theme transitions among players required careful network optimization using NetworkTransform and RPCs.
Accomplishments that we're proud of
We are incredibly proud of the "Throw and Catch" interaction: if a player misses throwing trash into the truck, the companion sprite catches it with a glowing orb, turning failure into an emotional bond. We are also thrilled to have built a diverse library of 400+ trash models and successfully launched 10 distinct runway stages (7 regular + 3 limited-time), creating a vibrant virtual fashion ecosystem.
What we learned
We learned that environmental education can be highly gamified and socially rewarding. Designing 400+ unique trash items required immense creativity—combining modern waste with unexpected elements like traditional items, holiday props, and sci-fi elements. We also realized that community validation (likes on the Trash Tower) and direct social interaction (inviting friends to runways) are powerful motivators.
What's next for TrashKing
Next, we plan to introduce more limited-time runway stages based on upcoming holidays and current events to keep the social experience fresh. We also aim to expand the Trash Tower mechanics with seasonal leaderboards and guild competitions, allowing friend groups to compete together for the ultimate "Trash King" crown.
