Science with OpenGL | #1 | Superposition of two waves
If you have a good background in physics, you will be familiar with the Principle of Superposition of Waves. The Principle of Superposition of Waves states that, when two or more waves meet at a point, the resultant wave has a displacement which is the algebraic sum of the displacements of each wave. Here is a demonstration of the program we are going to create in this lesson. Prerequisites You need to be familiar with the following concepts before you begin this tutorial. Sine waves ( expressed as a function of time and position ). Various parameters that define a wave ( Amplitude, angular frequency, angular wave number and phase). The superposition principle. Now, we will be working with only very basic features of OpenGL and GLUT (I always use GLUT in my tutorials so if you don't have it yet, its highly recommended that you get it) so even if you are just a beginner, you will be able to follow this tutorial without any problem. Still, I'd like to...