Is there a way to show or calculate a histogram of a volume ?
I found a histogram function in the openvdb header files, but it doesnt seem to be accessible through houdini nodes …
histogram of scalar volume
3015 4 1- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
- edward
- Member
- 7740 posts
- Joined: July 2005
- Offline
- jlait
- Staff
- 6245 posts
- Joined: July 2005
- Offline
This is much faster than it has a right to be.
I merge a 256 point line with my volume. Then in a volume vop, run setpointattrib() to accumulate each point of the line according to the density*256.
int pt = @density * 255;
pt = clamp(pt, 0, 255);
vector displace = {0, 1, 0};
displace /= 1000*1000;
setpointattrib(0, ‘P’, pt, displace, “add”);
I merge a 256 point line with my volume. Then in a volume vop, run setpointattrib() to accumulate each point of the line according to the density*256.
int pt = @density * 255;
pt = clamp(pt, 0, 255);
vector displace = {0, 1, 0};
displace /= 1000*1000;
setpointattrib(0, ‘P’, pt, displace, “add”);
- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
-
- Quick Links