Use the result on a mix shader node to output red or white, and so draw the curve.Use it in the node editor to calculate where the sinus is depending on this value.Add a keyframe to an input value (to define the speed of the curve).The principle is the following (quickly described) : Here is an example, made rapidly and so to enhance (using more calculation via drivers, instead of doing it with nodes, surely). The main interest here, there is no need of a "static" texture. You can also set up Cycles nodes to draw the curve directly. The setup is the following (can be seen in the graph editor, in drivers editing context) : So we need to multiply the X value by 2 PI. The driver need to be dependent on the X position of the empty, and to follow a sinus functionĪs the UV map is 0 to 1, the UV map shifts of 1 when the empty moves of 1 unit.Create the dot (a plain circle for instance).The transparency is need to show some grid behind the curve when rendered :Īt this step, you can move one of the empty and see that the curve seems to move on the plane. Use this texture to mix two shaders : one for the red line and the other one for transparency.UV unwrap the plane and adjust the UV map to the sinusoid shape on the texture.Add the UV Warp modifier to you plane, like this :Īnd here is the setup of the plane material :.Create two empties : place one of them on X=0 (that will be easier later) and the second one elsewhere. So here, if we move one empty, the UV map shifts and so the texture of the plane looks like it was moving. UV Warp modifier (first approach) shifts, scales or rotates the UV map of an object depending of the relative positions, scales or rotations of 2 other objects (generally, you can use empties for these two objects). I just want to make sure I use the best or most effective technique to skin the proverbial cat. and mask the portions of the single moving strip that lie outside the graph frameĭoes anyone have any better suggestions for me ?Īs usual, I'm happy to read up if I am given some pointers.I could combine the two elements above into a single moving strip mask the portions of the background axis that lie outside the graph frame.generate a long background axis "strip".mask the portions of the sine wave that lie outside the graph frame.(length as long as the number of cycles as I need for the animation time).
0 Comments
Leave a Reply. |