Jump to content

Accessing the nearest voxel from a point in OpenCL node


Hojun Yoon

Recommended Posts

Hello, I'm trying to implement an OpenCL node that loops over "scatter1" node's points and changes density at the volume A's nearest voxel of every point.

However, I can't figure out how to calculate the nearest voxel's index value.

So I'd like to know how to calculate the voxel's index value.

Also, in the "merge1" node, there is one point added by the volume A(Points count is increased by one after merging).

Is there a way to exclude that point when looping over points?

I attached my node setup and "opencl1" node's bindings setup below.

 

Thank you.

My node setup   opencl.png.51edf00b84d23c881e521d90ec58b681.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...