Parallel Lines using a Sine Node

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

Previous topic - Next topic

cyphyr

This is a simple node graph to create Parallel Lines.

It can be sued to create any kind of repeating parallel feature such as waves along a shore, ripples in the sand or parallel cloud banks.
The raw output is very small, the distance between the peaks is approximately 6.35m (I have no idea why).
The output can be scaled, rotated and moved with a transform node.
You can replace the X to Scalar with a Y to scalar or Z to scalar to produce Parallel Lines in those axis.

If you disable the X to scalar you get concentric circles


I hesitated to post this because although it works I don't feel I have the maths knowledge to properly explain "why" it works.
Maybe someone with better knowledge in that department can jump in
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

Hetzen

Thanks for posting this Richard.

I'll eventually get to the trig functions, but for now, if you want more control over the wave length, you can insert a multiply scalar after the X to Scalar to adjust the peaks.

Trig functions work in radians, so 2 x Pi x your X to Scalar will produce a full wave length across 1 meter.