Inspiration
Every semester, thousands of prospective applicants and freshers arrive at Daffodil International University overwhelmed by the exact same questions: What documents do I need for admission? How do BLC, the Student Portal, and tuition payments work? Which labs, clubs, or residential halls should I explore? And what technical and soft skills should I build in my 1st and 2nd year to land my dream career?
Traditional orientation PDFs and static web pages are easy to forget, and many students reach their 3rd or 4th year wishing they had joined the right club, explored campus labs, or started building projects much earlier. That inspired us to build DIU QUEST—turning university onboarding, campus discovery, and 4-year career planning into a welcoming, interactive 3D Campus Life & Career RPG that anyone can play right from home or on campus.
What It Does
DIU QUEST reimagines Daffodil Smart City as a stylized, winter-themed 3D interactive world designed around an Overview-First, Timer-Free learning philosophy:
- Dual-Entry Start Gate (Level 0): Players choose Start from Admission (New Applicant) to play sequentially from Level 1, or Running DIU Student to bypass Admissions and jump straight into their Department and Year (1st–4th).
- 8-Level World & Deep Sub-Level Trees: Progress from the Admission Gate and Payment & Registration Plaza into 7 specialized departments (
SWE,CSE,BBA,EEE,NFE,LAW, andPharmacy), followed by a 7-way Open Campus Hub featuring official DIU Labs, Technical & Non-Technical Clubs (including all 4 wings of DIU CPC), Male & Female Residential Halls (YKSG-1/2/3 & RASG-1/2), Zoo & Bonomaya Green Zone, Food Court & Green Garden, DIU Central Mosque, and the Sports & Fitness Hub. - Learn-First, Stress-Free Gameplay: Every level and sub-level begins with 2–4 swipeable Virtual Senior NPC Briefing Cards (supporting an instant EN | বাংলা toggle and 1-tap bookmarking). Quizzes have zero countdown timers and zero cooldowns—wrong answers immediately highlight the correct option with a clear explanation.
- Year 1–4 RPG Skill Tree & Career Crossroads: Students unlock department-tailored Technical and Non-Technical skills, interact with a CGPA & Waiver Goal Planner, upgrade a live collectible Virtual DIU Student ID Card, and export a personalized My 4-Year DIU Action Plan.
- Living 3D Winter Campus: Features gently falling snow, a glowing 3D moon, warm architectural lighting across custom low-poly DIU landmarks,
InstancedMeshtrees, animated birds and campus wildlife, smooth sub-zone camera fly-ins, and an automatic 2.5D / Reduced-Motion fallback.
How We Built It
We engineered DIU QUEST as a full-stack TypeScript web application with a lazy-loaded 3D engine and server-authoritative progression:
- Frontend & 3D Engine: Built with React, TypeScript, Vite, Tailwind CSS, and shadcn/ui. The 3D campus diorama is powered by React Three Fiber (Three.js) and
@react-three/drei, using procedural low-poly architecture,THREE.Pointsfor adaptive snowfall, andInstancedMeshfor high-FPS foliage and campus lighting. - Backend & Persistence: Built with Node.js, Express, MongoDB, and Firebase Authentication (with automatic
@diu.edu.bdVerified Student detection and strict RBAC for the streamlined Admin CMS). - Offline-Ready PWA: Configured with Web App Manifest and service worker caching so students can access their Campus Survival Backpack (BLC, Portal, Payment, Bus, Library guides, and Saved Notes) even with weak campus connectivity.
Server-Authoritative Progression & Academic Math
To ensure fair progression and prevent duplicate XP exploits on retries, all node completions are validated server-side with unique idempotency keys. The cumulative XP required to reach Level \(L\) scales smoothly using a power curve:
$$XP(L) = \operatorname{round}!\left(100 \times L^{1.5}\right)$$
where a newcomer starts at \(L = 1\) with \(0\text{ XP}\) and reaches Campus Legend at \(L \ge 10\) (\(3,162\text{ XP}\)).
Inside the CGPA & Waiver Goal Planner, students interactively simulate semester outcomes using the standard credit-weighted GPA formula:
$$SGPA = \frac{\sum_{i=1}^{n} \left(C_i \times G_i\right)}{\sum_{i=1}^{n} C_i}$$
where \(C_i\) is the credit weight and \(G_i\) is the grade point for course \(i\).
Adaptive 3D Mobile & Performance Snippet
To keep frame rates smooth across both desktop and mobile browsers, our 3D scene adapts camera framing, field of view, and winter snowfall density dynamically:
export function getResponsiveSceneConfig(width: number, height: number, reducedMotion: boolean) {
const isMobilePortrait = width < 768 && height > width;
return {
fov: isMobilePortrait ? 56 : 44,
dpr: isMobilePortrait ? ([1, 1.5] as [number, number]) : ([1, 2] as [number, number]),
snowCount: reducedMotion ? 0 : isMobilePortrait ? 400 : 1200,
cameraDistanceMultiplier: isMobilePortrait ? 1.38 : 1.0,
};
}
Challenges We Ran Into
- Pivoting from Location-Locked Gameplay to Frictionless Home Play: Our earlier architecture relied heavily on 2D Leaflet maps, 30m GPS geofences, and physical QR scanning. We quickly realized prospective applicants couldn't physically walk on campus before admission—and strict quiz timers created exam stress instead of curiosity. Surgically migrating the codebase into an untimed, 100% home-playable 3D RPG without breaking our Auth, MongoDB XP ledger, or 3D core required careful refactoring.
- Mobile 3D Responsiveness & Touch Conflicts: A 3D scene that looked crisp on a
1280×800desktop felt cramped on375×812portrait phones. Dragging the 3D camera fought with browser pull-to-refresh, floating HTML labels overlapped, and panning accidentally triggered building clicks. We solved this with100dvhlayout framing,touch-action: none, adaptive portrait FOV/camera pull-back, pointer drag-distance thresholds (\(> 8\text{px}\) cancels clicks), and a collapsible mobile HUD drawer. - Balancing 3D Realism with Mobile WebGL Performance: Adding snowfall, moonlight, detailed landmarks (Central Mosque, Food Court, Halls, Sports Pitch, Zoo), trees, and animated birds risked dropping mobile frame rates. Switching repeated environment objects to
InstancedMesh, capping mobile pixel ratios, lazy-loading Three.js chunks, and building an automatic 2.5D fallback solved both performance and accessibility. - Keeping Institutional Data Accurate: University policies, labs, clubs, and hall rules must be trustworthy. We sourced institutional details from official portals including daffodilvarsity.edu.bd, admission.daffodilvarsity.edu.bd, and hall.daffodilvarsity.edu.bd, attaching
sourceUrlandverificationStatusmetadata to every seeded content block so unverified figures are never fabricated.
What We Learned
- Game UX should serve learning, not punish it: Removing timers and immediately explaining wrong answers dramatically improved engagement and retention.
- Modular data architecture pays off fast: Modeling Departments, Labs, Clubs, Skills, and Career Tracks as structured MongoDB documents let us scale cleanly from 4 departments to 7 (
SWE,CSE,BBA,EEE,NFE,LAW,Pharmacy)—and lets Admins expand further without touching code. - Mobile-first 3D requires intentional camera math: Responsive web layout alone isn't enough for WebGL; camera FOV, distance scaling, touch gestures, and graceful 2.5D fallbacks must be engineered as first-class features.
What's Next for DIU QUEST
- All DIU Departments & Live Club Events: Expanding modular roadmaps to cover every faculty at DIU, paired with live semester event announcements via the Admin CMS.
- Peer Mentorship & Senior Q&A: Connecting the Virtual Senior Guide with verified senior student tips and real-world project showcases from each department.
- Official Campus Deployment: Partnering with DIU orientation teams to welcome incoming batches with an official interactive 3D pre-arrival companion.
(Optional: Add your project screenshot below once uploaded to Devpost)

Built With
- express.js
- firebase
- firebase-auth
- html5
- javascript
- mongodb
- node.js
- pwa
- react
- react-three-fiber
- render
- rest-api
- shadcn-ui
- tailwindcss
- three.js
- typescript
- vercel
- vite
- web-audio-api
- webgl
- zod