Latest Updates
Assets
Pipeline Loader
Pipeline tool for managing projects/files/caches on disk. I…
Camera Cull
Culls geometry outside the camera view using UVs projected …
TransferAnimTransform
Compute and transfer xform from animated to static geometry…
Codes
AgentLayer - Crowds
Vector Expressions
int boneId=agentrigfind(1,0,"bone_name");
matrix bone_xform=agentworldtransform(1,0,boneId);
matrix xform=getpackedtransform(0,@ptnum);
xform*=invert(bone_xform);
setpackedtransform(0,@ptnum,xform);
Convert coordinate space from bone to layer geometry prop.
- First input geometry prop
- Second input agent sop
- Timeshift 2nd input to prevent time dependency
https://www.youtube.com/watch?v=R7_zI00cAmg
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