binarize volume

   2224   3   1
User Avatar
Member
383 posts
Joined: June 2010
Offline
I have a volume with density values from an isooffset node.
Inside is 1.0 outside is 0.0 but on the border I have all kind of values ranging from 0 to 1.
How can I discretize / binarize the values with houdini ?
ATM I am using a python node with a numpy.where statement which is really slow ..
Maybe with a volume wrangle node ?
but how could I formulate the condition ?
www.woogieworks.at
User Avatar
Member
606 posts
Joined: May 2007
Offline
Either a Round To Integer VOP node inside a Volume VOP SOP, or a rint() function in a wrangle.
User Avatar
Member
383 posts
Joined: June 2010
Offline
rint() is the way to go, but just out of interest .. is it possible to have conditions in wrangle expressions ?
www.woogieworks.at
User Avatar
Member
4495 posts
Joined: Feb. 2012
Offline
dulo
rint() is the way to go, but just out of interest .. is it possible to have conditions in wrangle expressions ?

Yes.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
  • Quick Links