Pearl Posted April 6, 2006 Share Posted April 6, 2006 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! Quote Link to comment Share on other sites More sharing options...
edward Posted April 7, 2006 Share Posted April 7, 2006 What about just using a Font/Mosaic COP combo generate 1 large texture map which you can then just create the uv's on the balls appropriately? Quote Link to comment Share on other sites More sharing options...
Pearl Posted April 9, 2006 Author Share Posted April 9, 2006 That's a good idea. Thanks! Just for future reference... IS there a way to get COPs into VOPs? Quote Link to comment Share on other sites More sharing options...
stu Posted April 9, 2006 Share Posted April 9, 2006 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. 1 Quote Link to comment Share on other sites More sharing options...
malexander Posted April 9, 2006 Share Posted April 9, 2006 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. Quote Link to comment Share on other sites More sharing options...
Pearl Posted April 10, 2006 Author Share Posted April 10, 2006 Thank you, stu and malexander. You saved me hours of trying to get it into VOPs. Since I can kind of get it in with the Texture VOP (thanks stu!), I'll try playing with that from now on. Thanks! 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.