Hi everyone!
I’m trying to get started with this project, but I don’t know where to start.
I have to make a oscilloscope which can use both sine an cosine waves.
The main objective here is to make a linear signal, which can oscillate in sine or cosine ways, considering the choice of the player. Furthermore, i pretend to control even more the signals, like setting the max amplitude and widht, the frequency and so on…
I hope you guys could help me out!
@KurticObeiN Many ways to do this. One way is to make your sine shape texture in Photoshop ( or similar ), and then use that in your material. You can the use multiply ( for scaling ), UV params for offset and a time node to manage the scrolling…
@KurticObeiN It seems to me that for the ultimate in flexibility you need to be using the equation for a sine wave: Vt = Vp * Sin( 2 * pi * f * t + phi). It looks a bit scary but is simple enough really. Vp is the peak voltage of your wave, pi = 3.142, f is the frequency in cycles per second, t is the instantaneous time and phi is a phase shift in radians. When phi is zero you get a sine wave. phi can vary from 0 to 2*pi and when it is pi/2 you will get a cosine wave.
So, everything is a constant except for t. As you vary t you will change Vt which is your instantaneous output voltage to display.
The beauty of this approach is that you can, with this one equation vary the numbers to give you any amplitude and frequency and any phase shift so sine and cosine is covered. You can then use this to generate as many sine waves as you like and, if you add them together then you can generate any waveform. Look up how a square wave is composed of Sine waves - same goes for triangle waves, anything at all.
The only question then is how you want to display the results of your calculations
As an electronics bod this interests me so do ask if you do not understand my brief explanation.
cheers
Podge.