VISVESVARAYA TECHNOLOGICALUNIVERSITY
Jnana Sangama, Belagavi - 590 014.
B.L.D.E ASSOCIATION’S
VACHANA PITAMAHA DR.P.G. HALKATTI COLLEGE OF ENGINEERING AND
TECHNOLOGY
VIJAYAPURA – 586103
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
COMPUTER GRAPHICS MINI PROJECT REPORT ON
“MOVING TRAIN”
(2022-2023)
SUBMITTED BY:
NAME USN
Shreya Jamakhandikar 2BL20CS092
Shreya Kannur 2BL20CS093
Shreya Bhavikatti 2BL20CS094
UNDER THE GUIDENCE OF
Dr.A.B.Jumnal
Prof. K. B. Patil
VISVESVARAYA TECHNOLOGICALUNIVERSITY
Jnana Sangama, Belagavi - 590 014.
B.L.D.E ASSOCIATION’S
VACHANA PITAMAHA DR.P.G.HALKATTI COLLEGE OF ENGINEERING AND
TECHNOLOGY
VIJAYAPURA – 586103
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
:CERTIFICATE:
This is to certify that the project entitled “MOVING TRAIN” is a Bonafide work
carried out by “SHREYA JAMAKHANDIKAR, SHREYA KANNUR, SHREYA
BHAVIKATTI” submitted in fulfilment of Mini Project for the Computer Graphics
Laboratory of 6th semester, during the academic year 2022-2023.
It is certified that all corrections / suggestions indicated for
internal assessment has been incorporated in the report. The project report has
been approved as it satisfies the academic requirement in respect of Lab project
work.
GUIDED BY: HOD PRINCIPAL
Dr.A.B.Jumnal Dr. Pushpa. B. Patil Dr. V. G. Sangam
Prof. K. B. Patil
NAME OF EXAMINAR SIGNATURE WITH DATE
: ACKNOWLEDGMENT :
While presenting this Project on “MOVING TRAIN”, we feel that it is our duty to
acknowledge the helprendered to us by various persons.
Firstly, we thank God for showering his blessings on me,we are grateful to our
institution B.L.D.E. A’s V.P. Dr. P. G.Halakatti College of Engineering
andTechnology, for providing us a congenital atmosphere to carry out the
project successfully.
We would like to express our heartfelt gratitude to Dr. V. G. Sangam Principal,
for extending his support. We would also like toexpress our heart-felt gratitude
to Dr.Puspha. B. Patil, HOD, Computer Science and Engineering whose guidance
and supportwas truly invaluable.
We are very grateful to our guide, Dr.A.B.Jumnal,Prof.K.B.Patilfor their able
guidance andvaluable advice at every stage of our project which helped us inthe
successful completion of our project.
We would also be indebted to our Parents and Friend fortheir continued moral
and material support throughout thecourse of project and helping us in
finalizing the presentation.
Our heartfelt thanks to all those have contributed bits,bytes and words to
accomplish this Project.
SHREYA JAMAKHANDIKAR
SHREYA KANNUR
SHREYA BHAVIKATTI
: TABLE OF CONTENTS:
SnO CONTENTS
1. INTRODUCTION
2. DESIGN AND IMPLEMENTATION
3. SIMULATION RESULT
4. CONCLUSION
5. REFERENCES
: INTRODUCTION:
Moving train is a newly designed computer graphics mini
project. In this mini project, there will be objects like train,
signal, and a place called “railway station”.
There will be a train in which it will start arriving at the railway
station when the signal light “green” is turned on.
It will stop at the railway station when the red light is turned on
and the train will not move from the railway station till the user
displays the green light in the traffic signal when the green light
is turned on then the train will start to depart from the railway
station.
In this project, there will be night mode and day mode. This is
an overview of the project.
:DESIGN AND IMPLEMENTATION:
Creating a Train in Computer graphics is not that much hard but
logical.
In this project we are going to implement an OpenGL Project on
the running train.
The best methods for building the objects is by placing the
drawing code for each object in separate function.
Each object is defined using a coordinate system that makes
modelling convenient.
Sky , environment, track, electric wires , train windows, are
made using mode GL_POLYGON.
Pantograph and joints are done by GL_LINE_LOOP &GL_LINE
mode.
After we finish the drawing our next aim would be to give
motion to the train. As we are going to draw a simple train so
our track will be straight not in zigzag manner It is made of
many boxes or rectangles while wheel is circular . In this project,
there are two modes in it namely day mode and a night mode.
To make it day mode and night mode and to display the signal
light train the controls will be provided from the keyboard and
mouse.
:SIMULATION RESULTS:
:CONCLUSION:
In this project , we constructed a running train system that can
simulate fully in an outdoor environment .
Using polygon mode, we have made a virtual environment for
the train.
The same mode is used for making the quadrilateral parts of the
train & wheel is made up circles. We have given a key ‘m’ to
stop the train while running .
To train Arrive Type T or t, To display Red Signal type R or r , To
display Green Signal type G or g , Type D for day and N for Night
Arrival and departure of the train and motion of some objects
were included in this project. Some other options are also
provided. You can implement some other objects by keeping
the reference of this according to your requirements to
enhance the project.
:REFERENCES:
➢https://developer.android.com
➢https://www.tutorialspoint.com/index.html
➢https://www.youtube.com
➢https://www.freecodecamp.org