Gas OpenCL, sampling a scalar field with Geometry points

   207   0   0
User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
OpenCL in DOPs question.
I have Geometry data with points and a scalar field with some values. I'm running Gas OpenCL over First Writeable Attribute to sample my field at point positions. Running some simple code like setting an attribute to a value works, but as soon as I bind the scalar field as data and update the kernel arguments with the output of the Generate Kernel parameter, the kernel breaks with the clSetKernelArg (-51) exception. Tried with the @bindings and had the same issue. Does Gas OpenCL not support Geometry data and fields in the same kernel?

I ran the logic I'm trying to implement on SOP VDBs and Houdini Volumes and was able to sample the values just fine. Had a hope to find some references inside the MPM Solver, but it runs on two pieces of Geometry data, one for points and one for all VDB grids, so no DOP Fields are used.
  • Quick Links