Set boundary voxels density

   302   2   1
User Avatar
Member
300 posts
Joined: 7月 2018
Offline
i have a fog volume with some noise and i'd like to set the boundary density to 1.
Like a shell of density=1 around my geo.

Normally i would get the neighbor count of the points and if(neighborcount<6) setattrib....

Attachments:
1.JPG (79.7 KB)
2.JPG (86.7 KB)
fog_border.hiplc (131.8 KB)

User Avatar
Member
29 posts
Joined: 4月 2008
Offline
you can sample distance from the box for each voxel and use the distance value to make border volume
hope it helps

Attachments:
fog_border_v2.hiplc (141.7 KB)

User Avatar
Member
300 posts
Joined: 7月 2018
Offline
Benyee
you can sample distance from the box for each voxel and use the distance value to make border volume
hope it helps
thank you @Benyee!
  • Quick Links