Neel Sanjay Bhatt SE Computer A Roll No:-07
Neel Sanjay Bhatt SE Computer A Roll No:-07
SE Computer A
Roll No:- 07
EXPERIMENT NO.1
CASE STUDY 1
Aim:To Study Computer Graphics, Application, Input And Output Devices, Advantages &
Disadvantages.
➢ COMPUTER GRAPHICS:-
1. Creation, Manipulation and Storage of geometric objects (modeling) & their images
(rendering)
2. Display those images on screens or hardcopy devices
3. It is an art of drawing images, lines, charts, and other visuals on the computer screens with
the help of programming.
4. The visuals/images on the computer screens are made up of numerous pixels. A pixel is a dot
or square on the computer screen, it is the smallest unit of graphic that is displayed on the
computer screen. The number of individual non-overlapping pixels contained on a computer
screen is called Resolution.
5. Now we know what is computer graphics lets know about its applications
➔ Computer Art:
Using computer graphics we can create fine and commercial art which include animation packages,
paint packages. These packages provide facilities for designing object shapes and specifying object
motion. Cartoon drawing, paintings, logo design can also be done.
➔ Entertainment :
Computer graphics finds a major part of its utility in the movie industry and game industry. Used for
creating motion pictures , music video, television shows, cartoon animation films. In the game
industry where focus and interactivity are the key players, computer graphics helps in providing such
features in the efficient way.
➔ Education & Training:
Computer generated models are extremely useful for teaching huge number of concepts and
fundamentals in an easy to understand and learn manner. Using computer graphics many
educational models can be created through which more interest can be generated among the
students regarding the subject.
➔ Graphical user Interfaces: Nowadays all operating systems provide graphical interfaces. They
contain a number of windows. User can interact with the computer system by making some
clicks instead of typing commands
Input Devices:
1. Keyboards, button boxes, and dials
2. Mouse devices
3. Trackballs (2D) which can be rotated and spaceballs (3D) that use the amount of pressure
applied
4. Joysticks
5. Data gloves
6. Digitizers (e.g. graphics tablets) for drawing, painting, or interactively selecting positions
7. Image scanners
8. Touch panels
9. Light pens
10. Voice systems
Output Devices:
1. Printers
2. Plotters
➢ ADVANTAGES:-
i. Higher Quality
ii. More precise results or products
iii. Greater Productivity
iv. Lower analysis and design cost
v. Significantly enhances our ability to understand data and to perceive trends.
➢ DISADVANTAGES:-
1. It is not easy to create effective CG(computer graphics).
2. Lot of resources are involved in CG creation,it make's cost very high, and it take's more time
to create
3. The designer has to figure out a way of obtaining the relevant results while maintaining the
objective of the design process.
➢ CONCLUSION:-
The term computer graphics has been used in a broad sense to describe "almost everything
on computers that is not text or sound.
Hence, we successfully studied about Computer Graphics, Application, Input And Output
Devices,Advantages & Disadvantages.
CASE STUDY 2
Aim:To study and apply basic OpenGl function to draw basic primitives
1. Introduction to OpenGL
As a software interface for graphics hardware, OpenGL's main purpose is to render two- and three-
dimensional objects into a frame buffer. These objects are described as sequences of vertices
(which define geometric objects) or pixels (which define images). OpenGL performs several
processing steps on this data to convert it to pixels to form the final desired image in the frame
buffer.
This chapter presents a global view of how OpenGL works; it contains the following major sections:
"OpenGL Fundamentals" briefly explains basic OpenGL concepts, such as what a graphic
primitive is and how OpenGL implements a client-server execution model.
"Basic OpenGL Operation" gives a high-level description of how OpenGL processes data and
produces a corresponding image in the frame buffer.
The following diagram illustrates how OpenGL processes data. As shown, commands enter from the
left and proceed through a processing pipeline. Some commands specify geometric objects to be
drawn, and others control how the objects are handled during various processing stages.
5. Program using OpenGL Commands to draw Basic primitive along with output :-
#include <windows.h>
#include <GL/glut.h>
void display() {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set background color to black and opaque
glClear(GL_COLOR_BUFFER_BIT); // Clear the color buffer
OUTPUT :-
CONCLUSION:
Hence, we have studied Basic Open GL Operations and performed a Program in C language
using Open GL library.