magneto

magneto

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

How to calculate divergence of a vector in Volume VOP? March 9, 2015, 4:40 p.m.

Thanks Jeff, everything fit into place now.

Lastly can I just use primitive intrinsic “measuredvolume” for the volume? Does it calculate the volume of a primitive using the 8 points or just a simple bbox?

I did some experiments other than tapering, it updated this volume as I transformed the volume, except shear though because it keeps the volume I guess?

Something like this:

divsize = cbrt((voxelcountx * voxelcounty * voxelcountz) / measuredvolume)

How to calculate divergence of a vector in Volume VOP? March 9, 2015, 3 a.m.

Thanks Jeff, I did what you said but I am getting volume division size cubed. So I just take the distance between voxel(0,0,0) and voxel(1,0,0), which gives me the division size i.e. 0.1.

It seems like volume of a volume primitive is already available but I can't access it in VEX builder VOP using volume name.

Also how do you taper a volume? Shear works but for taper you need to scale a single face which is not possible for a volume primitive, right?

How to calculate divergence of a vector in Volume VOP? March 6, 2015, 5:14 p.m.

Thanks Jeff it works as expected now

Btw if I want to calculate the voxel size, can I just get an dimension of the volume and divide it by volumeres(that_dimension)? I assume not directly because the volume might have a transform.

In that case I will multiply bbox.min and bbox.max by the inverse of this transform and then calculate the distance between these points in one 1 axis, then use that as the volume size.

If I am being an idiot and there is a simple way, please let me know