Skip to content

this is a computer graphics project, 360 degree City View, using only Freeglut/Opengl

License

Notifications You must be signed in to change notification settings

sayantichy/3dCityview_ComputerGraphicsProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


๐ŸŒ† 3D City View using FreeGLUT

A 3D simulation of a city built using OpenGL & FreeGLUT, featuring dynamic day-cycle modes and interactive urban elements such as cars, pedestrians, traffic lights, and infrastructure.


โœจ Features

  • Day Cycle Modes (5 total):

    • ๐ŸŒ… Morning
    • โ˜€๏ธ Noon
    • ๐ŸŒ‡ Afternoon
    • ๐ŸŒ† Evening
    • ๐ŸŒ™ Night
  • City Components:

    • ๐Ÿซ School
    • ๐ŸŒณ Park
    • ๐Ÿ›ฃ๏ธ Roads & Overbridges
    • ๐ŸŒ‰ Flyovers
    • ๐Ÿšฆ Traffic lights
    • ๐Ÿš— Cars & moving vehicles
    • ๐Ÿšถ Pedestrians
  • Dynamic Environment:

    • Smooth transitions between day modes
    • Animated traffic and pedestrian flow
    • Interactive controls to switch views and time of day

๐Ÿ› ๏ธ Technologies Used

  • Language: C / C++
  • Graphics Library: OpenGL with FreeGLUT
  • Rendering: 3D scene rendering with lighting, shading, and transformations

๐Ÿ“‚ Project Structure

360 degree CITY VIEW/
โ”‚โ”€โ”€ bin/                     # Compiled files
โ”‚โ”€โ”€ obj/                     # Object files
โ”‚โ”€โ”€ demo.cbp                 # Code::Blocks project file
โ”‚โ”€โ”€ demo.cscope_file_list    
โ”‚โ”€โ”€ demo.depend              
โ”‚โ”€โ”€ demo.layout              
โ”‚โ”€โ”€ main.cpp                 # Main source code

๐Ÿš€ Getting Started

Prerequisites

  1. Install Code::Blocks IDE (with MinGW/GCC compiler).
  2. Install FreeGLUT library. ๐Ÿ‘‰ FreeGLUT installation tutorial

Run the Project

  1. Clone or Download the repository.

    git clone https://github.com/sayantichy/3dCityview_ComputerGraphicsProject

    Or download the .zip and extract it.

  2. Open Code::Blocks.

  3. Go to File > Open โ†’ select demo.cbp.

  4. Press Build & Run (F9).


๐ŸŽฎ Controls

Key Action
1 Switch to Morning
2 Switch to Noon
3 Switch to Afternoon
4 Switch to Evening
5 Switch to Night
โ†‘ โ†“ โ† โ†’ Move camera
W/A/S/D Move within city
Esc Exit program

๐Ÿ“ธ Demo Preview

3dctvw.mp4

๐Ÿ“Œ Future Improvements

  • Add sound effects (traffic, birds, city ambience).
  • Expand city with buildings, shops, bus stops.
  • Implement AI for cars & pedestrians.
  • Add weather effects (rain, fog, snow).

โ˜• If you like this project, buy me a coffee๐Ÿฅคโค๏ธ

About

this is a computer graphics project, 360 degree City View, using only Freeglut/Opengl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages