magneto
magneto
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Engine
Availability
Not Specified
Recent Forum Posts
How to calculate divergence of a vector in Volume VOP? 2015年3月9日16:40
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)
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? 2015年3月9日3:00
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?
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? 2015年3月6日17:14
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
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