Arnold Shader similar to xyzdist VEX function and ClosestPointOnMesh Maya command.
Shader uses Houdini functionality via HDK calls.
op: syntax can be used to sample mesh directly from rendered ass ( for example: op:/obj/geo ). This option works fine in interactive session. For batch render you need to specify -ipr flag
kick example.ass -ipr -dp -dw
You can sample minimum distance to mesh, position or attribute. Simple example. Displace by sin of distance.
Feature | distance | P | PrimAttrib | PointAttrib | VertexAttrib |
---|---|---|---|---|---|
Polymesh External File | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
Polyline External File | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
Packed External File | ✔️ | ✔️ | |||
Alembic External File | ✔️ | ✔️ | |||
Polymesh Object | ✔️ | ✔️ | ✔️ | ✔️ | |
Polyline Object |
Lniux and Windows scripts provided. You need:
- Download and specify ARNOLD_ROOT path to Arnold SDK
- Specify HFS path to Houdini instalation
- On Windows: specify MSVCDir path
Vladimir Tsypliashchuk
Dmitry Shurov