CGR Mic
CGR Mic
VIDHYAVARDHINI’S
BHAUSAHEB VARTAK POLYTECHNIC
MICRO PROJECT
Academic year: 2023-24
RUNNING TRAIN
Semester: Third
Name:
Page | 1
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
VIDHYAVARDHINI’S
BHAUSAHEB VARTAK POLYTECHNIC
CERTIFICATE
Seal of
Institution
Page | 2
ANNEXURE – I
Page | 3
Sr. Name of
Specification QTY Remarks
No. Resources/Material
Processor: i3
1. Computer 1
RAM: 4.00GB
2. Microsoft Word Word: 2016
4. Book/Website name
ANNEXURE – II
Page | 4
Final Micro Project Report
2.1 Rationale: This course provides an introduction to the principles of computer graphics.
In particular, the course will consider methods for object design, transformation, scan
conversion, visualization and modeling of the real world.
Page | 5
ANNEXURE – III
Rubrics for Assessment of
Micro-Project
Semester: Third
Name of Faculty: Mrs. Kumudini Tripathi
Sr. Poor Average Good Excellent
Characteristics to be Assessed
No. (Marks 1-3) (Marks 4-5) (Marks 6-8) (Marks 9-10)
3. Project Proposal
7. Report Preparation
8. Presentation
9. Viva
ANNEXURE – IV
Micro-Project Evaluation Sheet
Title: Running Train Academic yea2024-25
Page | 6
Program: Computer Engineering Semester: Third
Course & Code: Computer Graphics (Code: 313014)
Name of Candidate:
Roll No: 1225, 1226, 1227
Name of Faculty: Mrs. Kumudini Tripathi
Evaluation as per Suggested Rubric for Assessment of Micro Project:
Sr. Characteristic to be Poor Average Good Excellent Sub
No. assessed (Marks 1-3) (Marks 4-5) (Marks 6-8) (Marks 9-10) Total
1 Relevance to the
course
2 Literature Survey .
Information
Collection
3 Completion of the
Target as per project
proposal
4 Analysis of Data and
representation
5 Quality
Prototype/Model/Conte
6 Report Preparation
7 Presentation .
8 Viva
Page | 7
Course & Code: Computer Graphics (Code: 313014)
Name of Candidate:
1226.__________
1227.__________
Dated Signature of Faculty
Acknowledgement
We would like to take this opportunity to acknowledge everyone who has helped us in every
stage of this micro project.
Page | 8
We are deeply indebted to Mrs. Kumudini Tripathi and Utkarsha Mhatre for their guidance
and suggestions in completing this project. The completion of this project was possible under
their guidance and support. They pushed us to thing imaginatively and urged us to do this
work without hesitation.
We would also like to thank our parents and friends who helped us a lot in finalizing this
project within a limited time frame. We are deeply grateful to everyone who has contribute to
the successful completion of this project.
INDEX
Computer graphics refers to the field of visual computing, encompassing the creation,
manipulation, and representation of visual data using computers. It involves the use of
algorithms and software to generate, process, and display images, videos, and animations.
Computer graphics has become an essential part of various industries, including
entertainment, design, engineering, and scientific research.
Page | 9
1. Rendering: Rendering involves the process of generating an image from a model by
means of computer programs. It includes techniques like rasterization, ray tracing, and global
illumination to create realistic or stylized images.
4. Image Processing: Image processing techniques are used to manipulate and enhance
digital images. Operations such as filtering, compression, and image analysis are employed to
improve image quality or extract useful information from images.
5. Computer Vision: Computer vision is the field that deals with enabling computers to
gain a high-level understanding from digital images or videos. It involves tasks such as object
recognition, scene reconstruction, and image segmentation.
Applications of computer graphics are vast and diverse, including video games, movies,
virtual reality, augmented reality, simulation, scientific visualization, and data visualization. It
has revolutionized various industries by enabling the creation of immersive and interactive
experiences, aiding in design and prototyping, and facilitating data analysis and
decisionmaking processes.
As technology continues to advance, computer graphics plays a crucial role in pushing the
boundaries of visual communication, enabling the creation of increasingly realistic and
interactive virtual worlds and enhancing the way we perceive and interact with digital
information.
Page | 10
prototypes, and engineering simulations. It aids in efficient prototyping, virtual testing, and
streamlined product development processes.
3. Simulation and Training: Computer graphics play a vital role in creating realistic
simulations for training purposes, such as flight simulators, military training, and medical
simulations. They provide a safe and cost-effective environment for trainees to practice
realworld scenarios.
4. Virtual Reality (VR) and Augmented Reality (AR): VR and AR applications heavily
rely on computer graphics to create immersive and interactive experiences. They are used in
various fields, including gaming, education, healthcare, and marketing, to provide users with
simulated or enhanced real-world environments.
8. Advertising and Marketing: Computer graphics play a crucial role in creating visually
captivating advertisements, logos, and marketing materials. They are used to develop
engaging visual content for digital and print media to attract and retain consumer attention.
Page | 11
6. Enhanced marketing and advertising.
7. Simplified data visualization. 8. Streamlined information presentation.
Disadvantages:
Page | 12
Page | 13
Page | 14
Algorithm of Code:
Page | 15
Flowchart:
Page | 16
Functions used in Code:
1. int gd = DETECT, gm: This initializes the graphics system. `DETECT` is a constant that
allows the graphics system to automatically detect the graphics driver to be used.
2. initgraph (&gd, &gm, "C:\\TurboC3\\BGI"): This function initializes the graphics system.
It takes three arguments: the graphics driver (`&gd`), the graphics mode (`&gm`), and the
path to the BGI directory.
3. xmaxx (): This function returns the maximum x-coordinate value of the current graphics
screen.
4. ymax (): This function returns the maximum y-coordinate value of the current graphics
screen.
6.line(): a computer must work out which pixels need to be filled so that the line looks
straight. You can try this by colouring in squares on a grid, such as the one below (they are
many times bigger than the pixels on a normal printer or screen).
7.circle():A circle is defined by a centre point, and a radius. Points on a circle are all the radius
distance from the centre of the circle.
8.rectangle(): is used to draw a rectangle. Coordinates of left top and right bottom corner are
required to draw the rectangle. left specifies the X-coordinate of top left corner, top specifies
the Y-coordinate of top left corner, right specifies the X-coordinate of right bottom corner,
bottom specifies the Y-coordinate of right bottom corner.
9.getch (): This function waits for a character input from the keyboard.
10.closegraph (): This function closes the graphics mode and deallocates all memory
allocated by the graphics system.
Page | 17
Explanation of Code:
The code you provided is a simple graphics program written in C language using the
graphics.h library, which is commonly used for simple graphics programming in the C
environment. This particular program creates a colorful animation of expanding arcs on the
screen. Let's go through the code step by step:
1. The code includes the necessary header files for graphics and input/output operations:
- `graphics.h`: This file contains functions for graphics programming.
- `conio.h`: This file contains console input/output functions. - `stdio.h`: This
file contains standard input/output functions.
3. `gd` and `gm` are integer variables used to store the graphics driver and graphics mode.
4. The `initgraph` function initializes the graphics system by detecting the graphics driver and
mode and setting up the screen for drawing.
6.line(): a computer must work out which pixels need to be filled so that the line looks
straight. You can try this by colouring in squares on a grid, such as the one below (they are
many times bigger than the pixels on a normal printer or screen).
7.circle():A circle is defined by a centre point, and a radius. Points on a circle are all the radius
distance from the centre of the circle.
8.rectangle(): is used to draw a rectangle. Coordinates of left top and right bottom corner are
required to draw the rectangle. left specifies the X-coordinate of top left corner, top specifies
the Y-coordinate of top left corner, right specifies the X-coordinate of right bottom corner,
bottom specifies the Y-coordinate of right bottom corner.
9.The `getch` function waits for a key to be pressed before the program terminates.
10.The `closegraph` function closes the graphics mode and releases the memory allocated by
the graphics system.
Page | 18
Output of Code:
Conclusion:
Reference:
https://www.geeksforgeek.org.in
https://www.themolt.com
Page | 19
Page | 20