reeson Posted January 19, 2019 Share Posted January 19, 2019 Hey guys. I'm trying to get extrude by colour to work, but I'm failing hard. What I have is a grid that I painted some spots over with red colour. Now, how can I extrude only red colour, with a falloff? I did find some old videos for Houdini 15, and I tried to recreate, and it doesn't work. Cheers! exturde by color.hip Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted January 19, 2019 Share Posted January 19, 2019 It is better to paint on a black surface right away, because that way all color channels are initially set to 0. After painting you should promote colors to primitives, because this is what primitive extrude is working with. If however you have chosen to paint red on white, the red channel will be set to 1 everywhere. Red = 1,0,0 and White = 1, 1, 1. Thats why the green or blue channel is more distinctive here: Set your primitive wrangle to f@r = 1.0 - @Cd.g; so its able to tell where red is being used. Inside the primitive extrude set 'distance' to something larger than 0 and set 'distance scale' to r. exturde by color_corr.hiplc 1 Quote Link to comment Share on other sites More sharing options...
reeson Posted January 19, 2019 Author Share Posted January 19, 2019 Thank you. I see now. It's easier with a black base colour. So once I paint over with red, in primitive wrangle I just type f@r = @Cd.r Cheers! Quote Link to comment Share on other sites More sharing options...
reeson Posted January 22, 2019 Author Share Posted January 22, 2019 Is there a way to add an additional noise on top of the extrude by colour without adding another PolyExtrude SOP? I'm trying to do this with Att. VOP, but no luck. Here's my hip file. color_extrude1.hip Quote Link to comment Share on other sites More sharing options...
Sepu Posted January 22, 2019 Share Posted January 22, 2019 You need to bring your attrb into Vops here is a fix version, if you need a reverse add a fit range. color_extrude0_fix.hipnc 1 Quote Link to comment Share on other sites More sharing options...
reeson Posted January 22, 2019 Author Share Posted January 22, 2019 Thank you! 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.