Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.48 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.48 KB

closest

Description

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

Usage

You can sample minimum distance to mesh, position or attribute. Simple example. Displace by sin of distance.

Displacement Example

Network Example

Features

Feature distance P PrimAttrib PointAttrib VertexAttrib
Polymesh External File ✔️ ✔️ ✔️ ✔️ ✔️
Polyline External File ✔️ ✔️ ✔️ ✔️ ✔️
Packed External File ✔️ ✔️
Alembic External File ✔️ ✔️
Polymesh Object ✔️ ✔️ ✔️ ✔️
Polyline Object

Build

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

Special thanks to:

Vladimir Tsypliashchuk

Dmitry Shurov