Jump to content

Opencl Functions


Drughi

Recommended Posts

Hi!

I'm doing some opencl scripting and it gives great speed improvements for example with pyro sims.

But I'm wondering about the functions. The gas turbulence_cl is a great reference.

Some Questions related to "compute_turbulence_cl":

1. It uses "lerpConstant", "fitTo01" without them being marked (turn cyan) in the editor. Also "lerpConstant" in vex is just "lerp", "fitTo01" is "fit01" - where to find those functions?

2. It obviously uses a noise. The noise gets imported to the kernel by calling "global const void  *theXNoise,". How is this working? Can I also import other stuff? Lets say another noise?

3. Is there a way to volume sample? If not by a prebuild function maybe selfmade?

 

 

Link to comment
Share on other sites

If you look at the top it says:

#include <xnoise.h>
#include <interpolate.h>

These are files on disk with additional functions, like the noise or 'fitTo01'. They're located in Houdini 18.0.287/houdini/ocl/include.

I don't think you can sample other geometry with volumesample or point clouds with opencl, you have to specify everything you want to use in the kernel under the Bindings tab.

  • Like 1
Link to comment
Share on other sites

17 minutes ago, Skybar said:

If you look at the top it says:


#include <xnoise.h>
#include <interpolate.h>

These are files on disk with additional functions, like the noise or 'fitTo01'. They're located in Houdini 18.0.287/houdini/ocl/include.

I don't think you can sample other geometry with volumesample or point clouds with opencl, you have to specify everything you want to use in the kernel under the Bindings tab.

Ah, awesome! So many new functions. Thanks!

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