probiner Posted March 20, 2022 Share Posted March 20, 2022 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! Quote Link to comment Share on other sites More sharing options...
animatrix Posted March 20, 2022 Share Posted March 20, 2022 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. Quote Link to comment Share on other sites More sharing options...
probiner Posted March 20, 2022 Author Share Posted March 20, 2022 (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, 2022 by probiner Quote Link to comment Share on other sites More sharing options...
animatrix Posted March 21, 2022 Share Posted March 21, 2022 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 Quote Link to comment Share on other sites More sharing options...
probiner Posted March 21, 2022 Author Share Posted March 21, 2022 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 Quote Link to comment Share on other sites More sharing options...
probiner Posted March 21, 2022 Author Share Posted March 21, 2022 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? Quote Link to comment Share on other sites More sharing options...
animatrix Posted March 21, 2022 Share Posted March 21, 2022 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. Quote Link to comment Share on other sites More sharing options...
probiner Posted March 21, 2022 Author Share Posted March 21, 2022 (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, 2022 by probiner 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.