Website powered by

2D SDF - Combine Shapes - Material Function Library UE5

2D SDF, Second Part.
Learn more about them in the blog posts I wrote, links in the description of the project!

___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___

Morphing from one shape to another

2D SDF, Second Part.
Learn more about them in the blog posts I wrote, links in the description of the project!

___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___

Morphing from one shape to another

___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___

SDF of the shapes used in the examples below

___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___

Merge, Intersect and Subtract

___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___

Merge, Intersect and Subtract

___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___   ___

Rounded versions:
Merge Rounded

___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___

Rounded versions:
Merge Rounded

___ ___ ___

Intersect Rounded

___ ___ ___

Subtract Rounded

___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___

Champfer versions:
Merge Champfer

___ ___ ___

Intersect Champfer

___ ___ ___ ___ ___

Subtract Champfer

___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___

Groove Border

___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___

New coordinates using the SDF of the two shapes

___   ___   ___

Circular Shapes generated using the new coordinates shown above (their location is at 0;0, so where the two example shapes intersect)

___ ___ ___

Circular Shapes generated using the new coordinates shown above (their location is at 0;0, so where the two example shapes intersect)

This is the Second Part of a 2D Sign Distance Field Material Function Library I created for Unreal Engine.
SDFs can be used in various different ways, in this case, they are very powerful and useful when creating materials. Here you can see different ways shapes can be combined.
Check out the blog post guide about this topic, where I explain everything you can see here as well as some tips for making your own Material Function Library.
https://www.artstation.com/blogs/briz/28br/2d-sdf-combine-shapes-material-function-library-ue5
___ ___ ___ ___ ___
Link to the first part if you need an introduction:
https://www.artstation.com/blogs/briz/mnRN/2d-sdf-basic-shapes-and-visualization-material-function-library-ue5

Date
May 28, 2022