Skip to content

AlexeySmolenchuk/closest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ClosestPointOnMesh Arnold Shader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published