Jump to content

How to use comp nodes in VOPs?


Recommended Posts

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 :)

Link to comment
Share on other sites

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 by anim
  • Like 1
Link to comment
Share on other sites

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 by magneto
Link to comment
Share on other sites

  • 3 years later...

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. ^_^

  1. I have a grid, with uv texture:
    post-3610-0-56752400-1455779081.jpg
  2. In SHOPs, I created a simple Material Shader Builder network, the Texture VOP's Map is the only parameter exposed.
    post-3610-0-44780900-1455779216_thumb.jp
  3. Also in SHOPs, I created a COP network.
    post-3610-0-76145700-1455778896_thumb.jp
  4. I then set the shader's texture map to point to the COP using:
    op:`opfullpath("../comp")`
  5. Inside COPs, I have a simple File COP set to load the default Mandril.pic
    post-3610-0-10138300-1455779347.jpg
  6. I assigned the material to the Grid object then lastly, I rendered the scene.
    post-3610-0-81462900-1455779416_thumb.jp

    ------------------------------------------------------------------------
     
  7. But if try and directly reference the Mandril image like so:
    post-3610-0-16880400-1455779864_thumb.jp
    $HFS/houdini/pic/Mandril.pic
  8. It renders fine..
    post-3610-0-32567400-1455779886_thumb.jp

What could I be missing?

 

Attached below is a Houdini Indie file.

H15_INDIE_COPS_in_VOPS.rar

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...