Normalize scalar field

   4645   4   1
User Avatar
Member
383 posts
Joined: June 2010
Offline
I have a volume and want to normalize the values min-max to 0-1
I did it with a python sop and numpy, but I thought I will better ask if there is a native houdini way to do that ?
www.woogieworks.at
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
hello my friend.
you can use VOP SOP node.
see this image:

Attachments:
Normalize.jpg (49.1 KB)

User Avatar
Member
383 posts
Joined: June 2010
Offline
Thanks for the Tip, but I have a 3D scalar field and want to find the minimum and the maximum Values of this scalar field and normalize the field that minimum becomes 0 and maximum becomes 1
www.woogieworks.at
User Avatar
Member
606 posts
Joined: May 2007
Offline
Here's an example, the key is Volume Reduce SOP. There are a couple of extra nodes to get a scalar speed from vector velocity.

Attachments:
ee_field_normalize.hip (2.6 MB)

User Avatar
Member
383 posts
Joined: June 2010
Offline
OK .. the volume reduce does the trick for min and max ..
but question :
whats the purpose of the
@name=speed
notation in the source group field
is it some kind of dynamic generated group ?
www.woogieworks.at
  • Quick Links