Archive Pages Design$type=blogging

OpenGL Project on water ripple effects

Description: The project is to simulate the water ripple effects. It used the OpenGL buffer...










Description: The project is to simulate the water ripple effects. It used the OpenGL buffer technique.
It used 2 arrays of words. 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 to have 2 arrays, since it need to know how the water has changed since the last frame, and the frame before that.
The height of the wave two frames is proportional to the size of the arrows. So as long as the previous two frames are remembered, it is easy to work out the change in height of every part of the wave.
So, take a look at the code again. When the loop starts, Buffer1 contains the state of the water from the previous frame and Buffer2 has the state before that . Buffer2 therefore has information about the vertical velocity of the wave.

USAGES:  Space-bar : To drops the ripples of water for effect.
                 m: Exit full screen mode
                 f: Full screen mode.
                 x: Exit program.

Project Code: Download

COMMENTS

Name

3D Bi-Cycle 3D Game 3D Laptop 3D Objects 3D Projects 3D Zoo Algorithm Android Aquarium Bellman-Ford Algorithm Block Breaker Blockshooting Bucket Sort C# Chess Clock Code Blocks Colors Complex Project Complex Projects Crab Pong Cross Zero DSAV Escapa First Come First Serve Fluids Font Demo Games Gear Motion GlutDino Glutplane Graphics Editor iOS iPhone Java Java OpenGL Graphics Programming Light Torus Linked List Ludo Board Game Mancala board games Memory blocks game Memory Game Menu Mickey Mouse Minesweeper Miniature Steam Engine moth Motion Blur MoveLight moving car Moving Ship Multiplex Networking Based Project Nuclear Power Plant Olympic opengl c++ examples OpenGL ES OpenGL Tutorial Origami OS Based Projects Paint Paper Folding Particles Drop Path Finding ping pong Pong Game Project Report Projects Report Puzzles qix like Random Flowing lines Rigid Body Rings Robot sample c++ opengl code Screen Saver Screen Saver Ship Shadow Cube Shadowfun Ship Iceberg Simple Drawing Simple Haloed Lined Wireframe Simple Move Light Simple Project Simulation SNAKE XENZIA GAME Solar system Sorting Sphere Spot Light Swing Stars Taj Mahal The Edge Game Tic Tac Toe Tower of Hanoi Traffic Signal Transformation Triangular Animation Tutorial water ripple effects Whirlpool
false
ltr
item
OpenGL Projects: OpenGL Project on water ripple effects
OpenGL Project on water ripple effects
http://3.bp.blogspot.com/-t8mF93rGEUE/Tyw9zRPg-zI/AAAAAAAABB0/D58SCfKY9lk/s400/water+ripples.JPG
http://3.bp.blogspot.com/-t8mF93rGEUE/Tyw9zRPg-zI/AAAAAAAABB0/D58SCfKY9lk/s72-c/water+ripples.JPG
OpenGL Projects
http://www.openglprojects.in/2012/02/opengl-project-on-water-ripple-effects.html
http://www.openglprojects.in/
http://www.openglprojects.in/
http://www.openglprojects.in/2012/02/opengl-project-on-water-ripple-effects.html
true
2020194800836807725
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago