Konstantin Magnus

Konstantin Magnus

About Me

Expertise
Generalist
Location
Germany

Connect

Recent Forum Posts

Houdini for game Sept. 20, 2017, 3:50 a.m.

UVTexture - Cylindrical perfect mapping Sept. 18, 2017, 8:32 a.m.

vector bbox = relbbox(0, @P);
vector side = sign(@N);
vector nml = abs(@N);

vector size = getbbox_size(0);
vector ratio = size / max(size);
vector scale = bbox * ratio;

if (nml.x == max(nml)) { @uv = set(-scale.z, scale.y * side.x, 0); }
else if (nml.y == max(nml)) { @uv = set(scale.x * side.y, -scale.z, 0); @uv.y += 1; }
else { @uv = set(scale.x * side.z, scale.y, 0); @uv.y += 2; }

@uv *= 0.3333;
@uv.x += 0.5;

Scale COP broken? Sept. 17, 2017, 11:55 a.m.

Yes, works with file sop on mac and linux (16.0.633).