Blending COPs SDFs into 3D Volume

calendar_today

14.09.2024

label

Modeling

mouse

Houdini 20.5

Description

Blending COPernicus 2D SDFs into a three-dimensional volume using a Boolean Intersections function.

1 Code

C
        float blend = chf('blend');

function float sintersect(float d1,  d2, k){
    float h = clamp(0.5 - 0.5 * (d2 - d1) / k, 0.0, 1.0);
    return lerp(d2, d1, h) + k * h * (1.0 - h);
}

float d_0 = volumesample(1, 0, v@P);
float d_1 = volumesample(1, 1, v@P);

f@d = sintersect(d_0, d_1, blend);
    

2 Source

download

Downloads

smart_display

Videos

Create 3D Shapes from COPernicus SDFs – Houdini Tutorial

Fancy SDF Operations | Houdini Tutorial (Smooth Min, Coding SDFs, 4D SDFs)

link

Related articles

favorite

179

label

Modeling

Adaptive Resampling of Curves

favorite

324

label

Modeling

Applying Scales to Mesh Surfaces

favorite

283

label

Modeling

Approximating subdivision surfaces

favorite

318

label

Modeling

Branching Subdivision Curves

favorite

170

label

Modeling

Circuit Networks

favorite

367

label

Modeling

Constructive Solid Geometry Tool