64-bit Voxels?

   1434   3   0
User Avatar
Member
5 posts
Joined: Dec. 2020
Offline
Hi,

I'm trying to cast data stored in voxels into 64-bit doubles for simulation precision purposes. Is this viable? I couldn't seem to find an "attribute cast" sop for volumes. @jlait

Thanks,
Peter
User Avatar
Member
4730 posts
Joined: Feb. 2012
Offline
Hi Peter,

I doubt regular volumes support 64bit precision, but VDB volumes do. So you can use that. But if you are using DOPs, I don't think you can retain 64bit precision without doing a trip back to 32bit volumetric representation.
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 | pragmaticvfx.gumroad.com
User Avatar
Member
5 posts
Joined: Dec. 2020
Offline
Hi Yunus,

Thank you very much for the reply! I'll give that a try. The algorithm I'm trying to implement has a P2G/G2P transfer scheme for each timestep. 32-bit floats are seemingly prone to fp cancellation during this process.

Thanks,
Peter
User Avatar
Member
4730 posts
Joined: Feb. 2012
Offline
Could probably do these calculations on points with a 64bit attribute and then transfer the result back to a regular volume at the end. That's probably what I would do.
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 | pragmaticvfx.gumroad.com
  • Quick Links