Вы находитесь на странице: 1из 17

WIND MILL

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

BELGAUM, KARNATAKA

A MINI PROJECT REPORT ON

WIND MILL

A report submitted in partial fulfillment of the requirements for the

MINI PROJECT OF COMPUTER GRAPHCIS AND VISUALIZATION LAB (10CSL67)

Submitted by
KAVITHA.S.R (3BR12CS032)

KAVYA.B.H (3BR12CS033)
Under the guidance of

Prof. JAGADISH.R.M

Prof. AZHAR BAIG .M

Department of CSE, BITM, Bellary.

CSE,BITM Page 1
WIND MILL

BASAVARAJESWARI GROUP OF INSTITUTIONS

BALLARI INSTITUTE OF TECHNOLOGY & MANAGEMENT


NBA Accredited Institution*
(Recognized by Govt. of Karnataka, approved by AICTE, New Delhi & Affiliated to
Visvesvaraya Technological University, Belgaum)
"JnanaGangotri" Campus, No.873/2, Bellary-Hospet Road, Allipur,
Bellary-583 104 (Karnataka) (India)
Ph: 08392 237100 / 237190, Fax: 08392 - 237197

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

CERTIFICATE
Certified that the mini project work entitled WIND MILL carried out by Kavitha.S.R bearing
USN 3BR12CS032 ,Kavya.B.H bearing USN 3BR12CS033 a bonafide student of Ballari
institute of technology and management, in partial fulfillment of the requirements for the mini
project of Computer Graphcis And Visualization Lab (10CLl67) of the Visvesvaraya
Technological University, Belgaum during the year 2013-2014. It is certified that all
corrections/suggestions indicated for internal assessment have been incorporated. The report has
been approved as it satisfies the academic requirements in respect of mini project work
prescribed for the VIth semester.

Signature of the project guide Signature of the HOD


1.Prof. Jagadish.R.M Dr.R.N.Kulakarni
B.E., M.Tech.,Ph.D

2.Prof. Azhar Baig .M

External viva
Name of the Examiners Signature with date

1.

2.

CSE,BITM Page 2
WIND MILL

ACKNOWLEDGEMENT
The satisfaction and euphoria that accompany the successful completion of any
project would be incomplete without mentioning the people who made it possible,
whose constant guidance and encouragements crowned my efforts with success.
We take this opportunity to express the deepest gratitude and appreciation to all
those held me directly or indirectly towards the successful completion of the project.

It is indeed great pleasure and privilege for me to meet this project report. We wish
to take opportunity to pay my profound gratefulness and express my indebtedness
to my guideJAGADISH.R.M andAZHAR BAIG.M,for his keen interest in preparing
the project report and also to the lecturer. S.BASAVARAJ, instructor for helping in
making out this project.

We are very thankful to DR.R.N.KULKARNI Head of the Department of Computer


Science and Engineering for his valuable guidance and suggestion.

We would like to express my sincere gratitude to DR.V.C.PATIL Principal for


providing facilities in the college campus.

We are also thankful for all the Staff members of Computer Science and Engineering
dept. for their Co-operation of project report.

CSE,BITM Page 3
WIND MILL

ABSTRICT

The project WINDMILL is about to show how we efficiently make use of


renewable energy using OpenGL function. We have used simple OpenGL functions
to draw a rotating fans and We show the generation of electricity when the fans
are rotated. Using this mechanical energy we can generate the electricity which is
nonrenewable.

It provides most the features that a model should have. It is developed in C. It


has been implemented on FEDORA platform. The graphics package designed here
provides an interface for the users for handling the display and manipulation of
basic picture objects. It can also perform operations on selected objects like
translation.

The change in direction of rotation of fan in wind mill and generation of electricity is the
result of this project. It provides most of the features that a 2D graphic editor should have. It is
developed in C programming language and implemented on the FEDORA platform. The
graphics package designed here provides an interface for the users for handling the display and
manipulation of basic picture objects like point, line, etc. The interface is user-friendly.

CSE,BITM Page 4
WIND MILL

CONTENTS

INTRODUCTION
REQUIREMENT SPECIFICATION
FUNCTIONS
SNAPSHOTS
CONCLUSION
BIBLIOGRAPHY

CSE,BITM Page 5
WIND MILL

Chapter 1

INTRODUCTION
About OpenGL

The Computer Graphics is one of the most effective and commonly used
methods to communicate the processed information to the user. It displays the
information in the form of graphics objects such as pictures, charts, graphs and
diagram instead of simple text.

OpenGL is supported on all platforms. Drivers are available virtually for all
graphics cards. OpenGLs extensive capabilities and well-defined architecture
supports advanced concepts such as texture mapping, compositing and
programmable shaders. It is easy to learn, and it possesses most of the
characteristics of other popular graphics systems.

The main features of OpenGL are

It provides 3D geometric objects such as lines, polygons, triangle, meshes, spheres,


cubes, quadric surface, and curved surfaces.It provides 3D modeling transformations
and viewing functions to create views of 3D scenes using the idea of a virtual camera.
It supports high-quality rendering of scenes, including hidden-surface removal,
multiple light sources, material types, transparency, textures, blending, fog
It provides display lists for creating graphics caches and hierarchical models. It also
supports the interactive picking of objects.It supports the manipulation of images as
pixels, enabling frame-buffer effects such as ant aliasing, motion blur, depth of field
and soft shadows.

A key feature of the design of OpenGL is the separation of interaction from


rendering. OpenGL itself is concerned only with graphics rendering.

Abbreviations:

GLUT- OpenGL Utility Toolkit

GLU- OpenGL Library Utility

CSE,BITM Page 6
WIND MILL

Chapter 2

REQUIREMENT SPECIFICATION
System requirements are expressed in software requirements document. It is the official
statement of what is required of the system developers. Requirements document includes the
requirement definitions and the requirement specifications. The software requirement document
is not a designed document. It should set out what the system should do without specifying how
it should be done.

System Requirements Specifications in our project

User requirements
The package provides good user interface.

The system design should be based on functions.

The package should be flexible.

Functional requirements
User should provide main containing all functions.

Interface is required.

Presentation of the function should have a clear cut approach.

There should exist interaction between user and system.

Hardware Specification Details


Processor : Intel 386 onwards Compatible Hardware.

RAM : 16MB RAM and more.

Hard Disk : 20 GB and more.

Monitor : EGVGA Compatible.

Keyboard : Standard 101 key Keyboard.

CSE,BITM Page 7
WIND MILL

Backup Media : Hard disk.

Mouse(ps/2),Printer (optional)

Software Specification Details

Operating System : Fedora 10 and higher version

Language Tool : OpenGL.

Compiler : GNU GCC Compiler /C++ complier.

Libraries : GL/gl.h, GL/glut.h, GL/glu.h

Documentation Tool : vi editor, geditor

CSE,BITM Page 8
WIND MILL

Chapter 3

FUNCTIONS
The Graphics Package is designed using the in-built graphics library. The objects, which are
drawn, are stored as functions that can be used according to the requirements.
Ease of understanding and speed of working are two main requirements for it,
which should be kept in mind during phase of design and implementation.

Basic Design

The 2-D transformation project has been developed in C that also provides an in-
built graphics library through "GL/glut.h".

Modules and their descriptions


Header files
stdio.h : This is the header file that includes the functions like printf(), scanf() for read and
write operations. It also includes the file handling like open(), close(), etc.

stdlib.h : This is used to get some standard libraries.

GL/glut.h : This is to include the graphics built in openGL function and utilities to
build and implement our customized graphics packages.

Inbuilt functions
glClearColor() :
C Specification
void glClearColor (GLfloat red, GLfloat green, GLfloat blue,
GLfloat alpha);

Description: This function sets the color value that is used when clearing
the color buffer.
glClear() :
C Specification
void glClear();

Description: This function clears the particular buffer.

CSE,BITM Page 9
WIND MILL

glTranslatef() :
C Specification
void glTranslatef( GLdouble x, GLdouble y, GLdouble z );

Description: This function multiplies the current matrix by a translation


matrix.

glColor3f() :
C Specification
void glColor3f( TYPE R , TYPE G, TYPE B );

Description: This function sets the present RGB (or RGBA) colors.
glVertex2f() :
C Specification
void glVertex2f();

Description: This function defines a line segment.


glutSwapBuffers() :
C Specification
void glutSwapBuffers();
Description: This function swaps the front and the back buffers.

glLoadIdentity() :
C Specification
void glLoadIdentity();

Description: This function sets the current transformation matrix to an


identity matrix.
glRasterPos2f() :
C Specification
void glRasterPos2f( TYPE xcoord, TYPE ycoord,. );

Description: This function specifies a raster position.


glutBitmapCharacter() :
C Specification

void glutBitmapCharacter( void* font, int char );

Description: This function renders the character with ASCII code char at
the current raster position using the raster font given by font.
glutPostRedisplay() :
C Specification
void glutPostRedisplay();

CSE,BITM Page 10
WIND MILL

Description: this function requests that the display callback be executed


after the current callback returns.
glutInit() :
C Specification
void glutInit( int *argc, char **argv);

Description: This function initializes GLUT.

glutInitDisplayMode() :
C Specification
void glutInitDisplayMode( unsigned int mode );

Description: This function requests a display with the properties in mode.

glutInitWindowPosition() :
C Specification
void glutInitWindowPosition( int x, int y );

Description: This function specifies the initial position of the top-left


corner of the window in pixels.

glutCreateWindow() :
C Specification
void glutCreateWindow( char *title );

Description: This function creates a window on the display.

init() :
C Specification
void init();

Description:
glutDisplayFunc() :
C Specification
void glutDisplayFunc( void (*func)(void) );

Description: This function registers the display function func that is



executed when the window needs to be redrawn.
glutReshapeFunc() :
C Specification

CSE,BITM Page 11
WIND MILL

void glutReshapeFunc( void *f( int width, int height ) );

Description: This function registers the reshape callback function f.

glutMouseFunc() :
C Specification
void glutMouseFunc( void *f(int button, int state, int x, int y) );

Description: This function registers the mouse callback function f.

glutIdleFunc() :
C Specification
void glutIdelFunc( void (*f)(void) );

Description: This function registers the display callback function f that is


executed whenever there are no other events to be handled.

glutMainLoop() :
C Specification
void glutMainLoop();

Description: This function causes the program to enter an event-processing


loop.

User defined functions

display( ) :
C Specification
void display (void );

Description: This function will display the output..


house( ):
C Specification
void house( void );

Description: This function will displays the house like structure.

CSE,BITM Page 12
WIND MILL

CSE,BITM Page 13
WIND MILL

Chapter 4

SNAPSHOTS

Fig.(a). When the wind mill wing rotates in clockwise direction

CSE,BITM Page 14
WIND MILL

Fig.(b). when the wind mill wing rotatates in anticlock wise


rotation

Fig.(c) when the wind mill wing stop.


CSE,BITM Page 15
WIND MILL

Chapter 5

CONCLUSION
This project is implemented using OpenGL. We have used simple
OpenGL

functions to draw a rotating fans and we show the generation of electricity


when the

fans are rotated. Wind power is the conversion of wind energy into a useful
form of energy, such as using rotating fans we can generate the electricity
which is used for daily routines.

This project also helps us to analyze how we can use the different standard
functions for creating the changes of rotation of fan in wind mill.(clockwise, anti-
clockwise). This package is very useful for the users since it provides the basic
information about various OpenGL functions.

This product has been demonstrated to fulfill the requirements. The


functionality of all the modules and the module level integration is found to be
satisfactory.

This graphics model is very useful, one showing the rotational changes
implementation. We have tried our best to make this modeling very realistic, so that
the user does not face any trouble when seeing over from any real life to this highly
useful graphics model.

Thus we have completed our project successfully by learning the concepts of


OpenGL and Computer Graphics.

CSE,BITM Page 16
WIND MILL

BIBLIOGRAPHY
BOOKS:
[1] Edward Angel, 2009, Interactive computer graphics. A Top-Down approach with

OpenGL, 5th edition, Addison-Wesley.

[2] Blinn.J.F.,M.E.Newell, 1976, Texture and Reflection in computer generated

Images, CACM.

[3] Kilgard.M.J., 1994, An OpenGL Toolkit, SIGS publications.

WEBSITES
1. http://www.opengl.org
2. http://en.wikipedia.org

CSE,BITM Page 17

Вам также может понравиться