Updated documentation
Everything not describing the nodes library, and the "Simple" section of the library should be ready now.
BIN
addons/material_maker/doc/images/node_gradient.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
addons/material_maker/doc/images/node_gradient_samples.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
addons/material_maker/doc/images/node_sdannularshape.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
addons/material_maker/doc/images/node_sdannularshape_sample.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
addons/material_maker/doc/images/node_sdboolean.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
addons/material_maker/doc/images/node_sdboolean_sample.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
addons/material_maker/doc/images/node_sdbox.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
addons/material_maker/doc/images/node_sdbox_sample.png
Normal file
After Width: | Height: | Size: 953 B |
BIN
addons/material_maker/doc/images/node_sdcircle.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
addons/material_maker/doc/images/node_sdcircle_sample.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
addons/material_maker/doc/images/node_sdf_samples.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
addons/material_maker/doc/images/node_sdline.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
addons/material_maker/doc/images/node_sdline_sample.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
addons/material_maker/doc/images/node_sdrhombus.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
addons/material_maker/doc/images/node_sdrhombus_sample.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
addons/material_maker/doc/images/node_sdroundedshape.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
addons/material_maker/doc/images/node_sdroundedshape_sample.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
addons/material_maker/doc/images/node_sdshow.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
addons/material_maker/doc/images/node_sdsmoothboolean.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
addons/material_maker/doc/images/node_sdsmoothboolean_sample.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
addons/material_maker/doc/images/node_shape.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
addons/material_maker/doc/images/node_shape_samples.png
Normal file
After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 5.9 KiB |
@ -30,7 +30,7 @@ if errorlevel 9009 (
|
|||||||
goto end
|
goto end
|
||||||
|
|
||||||
:help
|
:help
|
||||||
%SPHINXBUILD% -M html %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
%SPHINXBUILD% -b html -a %SOURCEDIR% %BUILDDIR%/html %SPHINXOPTS%
|
||||||
|
|
||||||
:end
|
:end
|
||||||
popd
|
popd
|
||||||
|
33
addons/material_maker/doc/node_simple_gradient.rst
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
Gradient nodes
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The **Gradient**, **Circular Gradient** and **Radial Gradient** nodes generate
|
||||||
|
a color, user defined gradient.
|
||||||
|
|
||||||
|
.. image:: images/node_gradient.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
++++++
|
||||||
|
|
||||||
|
The gradient nodes do not accept any input.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
+++++++
|
||||||
|
|
||||||
|
The gradient nodes generate a single color gradient image.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
++++++++++
|
||||||
|
|
||||||
|
The **Gradient** nodes accept the following parameters:
|
||||||
|
|
||||||
|
* the *number of repetitions* of the gradient
|
||||||
|
* the *rotation angle* (only for the linear **Gradient** node)
|
||||||
|
* the *gradient*
|
||||||
|
|
||||||
|
Example images
|
||||||
|
++++++++++++++
|
||||||
|
|
||||||
|
.. image:: images/node_gradient_samples.png
|
||||||
|
:align: center
|
46
addons/material_maker/doc/node_simple_sdf.rst
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
Signed distance function geometry nodes
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The signed distance function nodes can be used to define complex geometry using simple
|
||||||
|
shapes.
|
||||||
|
|
||||||
|
They are based on a very small set of basic shapes, that can be combined using operators,
|
||||||
|
and finally output as a greyscale image using the **sdShow** node.
|
||||||
|
|
||||||
|
All output samples shown in this sections are images generated through the **sdView** node.
|
||||||
|
|
||||||
|
All Signed Distance Functions nodes are based on code written by Inigo Quilez that can be found
|
||||||
|
`on this page`__.
|
||||||
|
|
||||||
|
.. _sdf2dpage: https://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm
|
||||||
|
|
||||||
|
__ sdf2dpage_
|
||||||
|
|
||||||
|
Shapes
|
||||||
|
++++++
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
node_simple_sdf_shapes_sdcircle
|
||||||
|
node_simple_sdf_shapes_sdline
|
||||||
|
node_simple_sdf_shapes_sdbox
|
||||||
|
node_simple_sdf_shapes_sdrhombus
|
||||||
|
|
||||||
|
Operators
|
||||||
|
+++++++++
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
node_simple_sdf_operators_sdboolean
|
||||||
|
node_simple_sdf_operators_sdsmoothboolean
|
||||||
|
node_simple_sdf_operators_sdroundedshape
|
||||||
|
node_simple_sdf_operators_sdannularshape
|
||||||
|
node_simple_sdf_operators_sdshow
|
||||||
|
|
||||||
|
Example images
|
||||||
|
++++++++++++++
|
||||||
|
|
||||||
|
.. image:: images/node_sdf_samples.png
|
||||||
|
:align: center
|
@ -0,0 +1,34 @@
|
|||||||
|
sdAnnularShape node
|
||||||
|
...................
|
||||||
|
|
||||||
|
The **sdAnnularShape** node generates a signed distance image of an annular shape
|
||||||
|
based on its input, by substracting a constant from the absolute value of the
|
||||||
|
distance function (i.e. creating a ring around the shape).
|
||||||
|
|
||||||
|
.. image:: images/node_sdannularshape.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdAnnularShape** node accepts an input in signed distance function format.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdAnnularShape** node generates a signed distance function of the
|
||||||
|
annular version of the input shape.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdAnnularShape** node accepts the following parameters:
|
||||||
|
|
||||||
|
* *the distance* to be substracted from the absolute value of the
|
||||||
|
function (i.e. half the width of the ring)
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdannularshape_sample.png
|
||||||
|
:align: center
|
@ -0,0 +1,31 @@
|
|||||||
|
sdBoolean node
|
||||||
|
..............
|
||||||
|
|
||||||
|
The **sdBoolean** node generates a signed distance image for the combination (union,
|
||||||
|
intersection or difference) of its inputs.
|
||||||
|
|
||||||
|
.. image:: images/node_sdboolean.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdBoolean** node accepts 2 inputs in signed distance function format.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdBoolean** node generates a signed distance function of the
|
||||||
|
combination of its inputs.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdBoolean** node accepts *the operator it applies (union, intersection or
|
||||||
|
difference)* as parameter.
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdboolean_sample.png
|
||||||
|
:align: center
|
@ -0,0 +1,33 @@
|
|||||||
|
sdRoundedShape node
|
||||||
|
...................
|
||||||
|
|
||||||
|
The **sdRoundedShape** node generates a signed distance image of a rounded shape
|
||||||
|
based on its input, by substracting a constant from its distance function (i.e.
|
||||||
|
"growing" it towards the outside).
|
||||||
|
|
||||||
|
.. image:: images/node_sdroundedshape.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdRoundedShape** node accepts an input in signed distance function format.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdRoundedShape** node generates a signed distance function of the
|
||||||
|
rounded version of the input shape.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdRoundedShape** node accepts the following parameters:
|
||||||
|
|
||||||
|
* *the distance* to be substracted from the function
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdroundedshape_sample.png
|
||||||
|
:align: center
|
@ -0,0 +1,25 @@
|
|||||||
|
sdShow node
|
||||||
|
...........
|
||||||
|
|
||||||
|
The **sdShow** node converts a signed distance image into a greyscale
|
||||||
|
image whose background is black and the shape described by its input
|
||||||
|
is white.
|
||||||
|
|
||||||
|
.. image:: images/node_sdshow.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdShow** node accepts an input in signed distance function format.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdShow** node generates a greyscale output.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdShow** node accepts the *width of the gradient* (from white to black)
|
||||||
|
around the input shape as parameter.
|
@ -0,0 +1,33 @@
|
|||||||
|
sdSmoothBoolean node
|
||||||
|
....................
|
||||||
|
|
||||||
|
The **sdSmoothBoolean** node generates a signed distance image for the combination (union,
|
||||||
|
intersection or difference) of its inputs.
|
||||||
|
|
||||||
|
.. image:: images/node_sdsmoothboolean.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdSmoothBoolean** node accepts 2 inputs in signed distance function format.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdSmoothBoolean** node generates a signed distance function of the
|
||||||
|
combination of its inputs.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdSmoothBoolean** node accepts the following parameters:
|
||||||
|
|
||||||
|
* *the operator it applies (union, intersection or difference)*
|
||||||
|
* *the smoothness* of the operation
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdsmoothboolean_sample.png
|
||||||
|
:align: center
|
31
addons/material_maker/doc/node_simple_sdf_shapes_sdbox.rst
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
sdBox node
|
||||||
|
..........
|
||||||
|
|
||||||
|
The **sdBox** node generates a signed distance image for a rectangle.
|
||||||
|
|
||||||
|
.. image:: images/node_sdbox.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdBox** node does not accept any input.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdBox** node generates a signed distance function for an axis aligned box.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdBox** node accepts the following parameters:
|
||||||
|
|
||||||
|
* its *width* and *height*
|
||||||
|
* the *X and Y coordinates of opposite of its center*
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdbox_sample.png
|
||||||
|
:align: center
|
@ -0,0 +1,31 @@
|
|||||||
|
sdCircle node
|
||||||
|
.............
|
||||||
|
|
||||||
|
The **sdCircle** node generates a signed distance image for a circle.
|
||||||
|
|
||||||
|
.. image:: images/node_sdcircle.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdCircle** node does not accept any input.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdCircle** node generates a signed distance function for a circle.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdCircle** node accepts the following parameters:
|
||||||
|
|
||||||
|
* the *radius* of the circle
|
||||||
|
* the *X and Y coordinates of the center* of the circle
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdcircle_sample.png
|
||||||
|
:align: center
|
32
addons/material_maker/doc/node_simple_sdf_shapes_sdline.rst
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
sdLine node
|
||||||
|
.............
|
||||||
|
|
||||||
|
The **sdLine** node generates a signed distance image for a line segment. It can
|
||||||
|
easily be turned into a capsule shape using an **sdRoundedShape** node (the result
|
||||||
|
is shown in the example image below).
|
||||||
|
|
||||||
|
.. image:: images/node_sdline.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdLine** node does not accept any input.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdLine** node generates a signed distance function for a line.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdLine** node accepts the *X and Y coordinates of both ends of the
|
||||||
|
segment* as parameters.
|
||||||
|
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdline_sample.png
|
||||||
|
:align: center
|
@ -0,0 +1,31 @@
|
|||||||
|
sdRhombus node
|
||||||
|
..............
|
||||||
|
|
||||||
|
The **sdRhombus** node generates a signed distance image for a rhombus.
|
||||||
|
|
||||||
|
.. image:: images/node_sdrhombus.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
::::::
|
||||||
|
|
||||||
|
The **sdRhombus** node does not accept any input.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
:::::::
|
||||||
|
|
||||||
|
The **sdRhombus** node generates a signed distance function for an axis aligned rhombus.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
::::::::::
|
||||||
|
|
||||||
|
The **sdRhombus** node accepts the following parameters:
|
||||||
|
|
||||||
|
* its *width* and *height*
|
||||||
|
* the *X and Y coordinates of opposite of its center*
|
||||||
|
|
||||||
|
Example images
|
||||||
|
::::::::::::::
|
||||||
|
|
||||||
|
.. image:: images/node_sdrhombus_sample.png
|
||||||
|
:align: center
|
34
addons/material_maker/doc/node_simple_shape.rst
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Shape node
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
The **Shape** node outputs a simple greyscale shape.
|
||||||
|
|
||||||
|
.. image:: images/node_shape.png
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
++++++
|
||||||
|
|
||||||
|
The shape node do not accept any input.
|
||||||
|
|
||||||
|
Outputs
|
||||||
|
+++++++
|
||||||
|
|
||||||
|
The shape node provides an output that generates greyscale image showing the
|
||||||
|
selected white shape on a black background.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
++++++++++
|
||||||
|
|
||||||
|
The **Shape** node has the following parameters:
|
||||||
|
|
||||||
|
* the shape type: Circle, Polygon, Star, Curved star or Rays
|
||||||
|
* the edge, corners or rays count
|
||||||
|
* the shape size
|
||||||
|
* the size of the gradient at the edge of the shape
|
||||||
|
|
||||||
|
Example images
|
||||||
|
++++++++++++++
|
||||||
|
|
||||||
|
.. image:: images/node_shape_samples.png
|
||||||
|
:align: center
|
@ -1,21 +1,23 @@
|
|||||||
Uniform node
|
Uniform nodes
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
The uniform node outputs a single uniform image whose color is configurable.
|
The **Uniform** and **Uniform/Greyscale** node output a single uniform image
|
||||||
|
whose color is configurable.
|
||||||
|
|
||||||
.. image:: images/node_uniform.png
|
.. image:: images/node_uniform.png
|
||||||
|
|
||||||
Inputs
|
Inputs
|
||||||
++++++
|
++++++
|
||||||
|
|
||||||
The uniform node does not accept any input.
|
The uniform nodes do not accept any input.
|
||||||
|
|
||||||
Outputs
|
Outputs
|
||||||
+++++++
|
+++++++
|
||||||
|
|
||||||
The uniform node provides an output that generates a uniform color image.
|
The uniform nodes provide an output that generates a uniform color image.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
++++++++++
|
++++++++++
|
||||||
|
|
||||||
The uniform node has a single *color* parameter that defines the color of the output image.
|
The **Uniform** node has a single *color* parameter that defines the color of
|
||||||
|
the output image. The **Uniform/Greyscale** node has a single *float* parameter.
|
||||||
|
@ -4,24 +4,11 @@ Simple nodes
|
|||||||
The simple nodes are nodes that do not accept any input and generate one or several simple shapes.
|
The simple nodes are nodes that do not accept any input and generate one or several simple shapes.
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 0
|
||||||
|
|
||||||
node_simple_gradient
|
|
||||||
node_simple_gradient_circular
|
|
||||||
node_simple_gradient_radial
|
|
||||||
node_simple_image
|
|
||||||
node_simple_sdf_operators_sdannularshape
|
|
||||||
node_simple_sdf_operators_sdboolean
|
|
||||||
node_simple_sdf_operators_sdroundedshape
|
|
||||||
node_simple_sdf_operators_sdshow
|
|
||||||
node_simple_sdf_operators_sdsmoothboolean
|
|
||||||
node_simple_sdf_shapes_sdbox
|
|
||||||
node_simple_sdf_shapes_sdcircle
|
|
||||||
node_simple_sdf_shapes_sdline
|
|
||||||
node_simple_sdf_shapes_sdrhombus
|
|
||||||
node_simple_shape
|
|
||||||
node_simple_shape_circle
|
|
||||||
node_simple_shape_curved_star
|
|
||||||
node_simple_shape_rays
|
|
||||||
node_simple_shape_star
|
|
||||||
node_simple_uniform
|
node_simple_uniform
|
||||||
|
node_simple_shape
|
||||||
|
node_simple_image
|
||||||
|
node_simple_gradient
|
||||||
|
node_simple_sdf
|
||||||
|
|
@ -221,14 +221,25 @@ View menu
|
|||||||
Tools menu
|
Tools menu
|
||||||
^^^^^^^^^^
|
^^^^^^^^^^
|
||||||
|
|
||||||
* The *Create* submenu can be used to create any of the node templates
|
* The *Create* submenu can be used to create any of the node templates.
|
||||||
|
|
||||||
* *Create group* Creates a subgraph node with the currently selected nodes
|
* *Create group* creates a subgraph node with the currently selected nodes,
|
||||||
|
and shows the contents of the newly created group in the current graph
|
||||||
|
view.
|
||||||
|
|
||||||
|
* the *Make selected nodes editable* menu item will toggle edit mode for
|
||||||
|
all selected nodes that support it. Shader and graph nodes will show
|
||||||
|
3 buttons to edit, load and save the node, switches will show controls to
|
||||||
|
modify the number of choices and outputs, and input/output modes will
|
||||||
|
become editable.
|
||||||
|
|
||||||
* *Add selected node to user library* first prompts for an item name. If a name is entered and
|
* *Add selected node to user library* first prompts for an item name. If a name is entered and
|
||||||
confirmed, the selected nodes in the current material will be added to the user library under
|
confirmed, the selected nodes in the current material will be added to the user library under
|
||||||
that name. The user library is saved automatically.
|
that name. The user library is saved automatically.
|
||||||
|
|
||||||
|
* *Export the nodes library* will prompt for a location on the disk and
|
||||||
|
save the whole node library.
|
||||||
|
|
||||||
Help menu
|
Help menu
|
||||||
^^^^^^^^^
|
^^^^^^^^^
|
||||||
|
|
||||||
|