Fog effect opengl project
-
Upload
kishan-bhounsle-g -
Category
Education
-
view
141 -
download
2
description
Transcript of Fog effect opengl project
DEPARTMENT OF COMPUTER SCIENCE IMPLEMENTATION OF FOG EFFECT
SUNITHA.B.K DEPT OF CSE
Guided by
Presented By
KISHAN BHOUNSLE.G
• Abstract• Introduction• Design • Implementation • Snapshots• Limitations• Conclusion• Bibliography
CONTENTS
• Project demonstrates ‘IMPLEMENTATION OF FOG EFFECT’ , built as an openGL program.
ABSTRACT
• Evolution of graphics systems capable of generating sophisticated images in real time, have led to implement of fog effect on car
• In this project we have implemented 3d transformation and fog effect by using realistic controls.
INTRODUCTION
• We build the project with help of the graphics functions which are already defined.
• In this project we mainly concentrate on fog effect on car and transformation along the respective x,y, and z axis. • For the interaction we use keyboard function
and mouse function.
DESIGN OF PROJECT
Main
DisplayKeyboard Initialize
Create_menuDisIntroduction
Display the front screen
drawgl
Move theCar alongz-axis forwards
Generate car in thefar plane
Generate the car in thenear plane
Generate fog & enable lighting
Stop :Display
Restore :Display0Drawgl()
Rotate : Display()Drawgl
Left – To select the optionss :
Right – To change trhe color of car
TO increase the size of car:
Todecrease the size of car:
Default : For default speed
Quit :escapeexit(0)
• Implemented using OpenGL in Microsoft Visual 2008• glRotatef• gltranslatef• glpushmatrix• glpopmatrix• glvertex3f• glcolor3f• glfogfv
IMPLEMENTATIONS & MODULES USED
SNAPSHOTS
At the start
Before fog effect After fog effect
• With the help of OpenGL graphics package we have developed the educational package.
• The interface can also be provided with key board, it can be developed with mouse interface since most of the packages to day are mouse interfaced and it is easy to work with mouse than keyboard.
• In future this can be enhanced to give an animated version of demonstration
CONCLUSION
• Edward angel, “Interactive computer graphics A top down approach with openGL”,Pearson education,5th edition,2009,pp 230-250
• F.S.Hill, “Computer graphics using openGL"
BIBLIOGRAPHY
THANK YOU