PDA

View Full Version : Water



nergal
11-04-2002, 05:25 AM
How to make a very simple water in opengl with small waves (like a sinus function)?

jebus
11-04-2002, 06:29 AM
opengl doesn't have functionality to simulate such things. you have to create the water yourself. look on google for a water tutorial. but a simple case would prolly use a transparent blu-ish mesh. something like a heightfield, where you can adjust the y values of the coords in the mesh dynamically to simulate waviness.

jebus

[This message has been edited by jebus (edited 11-04-2002).]

John Jenkins
11-04-2002, 10:18 AM
What is a sinus function is that the one that draws your nose?

jebus
11-04-2002, 11:15 AM
the sinus functions are part of the realm of mathematics known as boogernometry

jebus

nexusone
11-04-2002, 11:25 AM
That is a good one....

http://www.opengl.org/discussion_boards/ubb/smile.gif



Originally posted by jebus:
the sinus functions are part of the realm of mathematics known as boogernometry

jebus