material-maker/material_maker/doc/node_transform_warp.rst

42 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2018-08-23 17:00:28 +02:00
Warp node
~~~~~~~~~
2019-11-19 07:08:36 +01:00
The **Warp** node deforms an input image according to the derivative of the second input image.
2018-08-23 17:00:28 +02:00
.. image:: images/node_transform_warp.png
:align: center
2018-08-23 17:00:28 +02:00
Inputs
++++++
2019-11-19 07:08:36 +01:00
The **Warp** node accepts two inputs:
2018-08-23 17:00:28 +02:00
* The *Source* inputs is the image to be deformed.
* The *Displace* input is a greyscale image whose derivative will be used to deform the source.
Outputs
+++++++
2019-11-19 07:08:36 +01:00
The **Warp** node outputs the deformed image.
2018-08-23 17:00:28 +02:00
Parameters
++++++++++
2020-06-21 14:43:12 +02:00
The **Warp** node has three parameters:
* *mode*, that defines how the warp node calculates the offset it applies. *Slope* offsets by
a distance calculated from the slope, and *Distance to top* offsets dy a distance calculated
from the slope and the distance to the top (this mode makes it posible to make all points
of a slope get their value from the top, hence generating mosaic-like patterns).
2019-11-19 07:08:36 +01:00
* *strength* to scale the warp effect.
* *epsilon* is used to evaluate the second input's derivative
Example images
++++++++++++++
.. image:: images/node_warp_samples.png
:align: center