Jump to content
Sign in to follow this  
Drughi

Opencl Functions

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?

 

 

Share this post


Link to post
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

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×