probiner 83 Posted March 20 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! Share this post Link to post Share on other sites
animatrix 300 Posted March 20 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. Share this post Link to post Share on other sites
probiner 83 Posted March 20 (edited) 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 March 20 by probiner Share this post Link to post Share on other sites
animatrix 300 Posted March 21 Unfortunately Volume Wrangle is very slow. OpenCL for volumes beats even C++ in volume convolutions. 5 hours ago, probiner said: Does your course cover any of it? Thanks Pragmatic VEX, no. Pragmatic OpenCL will Share this post Link to post Share on other sites
probiner 83 Posted March 21 7 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 Ahahah! Well played! 1 Share this post Link to post Share on other sites
probiner 83 Posted March 21 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 One last question, if I may. Do you confirm then that the volumes themselves are not writable through OpenCL? Share this post Link to post Share on other sites
animatrix 300 Posted March 21 1 hour ago, probiner said: One last question, if I may. Do you confirm then that the volumes themselves are not writable through OpenCL? Regular volumes are, but VDBs are still not writable until SESI fully integrates NanoVDBs into Houdini. Share this post Link to post Share on other sites
probiner 83 Posted March 21 (edited) Gotcha, thank you for that confirmation. I'll se if I can pull anything with that code in mind with a regular volume! Edited March 21 by probiner Share this post Link to post Share on other sites