Felipe Ruiz
05-01-2010, 10:32 PM
Hi there all!
One of my teachers asked my class to do some standing waves thing using openGL, GLUT and GLUI. Well, I managed to do the waves just fine but they're not how the teacher wants them. He said he wants something like this: Harmonics (http://id.mind.net/~zona/mstm/physics/waves/standingWaves/standingWaves2/StandingWaves2.html)
Which means the waves are open at both ends.
Sadly, all I get is this:
http://img36.imageshack.us/img36/8708/harmonics.jpg
I've done some math and found out that the only way to make the waves open is if I move the even harmonics a bit to the side. The only issue with that is they don't get aligned. Any ideas on how to make them aligned, whitout making the even harmonics being closed?
One of my teachers asked my class to do some standing waves thing using openGL, GLUT and GLUI. Well, I managed to do the waves just fine but they're not how the teacher wants them. He said he wants something like this: Harmonics (http://id.mind.net/~zona/mstm/physics/waves/standingWaves/standingWaves2/StandingWaves2.html)
Which means the waves are open at both ends.
Sadly, all I get is this:
http://img36.imageshack.us/img36/8708/harmonics.jpg
I've done some math and found out that the only way to make the waves open is if I move the even harmonics a bit to the side. The only issue with that is they don't get aligned. Any ideas on how to make them aligned, whitout making the even harmonics being closed?