Skip to content
Back to Projects

School Hallway 3D Scene (OpenGL)

Completed
January 2024 – March 2024

Interactive 3D school hallway scene built with OpenGL, C++, and GLUT for Computer Graphics coursework, featuring realistic lighting, textures, and 3D object modeling.

School Hallway 3D Scene (OpenGL) — visual 1 of 2

Project Overview

šŸŽØ 3D Computer Graphics Scene

A comprehensive 3D school hallway scene implemented in OpenGL using C++ and GLUT. This project demonstrates advanced computer graphics concepts including 3D object modeling, lighting, texturing, and camera positioning in a realistic school environment.

OpenGL rendering example

OpenGL rendering example

šŸŽÆ Key Features

  • 3D Object Modeling: Detailed 3D models of chairs, tables, lighting fixtures, and architectural elements
  • Realistic Lighting: Multiple light sources including ceiling lamps and ambient lighting
  • Interactive Camera: GLUT-based camera controls for scene navigation
  • Modular Architecture: Object-oriented design with separate rendering functions for each 3D element
  • Cross-Platform Build: Makefile-based build system supporting Linux/Ubuntu environments

šŸ—ļø Technical Implementation

Graphics Pipeline

  • OpenGL Rendering: Core graphics API for 3D scene rendering
  • GLUT Window Management: Cross-platform window creation and event handling
  • GLSL Shaders: Custom vertex and fragment shaders for advanced rendering effects
  • 3D Mathematics: Matrix transformations, camera positioning, and perspective projection

Scene Components

  • Floor: Gray-colored floor plane with proper texturing
  • Walls: Light blue back wall with realistic material properties
  • Furniture: Brown lounge chairs and green plastic chairs with detailed geometry
  • Lighting: Yellow ceiling lamp with proper light source positioning
  • Architecture: Complete hallway layout with proper proportions

šŸ”§ Development Environment

Build System

# Install dependencies
make install-deps

# Build the project
make

# Build and run
make run

Dependencies

  • build-essential: GCC compiler and build tools
  • libgl1-mesa-dev: OpenGL development files
  • libglu1-mesa-dev: GLU utility library
  • freeglut3-dev: GLUT library for window management

šŸ“ Project Structure

SchoolHallwayOpenGL/
ā”œā”€ src/              # C++ source files
ā”œā”€ shaders/          # GLSL shader files
ā”œā”€ Makefile         # Build configuration
└─ README.md        # Documentation

šŸŽÆ Learning Outcomes

Computer Graphics Concepts

  • 3D Modeling: Understanding of 3D coordinate systems and object positioning
  • Lighting Models: Implementation of ambient, diffuse, and specular lighting
  • Camera Systems: Perspective projection and view matrix calculations
  • Rendering Pipeline: Vertex processing, rasterization, and fragment shading

Technical Skills

  • OpenGL Programming: Low-level graphics API usage and optimization
  • C++ Development: Object-oriented programming for graphics applications
  • Build Systems: Makefile configuration and dependency management
  • Cross-Platform Development: Linux/Ubuntu environment setup and configuration

🌟 Key Highlights

  • Educational Project: Developed as part of Computer Graphics coursework
  • Complete 3D Scene: Fully functional interactive 3D environment
  • Modular Design: Clean separation of concerns with individual object rendering
  • Professional Build System: Automated dependency management and compilation
  • Documentation: Comprehensive README with installation and usage instructions

šŸ’” Technical Achievement

This project demonstrates proficiency in computer graphics programming, 3D mathematics, and OpenGL development. The modular architecture and comprehensive documentation showcase professional software development practices while delivering an engaging 3D visualization experience.

Project Details

Role
Computer Graphics Developer
Timeline
January 2024 – March 2024
Status
Completed
Technologies
C++
OpenGL
GLUT
GLSL
Make
Linux/Ubuntu