simple light cover
TRANSCRIPT
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 1/8
I
VISVESWARAIAH TECHNOLOGICAL
UNIVERSITYBELGAUM (KARNATAKA)
6 t h S E M M I N I P R O J E C T R E P O R T O N
“ SIMP L E L IGHT”Developed by
ISHANT RAO 3VC07CS034
DHIRAJ JAIN 3VC07CS023
Project Guide Head of the Department
ANURADHA.S.G
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
RAO BAHADUR Y MAHABALESHWARAPPA ENGINEERING
COLLEGE(AFFILIATED TO VISVESWARAIAH TECHNOLOGICAL UNIVERSITY, BELGAUM &
APPROVED BY AICTE & ACCREDITED BY NBA, NEW DELHI)
BELLARY-583104
RAO BAHADUR Y.MAHABALESHWARAPPA COLLEGE OF
ENGINEERING
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 2/8
I
TABLE OF CONTENTS-----------------------------------------------------------------------II
BONAFIDE CERTIFICATE(DECLARATION)------------------------------------------III
ABSTRACT---------------------------------------------------------------------------------------V
ACKNOWLEDGEMENT --------------------------------------------------------------------VII
LIST OF FIGURES-----------------------------------------------------------------------------VII
Chapter 1
Introduction and statement of problem
1.1 Introduction-------------------------------------------------------------1
1.2 Scope of project--------------------------------------------------------1
Chapter 2
About openGL
2.1 What is openGL---------------------------------------------------------2
2.2 OpenGL framework----------------------------------------------------22.3 OpenGL API hardware------------------------------------------------7
2.4 Instructions for using openGL and GULT for windows XP machines with Microsoft Visual
Studio .Net 2003------------------------------------------------------------8
Chapter 3
Analysis
3.1 System analysis---------------------------------------------------------103.2 OpenGl functions used in Projects-----------------------------------10
3.3 Software and hardware requirements--------------------------------13
Chapter 4
Design
4.1 procedural design------------------------------------------------------144.2 architectural design----------------------------------------------------14
4.3 design constraints------------------------------------------------------15
4.3.1 hardware constraints4.3.2 software constraints
Chapter 5
Implementation-----------------------------------------------------------17
Chapter 6
Results and conclusion
6.1 result---------------------------------------------------------------------29
6.2 conclusions--------------------------------------------------------------29
6.3 future extensions-------------------------------------------------------29
References ------------------------------------------------------------------30
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 3/8
I
VEERASHAIVA VIDYAVARDHAKA SANGHA’S
RAO BAHADUR Y MAHABALESHWARAPPA
ENGINEERING COLLEGE
(AFFILIATED TO VISVESWARAIAH TECHNOLOGICAL UNIVERSITY, BELGAUM &APPROVED BY AICTE & ACCREDITED BY NBA, NEW DELHI)
BELLARY - 583104, KARNATAKA
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
CERTIFICATEThis is to certify that the CG LAB project work entit led “SIMPLE
LIGHT” embodies the original work done by Mr. ISHANT RAO
(3VCO7CS034). The project report has been approved as it satisfies the
academic requirements in respect of project work prescribed for the 6 t h
Semester, Bachelor of Engineering degree, for the year 2009 - 2010 .
Signature of guide Signature of HOD
ANURADHA.S.G
Name of the examiners Signature with date1.
2.
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 4/8
I
VEERASHAIVA VIDYAVARDHAKA SANGHA’S
RAO BAHADUR Y MAHABALESHWARAPPA
ENGINEERING COLLEGE
(AFFILIATED TO VISVESWARAIAH TECHNOLOGICAL UNIVERSITY, BELGAUM &APPROVED BY AICTE & ACCREDITED BY NBA, NEW DELHI)
BELLARY - 583104, KARNATAKA
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
CERTIFICATEThis is to certify that the CG LAB project work entit led “SIMPLE
LIGHT” embodies the origina l work done by Mr. DHIRAJ JAIN
(3VCO7CS023). The project report has been approved as it satisfies the
academic requirements in respect of project work prescribed for the 6 t h
Semester, Bachelor of Engineering degree, for the year 2009 - 2010 .
Signature of guide Signature of HOD
ANURADHA.S.G
Name of the examiners Signature with date
1.2.
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 5/8
I
ABSTRACT
TITLE: LIGHTING OF SPHERES
AIM: This program demonstrates how lighting takes place on an object also showing how
lighting changes its position when in motion.
DESCRIPTION:
Six spheres, each of different color are drawn using function SolidSphere() in such a way thatthey are placed next to each other forming a circle.
Function Materialfv() is also used to specify the material parameters for lighting mode.
Another small sphere is drawn using same SolidSphere().This sphere acts as the light source
which is also rotating around the six spheres.
The function Lightfv() is used to give lighting effects, transform position and direction by
ModelView matrix.
InitRendering function is used to render the lighting effects.
There are two keyboard functions also, used for user interaction with output using keyboard, the
functions are:Mykeyboardfunction
Myspecialkeyfunction
PROJECT ORGANISATION:
The ‘r’ key is used to start or stop the animation.The ‘s’ key is used to single step the animation.
The UP arrow key increases the speed of the rotating sphere.
The DOWN arrow key decreases the speed of the rotating sphere.
WORK DIVISION:
Keyboard functions, main functions and joining of modules done by Dhiraj Jain.
Drawing functions, rendering functions and joining of modules done by Ishant Rao.
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 6/8
I
PROJECT SCHEDULE:
1ST Week : Outline of project with algorithms of important functions such as rendering functions
and lighting functions. Working of materialfv() and lightfv() functions was discussed and
analysed.
2ND Week : Scene drawing function was started but without animations.
3RD Week : drawscene() function without animations was completed. Animation was added to
drawscene() and also keyboard functions were included in which drawscene() was added.
4TH Week : Keyboard functions and drawscene() was completed and linked with each other.Lighting and rendering functions were added to the source program to give lighting effects.
5TH Week : Lighting functions in the drawscene() was completed and also rendering function wascompleted.
6TH Week : All the functions were linked successfully and main() function was completed whichincluded keyboard ,specialkey ,reshape and rendering functions to complete the source code of
the project.
MINIMUM SYSTEM REQUIREMENTS:
Operating System-Windows 2000/NT
128MB RAM
40GB HDD
S/W Requirements- Visual Studio 6.0 or higher version with OpenGL version 1.5 or higher.
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 7/8
I
ACKNOWLEDGEMENT
The satisfaction and happiness that accompanies successful completion of any task could be
incomplete without mention of the people who made it possible, whose constant guidance and
encouragement crown all efforts with success.
I consider it my privilege to express my gratitude and respect to all those who
guided, inspired and helped me in the completion of this project. I owe a debt of gratitude to all of
them who were so generous with their time and expertise. I wish also to thank them for their
warm hospitality.
We are grateful to our institution R.Y.M.E.C, Bellary with its very high Ideals &
Inspirations for providing us the opportunity & infrastructure to carry out the project successfully.
We express our heartfelt thanks to Principal Dr.H.MAHABALESWARA, and
H.GIRISHA, H.O.D., Head of the Department, C.S.E., R.Y.M.E.C., whose support &
guidance was Invaluable.
We have been strongly supported by our lecturers and guides, Mrs. ANURADHA
S.G. and Ms. SURAYIA BEGUM We are thankful for their valuable guidance & suggestion’s
provided, without which Successful completion of our Project wouldn’t have been possible.
We highly indebted to the college authorities, who provided us the Lab Facilities & we also
thank the LAB FACULTY, PARENTS, FRIENDS and SENIORS for their Assistance throughout
the project. My sincere thanks and regard to one and all that have helped me either directly or indirectly in completing the project work and the course.
ASSOCIATIVE MEMBER
ISHANT RAODHIRAJ JAIN
8/6/2019 Simple Light Cover
http://slidepdf.com/reader/full/simple-light-cover 8/8
I
LIST OF FIGURES
Figure Page no.
1.Library Layers 03
2.Graphics Pipeline 03
3.View Coordinates 04
4.Window Coordinates 04
5.OpenGL function format 05
6.OpenGL primitives 06
7.Assign Colors 06
8.Block Diag. of Graphics pipeline 15
9.Conceptual frame work of interactive graphics 16
10.Output snapshots 27-28