This document describes a project to simulate water ripples on a surface using OpenGL APIs. It discusses computer graphics and OpenGL, outlines the aim and objectives of simulating water ripples, describes the working principle of using two buffers to simulate the changing water surface over time, and provides details on the design and implementation including user-defined functions. The results are shown through snapshots and the document concludes with possibilities for future extension, including making it 3D and compatible with other languages.
1. Under the guidance of:
Mr. S Prabhudeva B.E, M.S. (Ph.D) Mrs. Thaseen BhashithB.E,M.Tech
Assoc. Prof, Dept. of CSE Lecturer, Dept. of CSE
Submitted by:
ARUN KUMAR .K 4JN08CS401
AYOOB C.H 4JN04CS013
Jawaharlal Nehru National College of Engineering
Department of Computer Science & Engineering
4. About Computer Graphics
A powerful tool for the rapid and economical
production of pictures.
Is a generalized tool for drawing and creating
pictures.
Simulate the real world situations within a small
computer window.
5. About openGL
• OpenGL is a device and operating system
independent library for 3D-graphics and
rendering.
• OpenGL is a standard specification defining a
cross-language, cross-platform API.
• The interface consists of many different
function calls which can be used for building
application programs.
• OpenGL is portable to many platforms and
callable from many programming languages.
6. Aim:
To develop a graphics package that utilizes the
features of the computer graphics.
Objectives:
The main objective this project is to
graphically illustrate the simulation of water
ripples on surface.
Introduction
7. Working principle
We need 2 arrays of words (integers). That is ,
words, not bytes.
These arrays will hold the state of the water.
One
holds the current state, the other holds the state
from the previous frame.
It is important that we have 2 arrays, since we
need to know how the water has changed since
the last frame, and the frame before that.
9. Cont Working…
• Data from the previous frame (Buffer2) and the
frame before that (Buffer1) are used together,
and the results written into Buffer1.Buffer1
contains the current state of the water.
• Data from the previous frame (Buffer1) and the
frame before that (Buffer2) are used together,
and the results written into Buffer2. Buffer2
contains the current state of the water.
17. Conclusion & Future scope
The very purpose of developing this project
is to exploit the strength of OpenGL graphics
capabilities and to implement the concepts
of simulations of water ripples on surface of
water.
This package can be made more effectively
for operators used in many computer
languages like C, C++, etc, and can be made
3D.
18. References
Edward Angel –Interactive Computer Graphics- A
Top –Down Approach Using OpenGL, Addision
Wesley Publications 5th
Edition in C-2009
The Official Reference Document for OpenGL
Addison-Wesley Publishing Company