Parallel Lines using a Sine Node

Started by cyphyr, September 08, 2019, 12:50:00 PM

Previous topic - Next topic

cyphyr

I would suggest that an add scalar after the last internal node with a value that matches the amplitude should do the trick :)
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Hetzen

It's a bit of a hack on two displaced red planes, one to show the top and the other the underside. With a 10 meter grey plane at 0,0,0.

You can add what ever you like inside the node called 'Cosine Generator'. As Richard says by adding two at the end of the cosine calculation, that will indeed raise the red line above the X axis. You could just plug a PF in to the Main Input at the bottom to see how its colour displaces the red plane too.

WAS

Quote from: N-drju on December 09, 2019, 04:29:46 AM
Quote from: Hetzen on December 08, 2019, 02:33:02 PMYou can also use the scene I used to generate a cosine curve in the explained series. Attached below.

Cosine_Test_Bed.JPG

Right click on the internal network of the Cosine Generator node and you can use that as a test bed to try out some translations.

Now, the thing is that the waves cut through the "x" axis. Is it possible to elevate the entire equation so that it never takes on a negative "y" value?

For example, what would you say (and how would you build) the following function (or any simmilar) that essentially does exactly what is mentioned above?

nonegative.png

Wouldn't that just be an equation that doesn't enter the negative realm?