Infection Animation

calendar_today

08.06.2025

label

Texturing

mouse

Houdini 20.5

Description

Consecutively spreading infections from several source points.

1 Code

C
        float speed = chf('speed');
float t = @Time * speed;

int i = floor(t);
float u = frac(t);
int n = npointsgroup(0, 'start');

string att = 'dist_' + itoa(i%n);
float dist = point(0, att, i@ptnum);

float mask = chramp('shape', dist - u + 1.0);
float fade = 1.0 - smooth(0.5, 1.0, u);

f@mask = mask * fade;
setdetailattrib(0, 'active_dist', att, 'set');
    
download

Downloads

link

Related articles

favorite

289

label

Texturing

Accumulating the amount of daylight

favorite

306

label

Texturing

Blending Object Colors into a Texture Map

favorite

363

label

Texturing

Camera Projection to a Curved Screen

favorite

303

label

Texturing

Camera visibility texture

favorite

303

label

Texturing

Mapping caustics from 3D meshes

favorite

283

label

Texturing

Circular Color Gradients in VOPs