Skip to content

The Project is all about a natural scenery which is built from using C++ language ,OpenGL, GLUT and Code Blocks .

Notifications You must be signed in to change notification settings

ibrahim-patwary/computer_graphics_project

Repository files navigation

Computer Graphics

  • Computer graphics deals with generating images and art with the aid of computers. Today, computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications.

Project Details

  • This project involved creating a visually appealing and realistic 2D scene environment using OpenGL and C++ for my computer graphics lab project. The objective was to simulate a diverse scene that includes various elements such as roads, a rail line, rail tracks, cars, multiple buildings, a sun, clouds, ships, and a boat in the sea. Leveraging OpenGL functions and C++ coding, I successfully implemented the scene, ensuring accurate representation in terms of colors, sizes, and textures for each element.

Features

  • Realistic 2D scene representation.
  • Diverse elements including roads, rail lines, rail tracks, cars, buildings, sun, clouds, ships, and a boat.
  • Utilization of OpenGL functions for rendering.
  • Accurate color, size, and texture mapping for enhanced realism.

Requirements

Download Software and install

  • Codeblocks 10.05
  • Glut 3.7.6

Environment Setup

  1. Step: Create Environment
  • Copy glut32.dll to C:\Windows\System32 If it 64bit copy to C:\Windows\SysWOW64

  • Glut32.lib copy to C:\ProgramFiles(x86)\CodeBlocks\MinGW\lib

  • Glut.h copy to C:\ProgramFiles(x86)\CodeBlocks\MinGW\include\GL

  1. Step: Codeblocks -> Build Option Build option> add linker> find glut.lib again, add and ok

Main Functions

int main(int argc, char** argv)
{
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
    glutInitWindowPosition(0, 0);
    glutInitWindowSize(1200,900);
    glutCreateWindow("Natural Scene");
    init();
    glutDisplayFunc(display);
    glutTimerFunc(25,update,0);
    glutMainLoop();
}

Result

1 Screenshot 2023-09-15 112721 Screenshot 2023-09-15 112820

Animations

1.mp4
2.mp4
3.mp4

Documentation

The Project Documentation is here

Acknowledgements

I would like to acknowledge the OpenGL community for providing a powerful platform for graphics development. Additionally, I appreciate the support of my computer graphics lab instructor for guiding me throughout this project.

Contact

If you have any questions, feedback, or inquiries about my 2D scene project, please feel free to contact me at Email: ibrahim15-3802@diu.edu.bd

About

The Project is all about a natural scenery which is built from using C++ language ,OpenGL, GLUT and Code Blocks .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published