Professional Documents
Culture Documents
Dasara Procession
Dasara Procession
BELGAUM - 590014
A CG Mini-Project Report
On
“Dasara Procession”
the award of the degree of Bachelor of Engineering in Computer Science and Engineering
CERTIFICATE
This is to certify that the Mini-Project on Computer Graphics (CG) entitled “DASARA
PROCESSION” has been successfully carried out by NEETHI B.S(1DT17CS059) and POOJA
K(1DT17CS063) a bonafide students of Dayananda sagar academy of technology and
management in partial fulfillment of the requirements for the award of degree in Bachelor of
Engineering in Computer Science and Engineering of Visvesvaraya Technological University,
Belgaum during academic year 2017-21. It is certified that all corrections/suggestions indicated for
Internal Assessment have been incorporated in the report deposited in the departmental library. The
mini project report has been approved as it satisfies the academic requirements in respect of project
work for the said degree.
Dr. C. NANDHINI
(Vice Principal & HOD, Dept. of CSE)
GUIDE:
Mrs.Chaitra
(Asst. Prof. Dept of CSE)
Examiners:
1.
ACKNOWLEDGEMENT
It gives us immense pleasure to present before you our project titled “DASARA
PROCESSION”. The joy and satisfaction that accompany the successful completion of any task
would be incomplete without the mention of those who made it possible. We are glad to express
our gratitude towards our prestigious institution DAYANANDA SAGAR ACADEMY OF
TECHNOLOGY AND MANAGEMENT for providing us with utmost knowledge,
encouragement and the maximum facilities in undertaking this project.
We wish to express a sincere thanks to our respected principal Dr. B. R. Lakshmikantha for all
their support.
We express our deepest gratitude and special thanks to Dr.C.Nandini, Vice Principal & H.O.D,
Dept.Of Computer Science Engineering, for all her guidance and encouragement.
We sincerely acknowledge the guidance and constant encouragement of our project guide
Mrs.Janhavi(Assoc. Prof. Dept of CSE) and Mrs.Chaitra (Asst. Prof. Dept of CSE)
POOJA K(1DT17CS063)
NEETHI B.S(1DT17CS059)
Chapter1
INTRODUCTION
1.1 About Computer Graphics
The Computer Graphics is one of the most effective and commonly used methods to
communicate the processed information to the user. It displays the information in the form of
graphics objects such as pictures, charts, graphs and diagram instead of simple text.
In computer graphics, pictures or graphics objects are presented as a collection of discrete
picture elements called pixels. The pixel is the smallest addressable screen element
Computer graphics today is largely interactive: The user controls the contents structure,
and appearance of objects and their displayed images by using input devices, such as a keyboard,
mouse, or touch-sensitive panel on the screen.
Computer Graphics relies on an internal model of the scene, that is, mathematical
representation suitable for graphical computations. The model describes the 3D shapes, layout
and materials of the scene. This 3D representation then has to be projected to compute a 2D
image from a given viewpoint, this is rendering step. Rendering involves projecting the objects,
handling visibility (which parts of objects are hidden) and computing their appearance and
lighting interactions. Finally, for animated sequence, the motion of objects has to be specified.
Computer graphics today is largely interactive: The user controls the contents structure, and
appearance of objects and their displayed images by using input devices, such as a keyboard,
mouse, or touch-sensitive panel on the screen.
OpenGL Architecture
This is the most important diagram you will see today, representing the flow of graphical
information, as it is processed d from CPU to the frame buffer.
There are two pipelines of data flow. The upper pipeline is for geometric, vertex-based
primitives. The lower pipeline ne is for pixel-based, image primitives. Texturing combines the
two types of primitives together.
1.3 About the Project
Computer graphics involves the designing of objects in different forms which are regular
and irregular in shape. The mini project named “Dasara Procession” creates 2D Mysore
palace, ambari, tableaux, musicians and crowd with day and night mode,giant wheel. This
project is designed and implemented using OpenGL interactive application that basically
deals with providing the graphical interface between the user and the system. Through
keyboard events the movement of musicians, tableaux and ambari along with multiple
elephants have been implemented, which also includes day and night mode of Mysore
palace. Using a drop down menu the color of the Mysore palace and street lights can be
changed.
Chapter 2
REQUIREMENT SPECIFICATION
Chapter 3
DESIGN
Design is the planning that lays the basics for the making of every objects or systems.
This chapter involves designing of various aspects and different stages of project. When program
is made to execute, the output window is displayed first. The flow of operation from output
window is shown in figure.
User
Interface
Interface
Change
color in
night to
red.
Chapter 4
IMPLEMENTATION
Implementation is the stage where all planned activities are put into action. Before the
implementation of a project, the implementer’s (spearheaded by the project committee or
executive) should identify their strength and weaknesses (internal forces), opportunities and
threats (external forces).
Void elephant ()
Void palace ()
Void chamundihill ()
Void nightpalaceyellow ()
This function is used to draw the night mode of palace in yellow lights.
Void nightpalacered ()
This function is used to draw the night mode of palace in red lights.
Void nightpalaceblue ()
This function is used to draw the night mode of palace in blue lights.
Void elephantpos ()
Void mykeys ()
4.2 Flowchart
Start
Main ()
Init ()
Display ()
mykeys () fields()
Quit
A
display4() Key==4
Key==5
Display5()
#include<stdio.h>:To take input from standard input and write it to standard output.
#include<GL/glut>:To include glut library functions.
#include<math.h>:To define common mathematical functions.
nightpalaceyellow(): This function is used to draw night mode of palace in yellow lights.
nightpalacered(): This function is used to draw night mode of palace in red lights.
nightpalaceblue (): This function is used to draw night mode of palace in blue lights.
streetlightnight(): This function is used to draw the yellow colored street lights in night
mode.
streetlightnightred(): This function is used to draw the red colored street lights in night
mode.
streetlightnightblue(): This function is used to draw the blue colored street lights in
night mode.
translate2(): This function is used to move the ambari along with other elephants.
night1y(), night1r(), nightb(): This function is used to draw the side walls and dooms in
yellow, red, blue respectively.
night2y(), night2r(), night2b(): This function is used to draw the central portion of side
walls in yellow, red, blue respectively.
night3y(), night3r(), night3b(): This function is used to draw the central portion of the
palace in yellow, red, blue respectively.
night4y(), night4r(), night4b(): This function is used to draw four dwarakas in yellow,
red, blue respectively.
night5y(), night5r(), night5b(): This function is used to draw small dwarakas beside
main dwaraka in yellow, red, blue respectively.
night6y(), night6r(), night6b(): This function is used to draw the main dwaraka in
yellow, red, blue respectively.
charioteele():This function is used to draw the elephant that moves the chariote.
glutInit (int *argc, char **argv): glutInit is used to initialize the GLUT library.
glBegin (glEnum mode): It initiates a new primitive of type mode and starts the
collection of vertices. Values of mode include GL_POINTS, GL_LINES,
GL_LINE_STRIP, and GL_POLYGON.
glTranslatef(-220,500,0);
tree();
glPopMatrix();
glPushMatrix();
glTranslatef(600,500,0);
tree();
glPopMatrix();
glPushMatrix();
glTranslatef(650,500,0);
tree();
glPopMatrix();
}
void sky()
{
glColor3f(0.6,0.9,0.99);
glBegin(GL_POLYGON);
glVertex2i(0,0);
glVertex2i(0,999);
glVertex2i(999,999);
glVertex2i(999,0);
glEnd();
}
glVertex2f(570,210);
glVertex2f(720,210);
glVertex2f(720,180);
glEnd();
//temple
glColor3f(0.8,0.9,0.0);
glBegin(GL_POLYGON);
Chapter 5
SNAPSHOTS
A snapshot is the state of the system at a particular point in time. It can refer to the actual
copy of a state of a system or to a capability provide by systems.
This snapshot shows the movement of musicians where one group playing drums and other
group playing flute.
This snapshot shows the movement of tableaux and chariot containing musical instruments
which is moved by the elephant.
This snapshot shows the static view of ambari along with other elephant
This snapshot shows the movement of ambari along with other elephants.
This snapshot shows the night mode of the Mysore palace with yellow lightings of palace and
streetlights.
This snapshot shows the night mode of the Mysore palace with blue lightings of palace and
streetlights using pop up menu.
Chapter 6
6.1 Conclusion
The Dasara Procession Graphics package has been developed Using OpenGL. The main idea of
the program is to show how the Dasara Procession takes place through the keyboard interaction,
which includes day and night mode of Mysore palace, and movement of musicians, tableaux and
ambari along with multiple elephants. Further, we can change the colors in the night mode using
pop up menu.
BIBILOGRAPHY
BOOKS
[1] Edward Angel: Interactive Computer Graphics A Top-Down Approach with OpenGL, 5th
Edition, Pearson Education, 2008.
[2] Donald Hearn and Pauline Baker: Computer Graphics- OpenGL Version, 3rd Edition,
Pearson Education, 2008.
[3] F.S Hill Jr.: Computer Graphics Using OpenGL, 3rd Edition, PHI, 2009.
WEBSITES
[1] http://www.opengl.org/resources/libraries/glut/
[2] http://www.opengl.ord/
[3]http://en.wikipedia.org/wiki/opengl