Painting Textures with Curves

calendar_today

14.05.2022

label

Texturing

mouse

Houdini 18.5

Description

Trailing curves along surfaces and transfer them to textures.

1 Code

Remapping the distance from the mesh surface position to the streaking curves.

C
        vector clr_bg = chv('background_color'); 

vector bb = relbbox(0, v@P);
vector uvw = set(bb.x, bb.y, 0.0);
vector pos = uvsample(1, 'P', 'uv', uvw);

int pr;
vector uv;
float dist = xyzdist(2, pos, pr, uv);
float stroke = chramp('stroke', uv[0]);
float mask = smooth(0.003 * stroke, 0.005 * stroke, dist);

vector clr = prim(2, 'Cd', pr);

v@C = lerp(clr, clr_bg, mask);
    
download

Downloads

smart_display

Videos

Painting textures with streaking curves – Houdini Tutorial

link

Related articles

favorite

403

label

Texturing

Accumulating the amount of daylight

favorite

356

label

Texturing

Blending Object Colors into a Texture Map

favorite

538

label

Texturing

Camera Projection to a Curved Screen

favorite

415

label

Texturing

Camera visibility texture

favorite

356

label

Texturing

Mapping caustics from 3D meshes

favorite

386

label

Texturing

Circular Color Gradients in VOPs