Fog effect opengl project

15
DEPARTMENT OF COMPUTER SCIENCE IMPLEMENTATION OF FOG EFFECT SUNITHA.B.K DEPT OF CSE Guided by Presented By KISHAN BHOUNSLE.G

description

 

Transcript of Fog effect opengl project

Page 1: 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

Page 2: Fog effect opengl project

• Abstract• Introduction• Design • Implementation • Snapshots• Limitations• Conclusion• Bibliography

CONTENTS

Page 3: Fog effect opengl project

• Project demonstrates ‘IMPLEMENTATION OF FOG EFFECT’ , built as an openGL program.

ABSTRACT

Page 4: Fog effect opengl project

• 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

Page 5: Fog effect opengl project

• 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

Page 6: Fog effect opengl 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)

Page 7: Fog effect opengl project

• Implemented using OpenGL in Microsoft Visual 2008• glRotatef• gltranslatef• glpushmatrix• glpopmatrix• glvertex3f• glcolor3f• glfogfv

IMPLEMENTATIONS & MODULES USED

Page 8: Fog effect opengl project

SNAPSHOTS

At the start

Page 9: Fog effect opengl project

Before fog effect After fog effect

Page 10: Fog effect opengl project
Page 11: Fog effect opengl project
Page 12: Fog effect opengl project

• 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

Page 13: Fog effect opengl project

• 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

Page 14: Fog effect opengl project
Page 15: Fog effect opengl project

THANK YOU