Miroslav Uzunovic

Effects TD Artist

Showreel

Latest Updates


Assets

Icon

SOP Camera Retime

Control your camera timing with two methods: By Frame for p…

Icon

LOP Camera Retime

Control your camera timing with two methods: By Frame for p…

Icon

Camera Frustrum

Very lightweight geometry from camera frustrum. Can generat…

Codes

Point density pcfind

Vector Expressions

int max = chi("maxpts");
float rad = chf("rad");
int handle[] = pcfind(0,"P",@P,rad,max);
float density = fit(len(handle),0,max,0,1);
@Cd=(chi("viz"))?chramp("density",density,0):v@Cd;
@density=density;
Create basic point density mask with pcfind lookup

Vex Custom Functions

Vector Expressions

//random example function
float someVexFunction(vector pos; vector pos2; float distance)
{
    vector dist=distance(pos,pos2);
    if(distance<dist) return 0;
    else 
        return dist*dist;
}

float value = someVexFunction(v@P,point(1,"P",0),0.5);
You can make custom functions inside vex and if saved to file on disk, can be referenced in multiple wranglers with #include "$HIP/vex/custom_function.h"