SlideShare a Scribd company logo
1 of 16
ATME COLLEGE OF ENGINEERING
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
A Mini Project On
“IMPLEMENTATION OF 3D WIND MILL”
Computer Graphics Laboratory with Mini Project
(18CSL67)
Submitted By
Prathya (4AD20CS063)
Punya Keerthi S (4AD20CS066)
Under the Guidance Of
Mr. Sandesh R
Assistant Professor
Dept. of CSE, ATMECE
CONTENTS
• Introduction
• Application
• Implementation
• Results
• Conclusion
• References
Introduction
 The main idea of the program is to implement the Windmill by rotating the wings of the fan.
 In this program, we are controlling the functions of the fan using the menu, which can be done by
clicking the RIGHT MOUSE BUTTON.
 If we click on the 1st option FAN COLOR, it opens the sub-menu in which user can select the color
of his choice. The user can choose the color of his choice from the menu. In the menu, there is the
option of default color(White), Brown color, Red color and Blue color of which selection can be
made.
 Similarly, if we click on the 2nd option FAN TEXTURE, it opens the sub-menu in which user can
disable or enable the texture to the wings of the fan.
 The 3rd option OPERATIONS opens up the sub-menu for fan functions such as start, stop, speed1,
speed2, speed3, speed4, and speed5. The 4th option is to QUIT and come out of the executing
program.
Introduction
 The keys which are used to create the speed differential are:-
 “s”: - this key is used to start the rotation of the fan initially.
 “q”: - this key is used to stop the fan rotation.
 “1”: - this key is used to rotate the fan at speed1.
 “2”: - this key is used to rotate the fan at speed2.
 “3”: - this key is used to rotate the fan at speed3.
 “4”: - this key is used to rotate the fan at speed4.
 “5”: - this key is used to rotate the fan at speed5. We can also control the movement of the
aircraft running in the background by using the keys:
 “f”: - this key is used to fast-forward the aircraft into farther distances.
 “b”: - this key is used to bring back/hold back the aircraft in place
Application
 Some of the common applications of windmills are as below:
• Milling grains
• Water and drainage pumping
• Oil extraction from seeds
• Machining
• Saw-milling of timber
 Processing of commodities like:
• Cocoa
• Dyes
• Stock-watering
 The main purpose of windmills today is to convert wind energy into electrical energy
and this electrical energy is further used to power end applications.
 Moreover, windmills are a very environment-friendly way that allows us to ease up our
work without damaging the environment.
Implementation
OpenGL Functions used in the application:
 glutInit(int argc, char **argv)
• Initializes GLUT. The arguments from main are passed in can be used by the application.
 glutCreateWindow(char *title)
• Creates a window on the display. The string title can be used to label the window.
 glutInitDisplayMode(unsigned int mode)
• Requests a display with the properties in mode. The value of mode is determined by the
logical OR.
 glutInitWindowSize(int width, int height)
• Specifies the initial height and width of the window in pixels.
 glutInitWindowPosition(int x, int y)
• Specifies the initial position of the top-left corner of the window in pixels
OpenGL Functions used in the application:
 glutMainLoop()
• Cause the program to enter an event processing loop.
 glutDisplayFunc(void (*func)(void))
• Registers the display function func that is executed when the window needs to be
redrawn.
 glViewport(int x, int y, GLsizei width, GLsizei height)
• Specifies a width x height viewport in pixels whose lower left corner is at (x , y)
measured from the origin of the window.
 glutPostRedisplay()
• Requests that the display callback be executed after the current callback return
User Defined functions used in the application:
 Void Idle ():
• Is used to assign the speed of the rotation given to the wings of the windmill.
• This function is used to display and move the aircraft object on the screen.
• This function is used to enable the user to fast forward or rewind the aircraft back into its
place.
 Void Camera():
• This function allows the user to look at the display from a defined user perspective which
includes the viewers position,the point of interest and on what axis the user would like to
render and view the display in.
 Void l_props():
• This function defines the lighting properties for the windmill.
Results
Conclusion
• The Windmill Graphics package has been developed Using OpenGL. The illustration of graphical
principles and OpenGL features are included and application program is efficiently developed.
• The aim in developing this program was to design a simple program using Open GL application
software by applying the skills we learnt in class, and in doing so, to understand the algorithms and
the techniques underlying interactive graphics better.
• The designed program will incorporate all the basic properties that a simple program must possess.
The program is user friendly as the only skill required in executing this program is the knowledge
of graphics.
• The main idea of the program is to implement the Windmill by creating the wings and applying
rotation to them and giving different speeds of rotation. Thus, executing the program successfully.
Future Enhancement
• In future many other 3D geometrical shapes can be added to improve the epilogue
of education project.
• More buttons are implemented to move the objects. For example opening and
closing the doors of the house using left and right arrows of the keyboard.
References
Books:
[1] Edward Angel, Interactive Computer Graphics :A Top-Down Approach Using
OpenGL, Fifth edition, Addison Wilsey, 2009.
[2]Hearnand Pauline Baker, Computer Graphics-C version,Second edition,Pearson
Education,2003
[3] OpenGL Programming Guide. The official guide to learning OpenGL
Web References:
[1] www.wikipedia.com
[2] http://en.wikipedia.org/wiki/OpenGL_Utility_Toolkit
[3] http://opengl.com
[4] http://www.stackoverflow.com

More Related Content

Similar to ppt_3DWM_CG-1[1] 04july.ppt of wind mill project.

Tool Development 01 - Introduction to Tool Development
Tool Development 01 - Introduction to Tool DevelopmentTool Development 01 - Introduction to Tool Development
Tool Development 01 - Introduction to Tool DevelopmentNick Pruehs
 
Subtrative Manufacturing Report
Subtrative Manufacturing ReportSubtrative Manufacturing Report
Subtrative Manufacturing ReportJoseph Legan
 
Assignment3
Assignment3Assignment3
Assignment3Mahmoud
 
Lab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer GraphicsLab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer GraphicsRup Chowdhury
 
Computer Graphics with OpenGL presentation Slides.pptx
Computer Graphics with OpenGL presentation Slides.pptxComputer Graphics with OpenGL presentation Slides.pptx
Computer Graphics with OpenGL presentation Slides.pptxAnandM62785
 
Application of Google Earth Engine in Open NAPs
Application of Google Earth Engine in Open NAPsApplication of Google Earth Engine in Open NAPs
Application of Google Earth Engine in Open NAPsNAP Events
 
Mini Project final report on " LEAKY BUCKET ALGORITHM "
Mini Project final report on " LEAKY BUCKET ALGORITHM "Mini Project final report on " LEAKY BUCKET ALGORITHM "
Mini Project final report on " LEAKY BUCKET ALGORITHM "Nikhil Jain
 
How to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in ScilabHow to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in ScilabScilab
 
Lhy tutorial gui(1)
Lhy tutorial gui(1)Lhy tutorial gui(1)
Lhy tutorial gui(1)Brijesh Naik
 
Detection of medical instruments project- PART 1
Detection of medical instruments project- PART 1Detection of medical instruments project- PART 1
Detection of medical instruments project- PART 1Sairam Adithya
 
DESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEM
DESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEMDESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEM
DESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEMIRJET Journal
 
Polyline download and visualization over terrain models
Polyline download and visualization over terrain modelsPolyline download and visualization over terrain models
Polyline download and visualization over terrain modelsgraphitech
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfROWELL MARQUINA
 

Similar to ppt_3DWM_CG-1[1] 04july.ppt of wind mill project. (20)

Tool Development 01 - Introduction to Tool Development
Tool Development 01 - Introduction to Tool DevelopmentTool Development 01 - Introduction to Tool Development
Tool Development 01 - Introduction to Tool Development
 
Subtrative Manufacturing Report
Subtrative Manufacturing ReportSubtrative Manufacturing Report
Subtrative Manufacturing Report
 
Assignment3
Assignment3Assignment3
Assignment3
 
Opengl (1)
Opengl (1)Opengl (1)
Opengl (1)
 
Lab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer GraphicsLab Practices and Works Documentation / Report on Computer Graphics
Lab Practices and Works Documentation / Report on Computer Graphics
 
Computer Graphics with OpenGL presentation Slides.pptx
Computer Graphics with OpenGL presentation Slides.pptxComputer Graphics with OpenGL presentation Slides.pptx
Computer Graphics with OpenGL presentation Slides.pptx
 
Application of Google Earth Engine in Open NAPs
Application of Google Earth Engine in Open NAPsApplication of Google Earth Engine in Open NAPs
Application of Google Earth Engine in Open NAPs
 
Java chapter 7
Java chapter 7Java chapter 7
Java chapter 7
 
Mini Project final report on " LEAKY BUCKET ALGORITHM "
Mini Project final report on " LEAKY BUCKET ALGORITHM "Mini Project final report on " LEAKY BUCKET ALGORITHM "
Mini Project final report on " LEAKY BUCKET ALGORITHM "
 
Manual
ManualManual
Manual
 
How to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in ScilabHow to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in Scilab
 
Lhy tutorial gui(1)
Lhy tutorial gui(1)Lhy tutorial gui(1)
Lhy tutorial gui(1)
 
Detection of medical instruments project- PART 1
Detection of medical instruments project- PART 1Detection of medical instruments project- PART 1
Detection of medical instruments project- PART 1
 
DESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEM
DESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEMDESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEM
DESIGN AND ANALYSIS OF SLAT OPERATED BRAKING SYSTEM
 
phase_1.pptx
phase_1.pptxphase_1.pptx
phase_1.pptx
 
Polyline download and visualization over terrain models
Polyline download and visualization over terrain modelsPolyline download and visualization over terrain models
Polyline download and visualization over terrain models
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
Arkanoid Game
Arkanoid GameArkanoid Game
Arkanoid Game
 
android ch3.pptx
android ch3.pptxandroid ch3.pptx
android ch3.pptx
 
Hill ch2ed3
Hill ch2ed3Hill ch2ed3
Hill ch2ed3
 

Recently uploaded

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 

Recently uploaded (20)

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 

ppt_3DWM_CG-1[1] 04july.ppt of wind mill project.

  • 1. ATME COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING A Mini Project On “IMPLEMENTATION OF 3D WIND MILL” Computer Graphics Laboratory with Mini Project (18CSL67) Submitted By Prathya (4AD20CS063) Punya Keerthi S (4AD20CS066) Under the Guidance Of Mr. Sandesh R Assistant Professor Dept. of CSE, ATMECE
  • 2. CONTENTS • Introduction • Application • Implementation • Results • Conclusion • References
  • 3. Introduction  The main idea of the program is to implement the Windmill by rotating the wings of the fan.  In this program, we are controlling the functions of the fan using the menu, which can be done by clicking the RIGHT MOUSE BUTTON.  If we click on the 1st option FAN COLOR, it opens the sub-menu in which user can select the color of his choice. The user can choose the color of his choice from the menu. In the menu, there is the option of default color(White), Brown color, Red color and Blue color of which selection can be made.  Similarly, if we click on the 2nd option FAN TEXTURE, it opens the sub-menu in which user can disable or enable the texture to the wings of the fan.  The 3rd option OPERATIONS opens up the sub-menu for fan functions such as start, stop, speed1, speed2, speed3, speed4, and speed5. The 4th option is to QUIT and come out of the executing program.
  • 4. Introduction  The keys which are used to create the speed differential are:-  “s”: - this key is used to start the rotation of the fan initially.  “q”: - this key is used to stop the fan rotation.  “1”: - this key is used to rotate the fan at speed1.  “2”: - this key is used to rotate the fan at speed2.  “3”: - this key is used to rotate the fan at speed3.  “4”: - this key is used to rotate the fan at speed4.  “5”: - this key is used to rotate the fan at speed5. We can also control the movement of the aircraft running in the background by using the keys:  “f”: - this key is used to fast-forward the aircraft into farther distances.  “b”: - this key is used to bring back/hold back the aircraft in place
  • 5. Application  Some of the common applications of windmills are as below: • Milling grains • Water and drainage pumping • Oil extraction from seeds • Machining • Saw-milling of timber  Processing of commodities like: • Cocoa • Dyes • Stock-watering  The main purpose of windmills today is to convert wind energy into electrical energy and this electrical energy is further used to power end applications.  Moreover, windmills are a very environment-friendly way that allows us to ease up our work without damaging the environment.
  • 6. Implementation OpenGL Functions used in the application:  glutInit(int argc, char **argv) • Initializes GLUT. The arguments from main are passed in can be used by the application.  glutCreateWindow(char *title) • Creates a window on the display. The string title can be used to label the window.  glutInitDisplayMode(unsigned int mode) • Requests a display with the properties in mode. The value of mode is determined by the logical OR.  glutInitWindowSize(int width, int height) • Specifies the initial height and width of the window in pixels.  glutInitWindowPosition(int x, int y) • Specifies the initial position of the top-left corner of the window in pixels
  • 7. OpenGL Functions used in the application:  glutMainLoop() • Cause the program to enter an event processing loop.  glutDisplayFunc(void (*func)(void)) • Registers the display function func that is executed when the window needs to be redrawn.  glViewport(int x, int y, GLsizei width, GLsizei height) • Specifies a width x height viewport in pixels whose lower left corner is at (x , y) measured from the origin of the window.  glutPostRedisplay() • Requests that the display callback be executed after the current callback return
  • 8. User Defined functions used in the application:  Void Idle (): • Is used to assign the speed of the rotation given to the wings of the windmill. • This function is used to display and move the aircraft object on the screen. • This function is used to enable the user to fast forward or rewind the aircraft back into its place.  Void Camera(): • This function allows the user to look at the display from a defined user perspective which includes the viewers position,the point of interest and on what axis the user would like to render and view the display in.  Void l_props(): • This function defines the lighting properties for the windmill.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. Conclusion • The Windmill Graphics package has been developed Using OpenGL. The illustration of graphical principles and OpenGL features are included and application program is efficiently developed. • The aim in developing this program was to design a simple program using Open GL application software by applying the skills we learnt in class, and in doing so, to understand the algorithms and the techniques underlying interactive graphics better. • The designed program will incorporate all the basic properties that a simple program must possess. The program is user friendly as the only skill required in executing this program is the knowledge of graphics. • The main idea of the program is to implement the Windmill by creating the wings and applying rotation to them and giving different speeds of rotation. Thus, executing the program successfully.
  • 15. Future Enhancement • In future many other 3D geometrical shapes can be added to improve the epilogue of education project. • More buttons are implemented to move the objects. For example opening and closing the doors of the house using left and right arrows of the keyboard.
  • 16. References Books: [1] Edward Angel, Interactive Computer Graphics :A Top-Down Approach Using OpenGL, Fifth edition, Addison Wilsey, 2009. [2]Hearnand Pauline Baker, Computer Graphics-C version,Second edition,Pearson Education,2003 [3] OpenGL Programming Guide. The official guide to learning OpenGL Web References: [1] www.wikipedia.com [2] http://en.wikipedia.org/wiki/OpenGL_Utility_Toolkit [3] http://opengl.com [4] http://www.stackoverflow.com