Jump to content

OpenCL and VDB examples?


Recommended Posts

Volume Wrangle seems to be slow at times, so I've been wondering if getting into OpenCL SOP is worth it.

What are the best applications of OpenCL in Houdini and are there any examples of its SOP being used with Volumes/VDB?

Thanks!

Link to comment
Share on other sites

Hi,

Yes it's well worth it. For volume convolution, the performance is on the orders of magnitude, so between waiting even 30 mins vs real time kind of difference. One trick is to use a small kernel size while using a large number of iterations which works really well for blurring.

So one could definitely make an OpenCL based volume SOPs if desired.

Link to comment
Share on other sites

14 hours ago, animatrix said:

Hi,

Yes it's well worth it. For volume convolution, the performance is on the orders of magnitude, so between waiting even 30 mins vs real time kind of difference. One trick is to use a small kernel size while using a large number of iterations which works really well for blurring.

So one could definitely make an OpenCL based volume SOPs if desired.

I see
I was pondering about it since the slowest part of a current setup is a Volume Wrangle with something as simple as:

int value = detail(1, "value") ;  // from a "for each" metadata
@density = @density == value ;

Does your course cover any of it?

Thanks

Edited by probiner
Link to comment
Share on other sites

8 hours ago, animatrix said:

Unfortunately Volume Wrangle is very slow.

OpenCL for volumes beats even C++ in volume convolutions.

Pragmatic VEX, no. Pragmatic OpenCL will :D

One last question, if I may. Do you confirm then that the volumes themselves are not writable through OpenCL?

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...