Drughi Posted December 3, 2019 Share Posted December 3, 2019 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? Quote Link to comment Share on other sites More sharing options...
Skybar Posted December 3, 2019 Share Posted December 3, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
Drughi Posted December 3, 2019 Author Share Posted December 3, 2019 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.