hannes603 Posted January 10, 2024 Share Posted January 10, 2024 Hey Guys, i want to blur a mask in matnet, any idea how that can be done in an easy way ?? Thanks in advanced blurinmatcontext_how.hip Quote Link to comment Share on other sites More sharing options...
tamagochy Posted January 10, 2024 Share Posted January 10, 2024 Use fit not compare Quote Link to comment Share on other sites More sharing options...
hannes603 Posted January 11, 2024 Author Share Posted January 11, 2024 18 hours ago, tamagochy said: Use fit not compare Haha yes i know. its just an example. In my scene i have no option. Quote Link to comment Share on other sites More sharing options...
animatrix Posted January 11, 2024 Share Posted January 11, 2024 If you want to do blurring at material level, you can evaluate the noise at different positions using slight offsets just like derivatives and then average all of the noise outputs and use that instead but it will increase the noise evaluation cost by the number of your samples. 1 1 Quote Link to comment Share on other sites More sharing options...
hannes603 Posted January 12, 2024 Author Share Posted January 12, 2024 16 hours ago, animatrix said: If you want to do blurring at material level, you can evaluate the noise at different positions using slight offsets just like derivatives and then average all of the noise outputs and use that instead but it will increase the noise evaluation cost by the number of your samples. Hi, thanks a lot. Can you create a little example scene and upload it here for me to see. That would be amazing Quote Link to comment Share on other sites More sharing options...
Librarian Posted January 12, 2024 Share Posted January 12, 2024 @hannes603 Have you seen this? https://vfxbrain.wordpress.com/2018/08/28/gather-vex-function/ 1 Quote Link to comment Share on other sites More sharing options...
hannes603 Posted January 12, 2024 Author Share Posted January 12, 2024 16 hours ago, animatrix said: If you want to do blurring at material level, you can evaluate the noise at different positions using slight offsets just like derivatives and then average all of the noise outputs and use that instead but it will increase the noise evaluation cost by the number of your samples. thanks. i think i got something thanks to you blur_smooth_in_mat_network_shader.hip 1 1 Quote Link to comment Share on other sites More sharing options...
animatrix Posted January 14, 2024 Share Posted January 14, 2024 On 1/12/2024 at 3:54 PM, hannes603 said: Hi, thanks a lot. Can you create a little example scene and upload it here for me to see. That would be amazing Here is a basic example: smooth_shader_by_derivatives.hiplc 2 Quote Link to comment Share on other sites More sharing options...
hannes603 Posted January 15, 2024 Author Share Posted January 15, 2024 (edited) 18 hours ago, animatrix said: Here is a basic example: smooth_shader_by_derivatives.hiplc 636.5 kB · 2 downloads nice. i put everything in a for loop , works for me . Blur_smooth_noise_in_matnet_material_foreach.hip Edited January 15, 2024 by hannes603 1 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.