A revolutionary educational platform combining immersive 3D environments with cutting-edge anti-cheat technology for secure, engaging online assessments.
Transform traditional online testing with cyberpunk-themed 3D environments, real-time monitoring, and VR compatibility. Perfect for educational institutions, corporate training, and certification programs requiring maximum security and engagement.
# Clone repository
git clone https://github.com/YourUsername/cyberquiz-3d.git
# Setup with XAMPP/WAMP
1. Place in htdocs/
2. Import database.sql
3. Configure api/config.php
4. Access: http://localhost/cyberquiz-3d/
- ๐ 3D Virtual Classrooms: Interactive Three.js environments with spatial audio
- ๐ฅฝ VR/AR Ready: WebXR support for Meta Quest, HoloLens, and mobile VR
- ๐จ Cyberpunk Aesthetics: Neon-themed UI with animated particle systems
- ๐ฑ Cross-Platform: Responsive design for desktop, tablet, and mobile
- ๐๏ธ Eye Tracking Simulation: Monitor gaze patterns and attention
- ๐ค Gesture Detection: Track suspicious hand movements and interactions
- ๐ Environmental Monitoring: Detect screen recording, window switching
- โก Real-time Alerts: Instant violation detection with 3-strike system
- ๐ค AI-Powered Analysis: Machine learning behavioral pattern recognition
- ๐ JWT Authentication: Secure token-based session management
- ๐ก๏ธ Role-Based Access: Admin, Teacher, Student with granular permissions
- ๐ซ Rate Limiting: DDoS protection and brute force prevention
- ๐ Data Encryption: End-to-end encrypted communications
- ๐ Audit Logging: Comprehensive activity tracking and reporting
- Admin Dashboard: Comprehensive system monitoring and control
- User Management: Role-based access for students, teachers, and admins
- Quiz Builder: Create complex 3D quizzes with multiple question types
- Analytics: Detailed reporting on quiz performance and security
- Activity Logging: Complete audit trail of system activities
- HTML5 & CSS3: Modern web standards
- Tailwind CSS: Utility-first CSS framework
- Three.js: 3D graphics and WebGL rendering
- GSAP: Advanced animations and interactions
- Chart.js: Data visualization and analytics
- PHP 8.0+: Server-side processing
- MySQL: Database management with XAMPP
- PDO: Secure database interactions
- JWT: JSON Web Token authentication
- RESTful API: Clean API architecture
- WebGL: Hardware-accelerated 3D graphics
- WebRTC: Camera and microphone access for monitoring
- Web Audio API: Spatial audio processing
- WebXR: VR/AR device compatibility
Before setting up the system, ensure you have:
- XAMPP (Apache + MySQL + PHP 8.0+)
- Modern Web Browser (Chrome, Firefox, Edge with WebGL support)
- VR Headset (optional, for VR features)
- Webcam (for eye tracking features)
- PDO
- PDO MySQL
- JSON
- OpenSSL
- cURL
- GD (for image processing)
- Download and install XAMPP
- Start Apache and MySQL services
- Access phpMyAdmin at
http://localhost/phpmyadmin
- Create a new database named
3d_quiz_system
- Import the database schema:
Or use phpMyAdmin to import
mysql -u root -p 3d_quiz_system < database.sql
database.sql
-
Clone or download the project to your XAMPP htdocs folder:
htdocs/ โโโ 3d-quiz-system/ โโโ index.html โโโ admin.html โโโ js/ โโโ api/ โโโ database.sql
-
Configure database connection in
api/config.php
:define('DB_HOST', 'localhost'); define('DB_NAME', '3d_quiz_system'); define('DB_USER', 'root'); define('DB_PASS', ''); // Your MySQL password
-
Create necessary directories:
mkdir logs uploads chmod 755 logs uploads
-
Ensure PHP has write permissions to logs and uploads directories
- Main Interface:
http://localhost/3d-quiz-system/
- Admin Dashboard:
http://localhost/3d-quiz-system/admin.html
- API Base URL:
http://localhost/3d-quiz-system/api/
The system comes with pre-configured demo accounts:
- Email:
admin@3dquiz.com
- Password:
demo123
- Capabilities: Full system access, user management, analytics
- Email:
teacher@3dquiz.com
- Password:
demo123
- Capabilities: Create quizzes, manage courses, view student progress
- Email:
student@3dquiz.com
- Password:
demo123
- Capabilities: Take quizzes, view results, access VR features
- Login with student credentials
- Browse Available Quizzes in the 3D environment
- Enable VR Mode (if headset available)
- Calibrate Eye Tracking for enhanced security
- Take Quizzes with real-time anti-cheat monitoring
- Create Courses with 3D environments
- Design Quizzes with multiple question types
- Monitor Student Progress with detailed analytics
- Review Security Reports for academic integrity
- System Monitoring via admin dashboard
- User Management (create, edit, deactivate accounts)
- Security Configuration and violation monitoring
- System Analytics and performance metrics
POST /api/auth.php/login
- User loginPOST /api/auth.php/register
- User registrationPOST /api/auth.php/logout
- User logoutGET /api/auth.php/verify
- Token verification
GET /api/quiz.php
- List available quizzesPOST /api/quiz.php
- Create new quizGET /api/quiz.php/{id}
- Get quiz detailsPUT /api/quiz.php/{id}
- Update quiz
POST /api/security.php/violation
- Report security violationGET /api/security.php/reports
- Get security reportsPOST /api/session.php/start
- Start quiz sessionPOST /api/session.php/end
- End quiz session
- Edit
js/three-scene.js
to modify:- Lighting configurations
- Camera positions
- 3D model loading
- Particle effects
- Modify
index.html
and CSS for:- Color schemes
- Layout structures
- Animation preferences
- Responsive breakpoints
- Configure
js/anti-cheat.js
for:- Violation thresholds
- Monitoring sensitivity
- Alert mechanisms
- Reporting frequency
- Change Default Passwords: Update all demo account passwords
- Update JWT Secret: Change JWT_SECRET in config.php
- Enable HTTPS: Configure SSL certificates
- Database Security: Use strong MySQL passwords
- CORS Configuration: Restrict allowed origins
- Basic: Tab switching detection
- Standard: Eye tracking + behavior monitoring
- Strict: Full surveillance with AI analysis
- Maximum: VR-required with complete isolation
- Database connection status
- Active user sessions
- Security violation counts
- Performance metrics
- Completion rates
- Average scores
- Time spent per question
- Cheating attempt frequency
- Violation types and severity
- User behavior patterns
- System vulnerability assessments
- Incident response logs
Solution: Check XAMPP MySQL service and database credentials
Solution: Ensure WebGL is enabled in browser settings
Solution: Grant camera permissions and check lighting conditions
Solution: Use HTTPS and ensure WebXR-compatible browser
Enable debug mode in api/config.php
:
define('ENABLE_DEBUG_MODE', true);
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
For technical support or questions:
- Documentation: Check this README and inline code comments
- Issues: Create GitHub issues for bugs or feature requests
- Security: Report security vulnerabilities privately
- AI Proctoring: Machine learning-based cheating detection
- Blockchain Integration: Immutable quiz records and certificates
- Multi-language Support: Internationalization
- Mobile VR Support: Smartphone-based VR experiences
- Advanced Analytics: Predictive modeling and insights
- Microservices Architecture: Scalable backend services
- Real-time Collaboration: Multi-user 3D environments
- Edge Computing: Reduced latency for VR experiences
- Quantum Security: Future-proof encryption methods
Note: This system is designed for educational purposes and demonstration. For production use, additional security hardening and performance optimization may be required.
Built with โค๏ธ for the future of education.