bdunaway Posted April 25, 2008 Share Posted April 25, 2008 Is there a way to do something like vertex painting for houdini to blend two procedural shaders on an object? Or if not, what would be the closest way to do something similiar? Can something be done with the Paint SOP? Quote Link to comment Share on other sites More sharing options...
sibarrick Posted April 26, 2008 Share Posted April 26, 2008 You can easily paint into any "point" attribute using the paint sop. First create the attribute you want to use to drive the blend as a single float value using attribcreate sop. Then add a paint sop and turn on override Cd and change the parameter there to match your blend float attribute name. Then paint away... If you really need vertex painting I guess you could unique the points first, do point painting and then promote the point attributes to vertex ones and attribute copy them back to the un-uniqued points. Quote Link to comment Share on other sites More sharing options...
bdunaway Posted April 26, 2008 Author Share Posted April 26, 2008 So I can use any float variable in the attribcreate? And then do I need to plug it into vops to link it to the shader? Quote Link to comment Share on other sites More sharing options...
sibarrick Posted April 26, 2008 Share Posted April 26, 2008 So I can use any float variable in the attribcreate? And then do I need to plug it into vops to link it to the shader? You have to write a special shader that contains both shaders you want to blend and then you control the way they mix using a parameter that you override with the one you have painted. Unfortunately there's no magic attribute to do this, you have to set it all up yourself. I'm sure if you search these forums you will find examples. Quote Link to comment Share on other sites More sharing options...
bdunaway Posted April 26, 2008 Author Share Posted April 26, 2008 (edited) You have to write a special shader that contains both shaders you want to blend and then you control the way they mix using a parameter that you override with the one you have painted. Thanks alot, that worked great! Edited April 27, 2008 by bdunaway 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.