1
   

Req: Maths of ripples in water !

 
 
Reply Wed 14 Jul, 2004 11:03 am
Hi

I'm trying to make a CAD model of the effect of dropping a pebble into a still pool of water - you know the thing, where you get spreading concentric rings of ripples.

If you look at the ripples in cross section, they are sine waves which decrease in amplitude (?exponentially) and decrease in wavelength (?exponentially) as you get further out from the centre.

I was wondering what mathematical formula would describe the outline of the decaying ripples when viewed in cross section.

Any links/suggestions greatly appreciated!

Many thanks in anticipation

Dave
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 820 • Replies: 2
No top replies

 
fresco
 
  1  
Reply Thu 15 Jul, 2004 12:56 pm
Try equation's for damped oscillation (via Google).
0 Replies
 
g day
 
  1  
Reply Fri 16 Jul, 2004 06:57 pm
Humus from beyond3d has done this - complete with source code:

http://esprit.campus.luth.se/~humus/

Specifically:

http://esprit.campus.luth.se/~humus/3D/Refraction2.zip

Refractions and reflections Thursday, April 11, 2002
Executable
Source code
This is a demo of a pretty realistic water surface. The waves are created dynamically by generating a texture with some perlin noise. The refraction is done by rendering the scene to a texture and then the wave texture is used to perturb the texture coordinates on a per pixel level in a fragment shader. Similarily for the reflections, except that they are rendered to the texture with y inverted. Finally, it's combining the refraction and reflection by interpolating between them depending on the view angle.

It'll only run on Radeon 8500 card right now.

2002-05-31:
Updated to run on drivers later than 6071. A driver bug was fixed that exposed a bug in this application, which I have now fixed. It won't run on older drivers anymore though.

--------------------------------------------------------------------------------
Required OpenGL extensions:

GL_ATI_fragment_shader
GL_ARB_texture_env_dot3
GL_ARB_texture_env_crossbar or GL_NV_texture_env_combine4
GL_EXT_texture3D
GL_EXT_texture_edge_clamp
GL_SGIS_generate_mipmap
WGL_ARB_render_texture
--------------------------------------------------------------------------------
Recommended OpenGL extensions:

GL_ARB_texture_compression
GL_EXT_texture_compression_s3tc

or try

sea http://esprit.campus.luth.se/~humus/3D/Sea.zip
0 Replies
 
 

Related Topics

Evolution 101 - Discussion by gungasnake
Typing Equations on a PC - Discussion by Brandon9000
The Future of Artificial Intelligence - Discussion by Brandon9000
The well known Mind vs Brain. - Discussion by crayon851
Scientists Offer Proof of 'Dark Matter' - Discussion by oralloy
Blue Saturn - Discussion by oralloy
Bald Eagle-DDT Myth Still Flying High - Discussion by gungasnake
DDT: A Weapon of Mass Survival - Discussion by gungasnake
 
  1. Forums
  2. » Req: Maths of ripples in water !
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 09/28/2024 at 08:26:43