mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
70 lines
1.6 KiB
ReStructuredText
70 lines
1.6 KiB
ReStructuredText
3D signed distance function geometry nodes
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
The signed distance function nodes can be used to define complex 3D 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 heightmap and a color normal map using the **render** node.
|
|
|
|
Describing 3D objects using SDF primitives is more difficult than using existing meshes, but this
|
|
method integrates smoothly with shader generation, and (as many nodes in Material Maker) is
|
|
resolution independant.
|
|
|
|
All output samples shown in this section are preview images.
|
|
|
|
All Signed Distance Functions nodes are based on code written by Inigo Quilez that can be found
|
|
`on this page`__.
|
|
|
|
.. _sdf3dpage: https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
|
|
|
|
__ sdf3dpage_
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
node_3d_sdf_render
|
|
|
|
Shapes
|
|
++++++
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
node_3d_sdf_shapes_sphere
|
|
node_3d_sdf_shapes_box
|
|
node_3d_sdf_shapes_cylinder
|
|
node_3d_sdf_shapes_capsule
|
|
node_3d_sdf_shapes_cone
|
|
node_3d_sdf_shapes_torus
|
|
|
|
Operators
|
|
+++++++++
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
node_3d_sdf_operators_boolean
|
|
node_3d_sdf_operators_smoothboolean
|
|
node_3d_sdf_operators_rounded
|
|
node_3d_sdf_operators_repeat
|
|
node_3d_sdf_operators_circlerepeat
|
|
node_3d_sdf_operators_extrusion
|
|
node_3d_sdf_operators_revolution
|
|
|
|
Transforms
|
|
++++++++++
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
node_3d_sdf_transforms_translate
|
|
node_3d_sdf_transforms_scale
|
|
node_3d_sdf_transforms_rotate
|
|
|
|
Example images
|
|
++++++++++++++
|
|
|
|
.. image:: images/node_sdf3d_samples.png
|
|
:align: center
|