Peter Wu

bwu

About Me

EXPERTISE
Student

Connect

LOCATION
United States
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Manipulating VDBs in OpenCL SOP Node? April 13, 2022, 2:14 p.m.

Just found two headers in the ocl/include path:

#include "CNanoVDB.h"
#include "CVDBUtil.h"

Then a recast to cnanovdb grid:
const global cnanovdb_griddata *grid = (const global cnanovdb_griddata *) vdb;

Voila! Now I can use cnanovdb family of functions to read VDBs.

Hope this helps!

Manipulating VDBs in OpenCL SOP Node? April 10, 2022, 12:56 a.m.

Hi,

Following the same setup for OpenCL kernels in the OpenCL node, the generated kernel snippet gives a void * type pointer to the bound VDB. Also, there are no readable/writeable checkboxes in the bindings for VDB type parameters. After searching on this forum and googling for a while, I still couldn't find a feasible way to interact with VDBs in the OpenCL node. Any help is appreciated!

Thanks,
Peter

64-bit Voxels? April 5, 2022, 12:34 a.m.

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