magneto Posted March 23, 2012 Share Posted March 23, 2012 I generated some simple images using COPs. Is there a way to use these as textures in VOP context? I tried using: ch("../cop2net1/composite1") for the texture map, but it doesn't seem to work. Can I do this without rendering the COP results as images to disk? Thanks Quote Link to comment Share on other sites More sharing options...
anim Posted March 23, 2012 Share Posted March 23, 2012 (edited) you can reference them using op: syntax like op:/img/img1/file1 or in your case op:`opfullpath("../cop2net1/composite1")` EDIT: but be sure you are doing this on VOP parameters not inside of VOP network Edited March 23, 2012 by anim 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted March 23, 2012 Author Share Posted March 23, 2012 (edited) Thanks anim. What do you mean on VOP parameters? Do you mean promoted parameters? I tried to use them directly on the parameters of VOPs, but of course it didn't work and mantra complained about not finding the map. Edited March 23, 2012 by magneto Quote Link to comment Share on other sites More sharing options...
anim Posted March 23, 2012 Share Posted March 23, 2012 yes, promoted parameters 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted March 23, 2012 Author Share Posted March 23, 2012 Thanks, it worked when I did that. Why does it have to be promoted to work? Is it to do with VEX compilation? Quote Link to comment Share on other sites More sharing options...
malexander Posted March 28, 2012 Share Posted March 28, 2012 VOP networks build code. And you can't very well embed an image in code. When you promote a parameter, it becomes an input to the shader generated, and the shader can evaluate images and geometry. Does that make sense? 2 Quote Link to comment Share on other sites More sharing options...
magneto Posted March 28, 2012 Author Share Posted March 28, 2012 Thanks Mark, it definitely does Quote Link to comment Share on other sites More sharing options...
galagast Posted February 18, 2016 Share Posted February 18, 2016 Hi, I've followed this method before, but for some weird reason, it doesn't seem to be working (H15.347).. or I may have just missed something really simple. I have a grid, with uv texture: In SHOPs, I created a simple Material Shader Builder network, the Texture VOP's Map is the only parameter exposed. Also in SHOPs, I created a COP network. I then set the shader's texture map to point to the COP using: op:`opfullpath("../comp")` Inside COPs, I have a simple File COP set to load the default Mandril.pic I assigned the material to the Grid object then lastly, I rendered the scene. ------------------------------------------------------------------------ But if try and directly reference the Mandril image like so: $HFS/houdini/pic/Mandril.pic It renders fine.. What could I be missing? Attached below is a Houdini Indie file. H15_INDIE_COPS_in_VOPS.rar 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.