voronoi and poincloud in shading context

   2456   2   0
User Avatar
Member
47 posts
Joined: May 2009
Offline
hi,

id like to control the input points for a vornoi noise in shader with a pointcloud from SOP. i guess i need to use the pcopen to get to the pointcloud.
but what data to fetch and how to feed it in for the voronoi. is it even possible with the existing node or should it be done manually in vex?

cheers!
Kustaa
User Avatar
Member
192 posts
Joined: Nov. 2008
Offline
i don't believe its possible to feed points into the vornoi noise function, but you can create the functionality of vornoi noise just with the point cloud lookups

here's an example of doing some vornoi type stuff with point clouds


edit: this shader produces an infinite discontinuity at the voronoi borders. i don't think this would cause problems for the nearst 1 dist and the nearest 2 dist, but antialising the random color one (particularly for micropoly rendering) might take some doing

Attachments:
ptcloudvoronoi.jpg (66.9 KB)
ptcloudvoronoi.hip (387.8 KB)

User Avatar
Member
47 posts
Joined: May 2009
Offline
hi Brian,
and thanks a ton for the scenes and making the problem so simple!

works really nicely.

and since i only need the first distance the borders wont be a problem in my case.

cheers!
Kustaa
  • Quick Links