Jump to content

Cops Into Vops?


Recommended Posts

Hi,

I'm a new Houdini user and a first time poster. I'm currently in Vancouver Film School's new Houdini program.

As a class assignment, we were told to model a complete pool table set. As part of that, I'm making a shader for the pool balls.

So far, I can get my shader to make the ball either striped or whole-colored based on the number input paramater. I can also get the correct number of the ball onto it, but I'm relying on 15 different textures. So, my question is...

Is there a way to take an input parameter to a shader, create a corresponding font in COPs, and then feed it back into VOPs?

I know how to use pic() to bring COPs info into SOPs, using the UVTexture SOP. I just don't know what parameters to put inside my VOP network to get the proper projection.

Any help would be greatly appreciated. I apologize for the long-winded description.

Thanks!

post-1198-1144357798_thumb.jpg

post-1198-1144357926_thumb.jpg

Link to comment
Share on other sites

Try this in the string field/filename parameter of the VOP that you want to import the COP image into:

op:/img/img1/default_pic

The "default_pic" should be the name of the COP that you want to import as an image. The "/img/img1/" is the name of the path to the COP network.

COPS_to_VOPS.zip

If you go to the SHOPs page you can see it working there.

  • Thanks 1
Link to comment
Share on other sites

You can use the op:/ reference to import COP images into a SHOP. However, you can't import COP images into VOPs directly, since VOPs produce shader code. You must have an instance of that shader (a SHOP) instead; then the COP image can be used as a parameter setting.

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