Blending Object Colors into a Texture Map

calendar_today

24.12.2022

label

Texturing

mouse

Houdini 18.0

Description

Transfering object colors onto a nearby mesh surface by filtering a point cloud.

1 Code discussion

A volumewrangle finds nearby points with pcopen(), blends their colors using pcfilter() and assigns them to a UV map.

CPP
        int samples = chi('samples');
float radius = chf('radius');

vector tex = relbbox(0, v@P);
vector pos = uvsample(1, 'P', 'uv', tex);

int handle = pcopen(2, 'P', pos, radius, samples);
vector color = pcfilter(handle, 'Cd');
v@Cd = color;
    
download

Downloads

link

Related articles

favorite

420

label

Texturing

Accumulating the Amount of Daylight

favorite

561

label

Texturing

Camera Projection to a Curved Screen

favorite

442

label

Texturing

Camera Visibility Texture

favorite

378

label

Texturing

Mapping Caustics from 3D Meshes

favorite

409

label

Texturing

Circular Color Gradients in VOPs

favorite

505

label

Texturing

Cylindrical UV Projections with VEX